I within the dialog box to add a check box check box controls, then add it to a variable, the following figure
But when I run vs2017 error, the diagram below:
This I don't know where the wrong is wrong, I don't doubt is variable type right, When I use the wizard to check box to add variables, is the default type CButton, change not to drop, then I go to change type in the code, change the CButton to CCheckBox, but found no CCheckBox this class, but I found CCheckListBox this class, I try to use it to replace CButton, but still not solve the mistake, then I tried the CWnd in turn, CListBox, have no purpose, Why no CCheckBox in MFC class - this class? How to check box CCheckBox add variables?
CodePudding user response:
The password edit box and button? Is a low-level errors.