Owner-Draw Combo + CBitmapButton on the same dialog
Hello!
I have an owner drawn combobox on a dialog managed via the function "void CMyDialogDlg::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)" and everything works fine.
But when on the same dialog I place CBitmapButton, the button doesn't get drawn!
I think the subclassing of the bitmapbutton generates a conflict with the OnDrawItem, but I don't know how to workaround this problem!
Is someone enogh brave to help me?
Re: Owner-Draw Combo + CBitmapButton on the same dialog
Quote:
Originally posted by Andrea_Rossini
I think the subclassing of the bitmapbutton generates a conflict with the OnDrawItem, but I don't know how to workaround this problem!
Difficult to say without seeing any code... Are you calling the base class implementation of OnDrawItem()? What are you doing if the the value of the nIDCtl parameter is not that of your combobox?