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 » Ownerdraw property for GridCell Collapse All
Subject Author Date
harshad jahagirdar Mar 20, 2008 - 6:35 AM


I am facing exactly same problem as

can you please help me out? I have handeled both the virtual functions as recommended in this thread but the events are not being fired. I have derived my class from CextGridCellComboBox. What else I need to do further so that the events will be fired? Please help.



harshad jahagirdar Mar 31, 2008 - 3:23 AM

Thanks a lot! That stuff really worked, I figured out that my class implementation was missing inclusion of macro


Thanks a lot again for valuable help.



harshad jahagirdar Mar 26, 2008 - 5:42 AM


Is there any update on this, please  help


harshad jahagirdar Mar 24, 2008 - 2:33 AM

Below is the code for the creating instance. It is not working. Can you guide me what might be missing?


CSimOColorPickerCombo *pValue =



ValueActiveGetByRTC( RUNTIME_CLASS(CSimOColorPickerCombo) )


Technical Support Mar 21, 2008 - 1:35 PM

These virtual methods should be invoked if you correctly instantiated the cell object.

In the case of property grid it can look like this:

CYourGridCellComboBox * pValue =
                        ValueActiveGetByRTC( RUNTIME_CLASS(CYourGridCellComboBox) )

harshad jahagirdar Mar 24, 2008 - 3:05 AM

It will be great if you can send me some sample which is working successfully yo my email ID;

Will appreciate your help.



Technical Support Mar 28, 2008 - 6:05 AM

Here is the sample project. We added our class CYourGridCellComboBox and overrode only one virtual method CYourGridCellComboBox::OnPopupListBoxItemDraw().

There we copied the original code and changed only two lines:

// COLORREF clrText = wndListBox.LbItemTextColorGet( nIndex );
// COLORREF clrBack = wndListBox.LbItemBackColorGet( nIndex );

COLORREF clrText = RGB(255,0,0);
COLORREF clrBack = RGB(255,255,0);

Here you can see the result:

So we cannot agree that such method is not invoked.