Hi,
I have several CButton's in a COleControl. Whenever I click on any of the buttons the button draws itself in the down state even after the button is released. I do not seem to be able to get it to draw in the normal state again after a press.
Here is how I create the buttons, I have tried using the normal 3D style but still get the same problem.
m_btnLeftPage.Create( _T("<<"), WS_CHILD|BS_PUSHBUTTON|BS_FLAT, CRect(0,0,0,0), this, BTN_LEFTPAGE_ID );
m_btnLeft.Create( _T("<"), WS_CHILD|BS_PUSHBUTTON|BS_FLAT, CRect(0,0,0,0), this, BTN_LEFT_ID );
m_btnZoomInX.Create( _T("+"), WS_CHILD|BS_PUSHBUTTON|BS_FLAT, CRect(0,0,0,0), this, BTN_ZOOMINX_ID );
m_btnZoomOutX.Create( _T("-"), WS_CHILD|BS_PUSHBUTTON|BS_FLAT, CRect(0,0,0,0), this, BTN_ZOOMOUTX_ID );
m_btnRight.Create( _T(">"), WS_CHILD|BS_PUSHBUTTON|BS_FLAT, CRect(0,0,0,0), this, BTN_RIGHT_ID );
m_btnRightPage.Create( _T(">>"), WS_CHILD|BS_PUSHBUTTON|BS_FLAT, CRect(0,0,0,0), this, BTN_RIGHTPAGE_ID );
The buttons are given the correct size and position in OnSize().
Any suggestions?
Thanks - John