Re: Problem with IE style menu bar



<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.



.