CodePudding user response:
Must be rewritten CButton derived class ontouch () function, or complains.CodePudding user response:
Well find the problem must be rewritten CButton derived class virtual function of the drawitem (), not is not, there is a WM_drawitem, bonus has been the,,,, thank you very much!CodePudding user response:
Need to rewrite the DrawItem virtual functionsCodePudding user response:
Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,CodePudding user response:
Since the draw Button, it is not recommended by processing the owner the draw, but should deal directly with the WM_PAINT message,Because the Checkbox and radio button is also a CButton, when dealing with the owner after the draw, the Checkbox and radiobutton Checked state, is invalid,
CodePudding user response: