Picon

Display glitch in indirect dialogs? (CIndirectDialogImpl)



I've added an edit box and an up-down control to the AboutBox in the MemDlg sample. The edit is readonly with right aligned text; the spin control is auto-buddy, left attached, set buddy integer. It results in the following code in the MemDlg.rc

// in MemDlg.rc

IDD_ABOUTBOX DIALOGEX 0, 0, 187, 102
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "MS Shell Dlg 2", 0, 0, 0x0
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,130,81,50,14
    CTEXT           "MemDlg Application v1.0\n\n(c) Copyright 2015",IDC_STATIC,25,57,78,32
    ICON   &nb sp;        IDR_MAINFRAME,IDC_STATIC,55,26,20,20
    GROUPBOX        "",IDC_STATIC,7,7,115,88
    EDITTEXT        IDC_EDIT1,125,39,40,14,ES_RIGHT | ES_AUTOHSCROLL | ES_READONLY
    CONTROL         "",IDC_SPIN1,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNLEFT | UDS_AUTOBUDDY | UDS_ARROWKEYS,169,39,11,14
END


I copied the last controls to the indirect about box, as follows,

// in AboutDlgIndirect.h

    BEGIN_CONTROLS_MAP()
        CONTROL_DEFPUSHBUTTON(_T("OK") , IDOK, 130, 81, 50, 14, 0, 0)
        CONTROL_CTEXT(_T("MemDlg Application v1.0\n\n(c) Copyright 2015"), IDC_STATIC, 25, 57, 78, 32, 0, 0)
        CONTROL_ICON(MAKEINTRESOURCE(IDR_MAINFRAME), IDC_STATIC, 55, 26, 18, 20, 0, 0)
        CONTROL_GROUPBOX(_T(""), IDC_STATIC, 7, 7, 115, 88, 0, 0)
        CONTROL_EDITTEXT(IDC_EDIT1, 125, 39, 40, 14, ES_RIGHT | ES_AUTOHSCROLL | ES_READONLY, 0)
        CONTROL_CONTROL(_T(""), IDC_SPIN1, _T("msctls_updown32"), UDS_SETBUDDYINT | UDS_ALIGNLEFT | UDS_AUTOBUDDY | UDS_ARROWKEYS, 169, 39, 11, 14, 0)
    END_CONTROLS_MAP()


When running, the usual about box display correctly, but the indirect box has a glitch in the display of the spin control.


Any ideas?


Gil Rivlis





__._,_.___
Posted by: gil-qcUDpvGfIcnQT0dZR+AlfA@public.gmane.org



__,_._,___
Picon

new year's bug



I just read the documentation for EM_POSFROMCHAR and it appears that it varies a lot depending on the richedit control version (very messy, see the docs ), so atlctrls.h CRichEditCtrl must be changed depending on _RICHEDIT_VER

 

Happy new year to anyone who's listening :)

 

PS. any WTL professional developers should read this, another new year hiccup

http://zabkat.com/blog/code-signing-sha1-armageddon.htm



__._,_.___
Posted by: umeca74-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org



__,_._,___
Picon

WTL 9.1 Released!



Hello everybody,

WTL 9.1 has been released!


This release brings full compatibility with Visual Studio 2015 and NuGet support, as well as various bug fixes and improvements. Full list is in ReadMe.html. This release is using Microsoft Public License.

Thanks and enjoy!
Nenad



__._,_.___
Posted by: =?UTF-8?Q?Nenad_Stefanovi=C4=87?= <nenad2001 <at> gmail.com>



__,_._,___
Picon

Announcing WTL 9.1 Beta



Hello everybody,

WTL 9.1 Beta (build 5270) is now available!


WTL 9.1 brings support for Visual Studio 2015 and bug fixes and improvements. You can see the full list in ReadMe.html.

Please review it and report any problem that you find either here, or directly to Source Forge project page at https://sourceforge.net/projects/wtl/.

Thanks,
Nenad



__._,_.___
Posted by: =?UTF-8?Q?Nenad_Stefanovi=C4=87?= <nenad2001 <at> gmail.com>



__,_._,___
Picon

fix ribbon's accelerator "leaks" for disabled commands



I had a problem with disable UI commands when the ribbon was active, and solved it after some detective work :)

learn all about it here

xplorer² blog: Adding ribbon toolbars necessitates a rethink of command UI updates

 



__._,_.___
Posted by: umeca74 <at> hotmail.com



__,_._,___
Picon

WTL 9 and visual studio 2013 community edition



I've tried compiling a few of the WTL 9 sample applications with visual studio 2013 community edition.

Since community edition reported to be a free version of professional, should this work?

First line of compiler output:

c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\atlwin.h(2084): error C2065: 'HMONITOR' : undeclared identifier

Express 2013 needed these hacks, is the same needed for community edition?




__._,_.___
Posted by: stetka-FhtRXb7CoQBt1OO0OYaSVA@public.gmane.org



__,_._,___
Picon

WTL 9 and visual studio 2013 community edition



I've tried compiling a few of the WTL 9 sample applications with visual studio 2013 community edition.

Since community edition reported to be a free version of professional, should this work?

First line of compiler output:

c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\atlwin.h(2084): error C2065: 'HMONITOR' : undeclared identifier

