duyuor | 1 Aug 2007 05:52
Picon
Favicon

how can i disable the help button in PropertySheet window ?

i create a PropertySheet in this way:

CPropertySheet ps(L"Options");
CPropertyPage<IDD_CACCOUNTOPDLG> page;

the PropertySheet dialog has a help button, how can i get rid of it?

 
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:
    mailto:wtl-digest@... 
    mailto: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/

(Continue reading)

duyuor | 1 Aug 2007 05:48
Picon
Favicon

Re: how to routes "alt message map" to CTabViewImpl ?

i find the right way, i have to use two MACROs together.
ALT_MSG_MAP(1) 
 CHAIN_MSG_MAP_ALT(CTabViewImpl<CEditorTabViews>,1)

 
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:
    mailto:wtl-digest@... 
    mailto: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/

Jim Barry | 1 Aug 2007 13:48

Re: how can i disable the help button in PropertySheet window ?

duyuor wrote:
> the PropertySheet dialog has a help button, how can i get rid of it?

You need to remove the WS_EX_CONTEXTHELP extended style. Derive from CPropertySheetImpl and do it in your
OnSheetInitialized handler:

class CMyPropertySheet : public CPropertySheetImpl<CMyPropertySheet>
{
public:
    CMyPropertySheet(ATL::_U_STRINGorID title = (LPCTSTR)NULL)
        : CPropertySheetImpl<CMyPropertySheet>(title, 0, NULL)
    { }

    void OnSheetInitialized()
    {
        ModifyStyleEx(WS_EX_CONTEXTHELP, 0, SWP_FRAMECHANGED);
    }
};

--

-- 
Jim Barry, MVP (Windows SDK)

 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional
(Continue reading)

Gabriel Kniznik | 1 Aug 2007 14:58

Re:how can i disable the help button in PropertySheet window ?


ps.m_psh.dwFlags &= ~PSH_HASHELP;	
page.m_psp.dwFlags &= ~PSP_HASHELP;	// before DoModal() or Create()

Gabriel Kniznik

 
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:
    mailto:wtl-digest@... 
    mailto: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/

(Continue reading)

Jim Barry | 1 Aug 2007 15:30

Re: Re:how can i disable the help button in PropertySheet window ?

Gabriel Kniznik wrote:
> ps.m_psh.dwFlags &= ~PSH_HASHELP;
> page.m_psp.dwFlags &= ~PSP_HASHELP; // before DoModal() or Create()

CPropertySheet/CPropertyPage don't set PSH_HASHELP/PSH_HASHELP unless EnableHelp is called, so I
assume the OP is asking about the context help button that appears in the caption bar.

-- 
Jim Barry, MVP (Windows SDK)

 
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:
    mailto:wtl-digest@... 
    mailto:wtl-fullfeatured@...

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

(Continue reading)

ryanbischoff | 3 Aug 2007 02:46
Picon
Favicon

WTL , ATL, COM and the future development of Windows?

Hello all,
[Summary]
I am hoping someone with more intimate knowledge of the Windows API
and COM technologies can give me some insight into what they think the
future holds for windows (native) development.

Although .NET WinForms technology is very nice to work with, I
sometimes do not like the idea of (CLR) runtime dependencies, to run
smaller type Windows applications.  This leads me to look towards WTL
development, for lightweight, effecient windows development.

[Question]
However, I hesitate to take the efforts to learn WTL/ATL/COM, in fear
of their (supposed) shorten lifespan, due to .NET.  What is the
dependency of COM and WinApi (or maybe there is none)?  I think if WTL
could work with just the WinAPI and no COM necessary, than I would not
have as much hesitation, however, I do not have the knowledge to
assess this, can someone offer me their opinions here?

Thanks in advance.

 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

(Continue reading)

Ken Wilson | 3 Aug 2007 02:47
Picon
Favicon

Sinking IWebBrowser2 Events in non-CAx.... Derived Controller Class

I have a CDisplayManager class that has two CBrowserDisplay class 
members.

The CDisplayManager class is derived as follows: 
CFrameWindowImpl<CDisplayManager>, CMessageFilter, CIdleHandler, 
CDynamicChain, IDispEventImpl<IDC_IE, CDisplayManager>, and 
CTrayIconImpl<CDisplayManager>.

The CBrowserDisplay class is derived as follows: 
CAxDialogImpl<CBrowserDisplay>, CDynamicChain.

