|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Bart Kampers
|
Jun 10, 2008 - 1:29 AM
|
Hello there, I registered methods for the messages g_nMsgPopupDrawItem and g_nMsgPopupDrawBackground exactly like in the ProfUIS_Controls example. But in my application it seems te work differently from the example. The method for g_nMsgPopupDrawItem is never called. The method for g_nMsgPopupDrawBackground does not draw the colored background like in the example but something gray. I created the menu items like this:
Can anybody help? Thanks... Bart. popup->ItemInsert(UINT(CExtPopupMenuWnd::TYPE_POPUP), pos, _T("Width"));
CExtPopupMenuWnd* widthSubMenu = popup->ItemGetPopup(pos);
widthSubMenu->ItemInsertCommand(cmdId, -1, LPCTSTR(string), NULL, NULL, false, check);
widthSubMenu->TrackFlagsSet(widthSubMenu->TrackFlagsGet() | TPMX_PALETTE);
|
|
Technical Support
|
Jun 17, 2008 - 3:52 AM
|
Where did you declare the handlers for the g_nMsgPopupDrawItem and g_nMsgPopupDrawBackground messages? It should be declared in the window which was specified as a commands target window when creating the popup menu. Please check this. If the problem persists, please send us a test project so we can check it ourselves.
|
|