How do you add checkbox controls at runtime
-
Can anyone help provide a method to add checkbox controls programatically. I would like to read in a file that contains the names of the checkboxes to be created and displayed. The file contents will not stay the same thus the need to create these at runtime. :confused: Thanks. sd
-
Can anyone help provide a method to add checkbox controls programatically. I would like to read in a file that contains the names of the checkboxes to be created and displayed. The file contents will not stay the same thus the need to create these at runtime. :confused: Thanks. sd
CreateWindow()
-
Can anyone help provide a method to add checkbox controls programatically. I would like to read in a file that contains the names of the checkboxes to be created and displayed. The file contents will not stay the same thus the need to create these at runtime. :confused: Thanks. sd
Or you can use of
CButton m_Button; m_Button.Create("Test",WS_CHILD|BS_AUTOCHECKBOX|WS_VISIBLE,CRect(0,0,100,23),this,/*id button*/1);
WhiteSky
-
Can anyone help provide a method to add checkbox controls programatically. I would like to read in a file that contains the names of the checkboxes to be created and displayed. The file contents will not stay the same thus the need to create these at runtime. :confused: Thanks. sd
Hello, We cants add checkbox at run time. What we can do is: Add the Check Box in ur Dialog. After you read the Name of checkbox from file,u can change the lable of ur check box easily. If you want to display check box at run time only then you can hide them previously and then use ShowWindow(SW_SHOW) method to make those check box visible. Abhijeet