I have added a sink map with handlers for the OnBeforeNavigate2, 
OnNavigateComplete2 and OnNavigateError events.  In support of this I 
also added the appropriate calls to AtlAdviseSinkMap in the WM_CREATE 
and WM_DESTROY handlers.

While this compiles and everything looks rosey I get a debug 
assertion failure inside the AtlAdviseSinkMap method template in 
atlcom.h.  Here are the two lines of code that appear to initiate the 
assert.

  HWND h = pT->GetDlgItem(pEntries->nControlID);
  ATLASSERT(h != NULL);

It appears I am missing a very important handle (to the browser 
control I assume).

Is there any way for me to hand the browser control events in these 
two dialog boxes in a separate controller class such as I am 
currently working with.
(Continue reading)

ryanbischoff | 3 Aug 2007 02:51
Picon
Favicon

Re: ANN: WTL 8.0 now available on Microsoft Downloads

Angus,
I couldn't agree with you more.  I ignorantly posted a message on the
very nature of this thread's concern.

IMHO** I think WTL should remove ATL/COM dependencies to extend it's
life expectancy.

I vote REMOVE COM, and long live WTL.

--- In wtl@..., "Angus Comber" <angus <at> ...> wrote:
>
> I personally agree that most Windows programmers don't need all the
COM stuff.  But then I suppose that WTL uses quite a lot of ATL so
might be quite a job removing the ATL dependency.  But I think it will
be better in long run if it could be achieved.  So WTL could be
independent.
> 
> Angus
> 
> 
>   ----- Original Message ----- 
>   From: gameboy_2000_us 
>   To: wtl@... 
>   Sent: Thursday, June 21, 2007 4:44 PM
>   Subject: [wtl] Re: ANN: WTL 8.0 now available on Microsoft Downloads
> 
> 
>   I remeber that a couple of years ago there was a survey in the
group of 
>   making WTL independent of ATL. At that time many of us are still
(Continue reading)

Picon

Re: WTL , ATL, COM and the future development of Windows?

> Hello all,
>  [Summary]
>  I am hoping someone with more intimate knowledge of the Windows API
>  and COM technologies can give me some insight into what they think the
>  future holds for windows (native) development.
>
>  Although .NET WinForms technology is very nice to work with, I
>  sometimes do not like the idea of (CLR) runtime dependencies, to run
>  smaller type Windows applications.  This leads me to look towards WTL
>  development, for lightweight, effecient windows development.
>
>  [Question]
>  However, I hesitate to take the efforts to learn WTL/ATL/COM, in fear
>  of their (supposed) shorten lifespan, due to .NET.  What is the
>  dependency of COM and WinApi (or maybe there is none)?  I think if WTL
>  could work with just the WinAPI and no COM necessary, than I would not
>  have as much hesitation, however, I do not have the knowledge to
>  assess this, can someone offer me their opinions here?
>
>  Thanks in advance.
>

Hello,

no COM is necessary for WTL, although given that it is based in ATL
you can use COM when you need to. As far as I'm concerned, I've never
used COM in my WTL apps.

About the future of Win32... I've felt the same way as you do. Still,
I keep using WTL for my apps at work. If you already know MFC, it's
(Continue reading)

Ken Wilson | 3 Aug 2007 03:12
Picon
Favicon

Re: WTL , ATL, COM and the future development of Windows?

I would not worry about the disappearance of ATL/WTL too soon.  It is 
used in many applications where tight code with few dependencies is 
required. These technologies are just another programming 
tool/paradigm for Windows.  Although the design is around support for 
COM there is rich support of wrapper classes and helper for the Win32 
API.

As matter of fact I am currently working on a project that will be 
solely ATL/WTL for a shop that is rabidly .Net.

--- In wtl@..., "ryanbischoff" <ryanbischoff <at> ...> wrote:
>
> Hello all,
> [Summary]
> I am hoping someone with more intimate knowledge of the Windows API
> and COM technologies can give me some insight into what they think 
the
> future holds for windows (native) development.
> 
> Although .NET WinForms technology is very nice to work with, I
> sometimes do not like the idea of (CLR) runtime dependencies, to run
> smaller type Windows applications.  This leads me to look towards 
WTL
> development, for lightweight, effecient windows development.
> 
> [Question]
> However, I hesitate to take the efforts to learn WTL/ATL/COM, in 
fear
> of their (supposed) shorten lifespan, due to .NET.  What is the
> dependency of COM and WinApi (or maybe there is none)?  I think if 
(Continue reading)


Gmane