求CButton::SetState()的用法示例
求CButton::SetState()的用法示例
[解决办法]
MSDN上的例子代码
[解决办法]
CButton myPushButton;// Create a push button.myPushButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, CRect(10,10,100,30), pParentWnd, 1);// Invert the highlight state of the button.myPushButton.SetState(!(myPushButton.GetState() & 0x0004));