Hi,

I'm trying to change the TextColor of a Coolmenu on _Deactivate and
_Activate of the parent-window to emulate the original IE behaviour.

Just so I understand what you are trying to do. Do you mean the change in the menu colour (to blue) when the mouse moves over the menu buttons in IE?

In my understanding of the MSDN-documentation a Toolbar-Control,
receiving a NM_CUSTOMDRAW-notification, should behave in exactly the
same way as a Header does. But in contrast to a Header the DC, supplied
in the NMTBCUSTOMDRAW-structure, seems not to be the one being used to
paint the control (see example below).

The structures used by a toolbar and header are different - see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/custdraw/custdraw.asp

This may, or may not be causing your problem. I assume that you are using the coolbar module by Rob May (http://www.robmay.me.uk/win32gui/)? It also exhibits the same issue that I think you are trying to solve. It might be worth pooling efforts to get this issue 'fixed' - off the top of my head, perhaps the easiest solution would be to add an CustomDraw event handler in ToolBar.xs which would pass the correct parameters (DC and draw codes) to the Perl handler.

Cheers,

jez.



Reply via email to