How to create transparent menu for Dialog?
Also i use CtlColor function to create transparent static text.
The main problem is that my menu still has the same color.
How to create transparent menu for bitmap Dialog?
Try to lookup about CMenu class. There is SetMenuItemBitmaps method. It seems it's the one you need.
Цитата:
Originally posted by werter1
I use bitmap on my dialog.
Also i use CtlColor function to create transparent static text.
The main problem is that my menu still has the same color.
How to create transparent menu for bitmap Dialog?
I use bitmap on my dialog.
Also i use CtlColor function to create transparent static text.
The main problem is that my menu still has the same color.
How to create transparent menu for bitmap Dialog?
Menu items must be owner drawn(see WM_MEASUREITEM and WM_DRAWITEM). To paint the rest of the menu bar you should provide a handler for WM_NCPAINT message to know when to update menu bar.
GetMenuBarInfo will help you to obtain the bounding rectangle for the menu bar.
At handling the WM_NCPAINT make sure bounding rectangle intersects with the update region(this might be unnecessary) and then draw the bitmap the way you know.
By the way, GetMenuBarInfo seems to return screen coordinates in rcBar member of MENUBARINFO.