Express 2013 needed these hacks, is the same needed for community edition?




__._,_.___
Posted by: stetka-FhtRXb7CoQBt1OO0OYaSVA@public.gmane.org



__,_._,___
Picon

Re: Digest Number 3025



Nenad:

Yes. There are valid concern with CPL. We didn't realize that WTL hasn't change for so long!

CPL was official deprecated awhile ago.  So it is probably not going to go well with companies care about license status. License author of CPL replaced it with EPL. The main change is removal of the patent retaliation in CPL besides cosmetic changes per FSF.

Another Microsoft open source project WiX decided a while ago to go from CPL to MS-RL instead

It is probably best keep the CPL for a period so that companies and development teams already using don't get the rude awakening by a sudden change they don't have control. Then layout the transition plan and hear it from the community about choices. The owner and contributors surely have the final say.

Liyu

On Wed, Nov 26, 2014 at 1:59 AM, <wtl-hHKSG33TihhbjbujkaE4pw@public.gmane.org> wrote:
There is 1 message in this issue.

Topics in this digest:

1a. Re: Licensing for WTL 9.0?
    From: Nenad Stefanović


Message
________________________________________________________________________
1a. Re: Licensing for WTL 9.0?
    Posted by: "Nenad Stefanović" nenad2001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org nenad_stefanovic
    Date: Tue Nov 25, 2014 2:30 am ((PST))

Hi Jed,

Thanks!

Since WTL is not distributed by MS any more, I thought that we can continue
using just CPL on SourceForge. We can still use MS-PL, if needed.

Is there any specific issue why you are asking this? I would be interested
to hear it.

Cheers,
Nenad

p.s. I don't know what was the problem with posting - even this one
appeared after 4 days.


On Fri, Nov 21, 2014 at 4:25 PM, jb_ni_dev-/E1597aS9LQAvxtiuMwx3w@public.gmane.org [wtl] <
wtl-hHKSG33TihhbjbujkaE4pw@public.gmane.org> wrote:

>
>
> Hello,
>
>
> Congratulations again on the release of WTL 9.0.
>
>
> I have a question about licensing:  Is WTL 9.0 distributed under both the
> Microsoft Public License (MS-PL) and the Common Public License (CPL) as
> older versions were?  The Sourceforge download page references only the
> CPL.  The Wikipedia page has been updated to state the latest stable
> release is 9.0, and still references both the MS-PL and CPL, but this does
> not strike me as definitive.
>
>
> Thanks in advance for your help.
>
>
> Best Regards,
>
>
> Jed
>
>
> PS.  I attempted to post this a little while back, but it does not seem to
> have worked, so I am trying again. Apologies if it ends up doubled.
>
>
>




Messages in this topic (2)





------------------------------------------------------------------------
Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Digest Email  | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    wtl-normal <at> yahoogroups.com
    wtl-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> To unsubscribe from this group, send an email to:
    wtl-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

------------------------------------------------------------------------




--
This e-mail contains privileged and confidential information and is intended only for the use of intended recipient(s). Any dissemination, distribution or duplication of this communication without prior written consent is strictly prohibited. If you received this message in error please contact the sender immediately and destroy the material in its entirety, whether in electronic or hard copy format.


__._,_.___
Posted by: Liyu Liu <liyu548-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>



__,_._,___
Picon

Licensing for WTL 9.0?



Hello,


Congratulations again on the release of WTL 9.0.


I have a question about licensing:  Is WTL 9.0 distributed under both the Microsoft Public License (MS-PL) and the Common Public License (CPL) as older versions were?  The Sourceforge download page references only the CPL.  The Wikipedia page has been updated to state the latest stable release is 9.0, and still references both the MS-PL and CPL, but this does not strike me as definitive.


Thanks in advance for your help.


Best Regards,


Jed


PS.  I attempted to post this a little while back, but it does not seem to have worked, so I am trying again. Apologies if it ends up doubled.



__._,_.___
Posted by: jb_ni_dev-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

suggestions for WTL ribbon implementation



Here are some comments on the atlribbon.h implementation. In general it is a great piece of work but there are a few bits and bobs left to make it perfect!

1. ShowRibbonUI should take into account any REGULAR menu that the ribbon hid and restore it after the menu is re-enabled. The current implementation only works with a rebar/commandbar

2. ShowRibbonUI should take a parameter NOT to hide the toolbar (e.g. I have an addressbar that I want to keep alongside the ribbon). This can be handled in UpdateLayout by converting the toolbar/rebar into CCS_NOPARENTALIGN and manually positioning it below the ribbon.

3. m_bWin7Fix is a nasty workaround that unfortunately cannot be avoided (I've been trying for a couple of days but I gave up :). However the code should also be patched for windows 8; all the checks for IsWin7() should be converted to IsWin7OrLater() otherwise there will be problems in win8

I hope Alain Rist is reading :)

 

Nikos

 



__._,_.___
Posted by: umeca74-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org



__,_._,___
Picon

NuGet Package Released!



NuGet package for WTL 9.0 was released!.

It is available in the NuGet Gallery:
https://www.nuget.org/packages/wtl/

Install NuGet Package Manager from:
Installing NuGet




__._,_.___
Posted by: tsudakageyu-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___

Gmane