|
I want to add a self-drawn button to the toolbar instead of its default button. What should I do?
I have defined Button in the derived class of the toolbar as follows:
Cbutton mybutton
Then I added it to the form's OnCreate
m_wndToolBar.mybutton.Create (_T (""), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, rect,&m_wndToolBar, IDC_COLORSELE);
When running in this way, I get an unavailable button on the toolbar, which is depressed.
Even more annoying is if you add
BS_OWNERDRAW style will still fail, what should I do? |
|