Thanks for your excellent framework. In general, I find it very easy to work with it. However, I have a problem with a checkbox on a toolbar.
I create a CExtButton with the following style
WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX
and as the parent use a toolbar derived from CExtToolControlBar, then use SetButtonCtrl to position the control on the toolbar.
This checkbox behaves terribly.
1) There is no box as such apparent, but if I click on the area, a check mark appears, then disappears correctly if I click again.
2) The check mark also disappears if I hover the cursor over the control. This is not correct behavior.
Can you help me out of this trouble, i.e. tell me how I create a checkbox correctly.
Thanks,
Finn Arildsen
PS: I think it is crucial that there is a visible box to put the check mark in, otherwise the user will never recognize this as a checkbox control.