umeca74 | 10 Mar 2011 12:20
Picon
Favicon

atltheme.h nitpick

the way CTheme is currently checking for themes present isn't 100% right. Even when uxtheme.dll exists,
the user could have windows classic mode enabled, so themes aren't working. So IsThemingSupported
should also check with IsAppThemed() API

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

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

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Dani | 11 Mar 2011 15:58
Picon
Favicon

SDI, mainframe without menu?

I'm trying to remove the menu from my WTL (/ATL) application. In MFC you can remove the window from
CREATESTRUCT in PreCreateWindow, but there's no such method in ATL.

How can I do this in a SDI app?

thanks,
-Dan

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

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

<*> Your use of Yahoo! Groups is subject to:
(Continue reading)

domehead100 | 11 Mar 2011 18:02
Picon

Re: SDI, mainframe without menu?

How about, in CMainFrame::OnCreate...

HMENU hMenu = GetMenu();
SetMenu(NULL);
DestroyMenu(hMenu);

And remove the m_CmdBar from CMainFrame, remove the code in OnCreate that creates the command bar,
attaches it to the window menu, and loads images.

~Mike

--- In wtl@..., "Dani" <dmagn25 <at> ...> wrote:
>
> I'm trying to remove the menu from my WTL (/ATL) application. In MFC you can remove the window from
CREATESTRUCT in PreCreateWindow, but there's no such method in ATL.
> 
> How can I do this in a SDI app?
> 
> thanks,
> -Dan
>

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

Yahoo! Groups Links

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

<*> Your email settings:
(Continue reading)

Dani | 13 Mar 2011 22:23
Picon
Favicon

Re: SDI, mainframe without menu?

Thank you, it worked.

--- In wtl@..., "domehead100" <domehead100 <at> ...> wrote:
>
> How about, in CMainFrame::OnCreate...
> 
> HMENU hMenu = GetMenu();
> SetMenu(NULL);
> DestroyMenu(hMenu);
> 
> And remove the m_CmdBar from CMainFrame, remove the code in OnCreate that creates the command bar,
attaches it to the window menu, and loads images.
> 
> ~Mike
> 
> --- In wtl@..., "Dani" <dmagn25 <at> > wrote:
> >
> > I'm trying to remove the menu from my WTL (/ATL) application. In MFC you can remove the window from
CREATESTRUCT in PreCreateWindow, but there's no such method in ATL.
> > 
> > How can I do this in a SDI app?
> > 
> > thanks,
> > -Dan
> >
>

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

Yahoo! Groups Links
(Continue reading)

chuck_berrys_bastard_son | 12 Mar 2011 22:18
Picon
Favicon

Re: custom-drawing a CTabCtrl

Search "Custom Tab Controls, Tabbed Frame and Tabbed MDI " by Daniel Bowen in codeproject

--- In wtl@..., "lighth7015" <lighth7015 <at> ...> wrote:
>
> Hi guys,
> 
> Where could I find information on custom-drawing a CTabCtrl to make it look similar to the old 'Sheridan
3D' controls look?
> 
> Thanks,
> - Robert
>

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...
(Continue reading)

yarp | 25 Mar 2011 08:03

Processing after OnInitDialog OnShow ?

When I need to initialize something I do it in OnInitDialog. But OnInitDialog is processed before the
dialog actually shows.

So what if I want to do something after the dialog has been displayed for the first time, after the OnShow ?

Thank you in advance.
Yarp

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

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

<*> Your use of Yahoo! Groups is subject to:
(Continue reading)

Igor Tandetnik | 25 Mar 2011 12:35
Favicon

Re: Processing after OnInitDialog OnShow ?

yarp <lac@...> wrote:
> When I need to initialize something I do it in OnInitDialog. But OnInitDialog is processed before the
dialog actually shows.
> 
> So what if I want to do something after the dialog has been displayed for the first time, after the OnShow ?

Do it the first time you get WM_PAINT.
-- 
Igor Tandetnik

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    wtl-unsubscribe@...
(Continue reading)

codewizok51 | 24 Mar 2011 14:04
Picon
Favicon

ATLCPImplMT.h updated

I've updated the ATL template published by MS way back in 2004 in KB-280512.  The template
IConnectionPointImplMT is updated to utilize CComGITPtr and compiles with VS 2008.  I have not tried the
code with VS 2010.

You can download the file here:
http://www.codewiz51.com/blog/post/2011/03/16/Working-with-ATLs-CComGITPtr-Class.aspx

An example WTL Client/ATL COM Server is published here:
http://www.codewiz51.com/wiki/ATL-Threading-Part-5.ashx

I've also published a similar example that returns a SAFEARRAY(DOUBLE) as an out parameter.  The 7-zip file
contains a WTL client, a VB6 client and an ATL Server component.
http://www.codewiz51.com/wiki/ATL-Threading-passing-a-SAFEARRAY-when-raising-an-event.ashx

Gene

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

(Continue reading)

yarp | 25 Mar 2011 13:44

Re: Processing after OnInitDialog OnShow ?

WP_PAINT really ? I was for sure not expecting that answer (I was of course thinking about some special
event), but you're right it is the right time to do that.
Ok then, thank you for the hint.
Yarp

--- In wtl@..., "Igor Tandetnik" <itandetnik <at> ...> wrote:
>
> yarp <lac <at> ...> wrote:
> > When I need to initialize something I do it in OnInitDialog. But OnInitDialog is processed before the
dialog actually shows.
> > 
> > So what if I want to do something after the dialog has been displayed for the first time, after the OnShow ?
> 
> Do it the first time you get WM_PAINT.
> -- 
> Igor Tandetnik
>

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
(Continue reading)

Ilker Aksen | 25 Mar 2011 09:41
Picon
Favicon

Re: Processing after OnInitDialog OnShow ?

Post a message in OnInitDialog, it will be handled after OnShow

-Ilker

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

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

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Gmane