Professional UI Solutions
Site Map   /  Register


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.

Forums » Prof-UIS General Discussion » Input user icon for the flter popup menu Collapse All
Subject Author Date
Therese P May 10, 2010 - 11:46 AM


after your answer for input user icons in the grilder filter header. I used



CExtPaintManager * pPM = PmBridge_GetPM();CExtBitmap l_oBitmap;l_oBitmap.LoadBMP_File _T("Path/FILTER_UNAPPLIED.BMP"));







g_CmdManager.OnSysColorChange( pPM, this );



and it works great, thanks! But now we want to do something similar with the filter-popup-menu icons (clearing the filter, sorting from A to Z and Z to A). It looks like  you do it in CExtGridCellHeaderFilter::OnInitializeFilterPopupMenu(). Is there a simple way without creating a child class to CExtGridCellHeaderFilter and overriding the method? Because in our case, we would have to change major parts of our desing and implementation and it does not seem worth it for just 3 icons, but we reaaly do need to put our customer required icons. So we are looking for something more global like for the filter header.

Thank You



Technical Support May 11, 2010 - 12:54 PM

Please handle the CExtPopupMenuWnd::g_nMsgPrepareMenu registered message in your CExtGridWnd-derived class like described here:

Then you can use the CExtPopupMenuWnd::ItemFindPosForCmdID() API for searching menu items with icons (i.e. ID_EXT_HEADER_FILTER_MENU_SORT_A_Z) and the CExtPopupMenuWnd::ItemSetPopupIcon() method for changing icons.