Re: Problem with IE style menu bar
- From: "Jeff Partch [MVP]" <jeffp@xxxxxxxx>
- Date: Fri, 23 Sep 2005 18:27:55 -0500
<banrenma23@xxxxxxxxxxxx> wrote in message
news:1127457447.167496.70670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thanks.
>
> Now, i changed the code to below.
>
> The problem i met is:
>
> (1) If i use
> SetWindowLong(hMenuBarWnd,GWL_WNDPROC,(LONG)MenuBarWndProc));
>
> to handle message in my own way, then all buttons including text on
> them are invisable.
It looks like you route all unhandled messages through DefWindowProc instead
of CallWindowProc.
>
> if i removed the
> SetWindowLong(hMenuBarWnd,GWL_WNDPROC,(LONG)MenuBarWndProc));
>
> then i can see the buttons and text on the toolbar
>
> (2) though i have added BTNS_DROPDOWN style for each buttons, i can not
> get TBN_DROPDOWN message at all in the producer function .
> switch (message)
> {
> case TBN_DROPDOWN:
> MessageBox(NULL,"TBN_DROPDOWN",NULL,0);
> break;
The TBN_DROPDOWN notification is sent in the form of a WM_NOTIFY message --
to the control's parent I believe.
.
- References:
- Problem with IE style menu bar
- From: banrenma23@xxxxxxxxxxxx
- Re: Problem with IE style menu bar
- From: banrenma23@xxxxxxxxxxxx
- Re: Problem with IE style menu bar
- From: banrenma23@xxxxxxxxxxxx
- Problem with IE style menu bar
- Prev by Date: Re: getting another process' window's font
- Next by Date: Re: Drawing in the NC area of a window
- Previous by thread: Re: Problem with IE style menu bar
- Next by thread: Double Buffering a simple edit control
- Index(es):