简体   繁体   中英

How to make a check-box in a dynamic MFC dialog?

I have to create a dynamic dialog and used therefor the procedure described in the article Creating a Template in Memory . I already created buttons and edits but I don't know how I can make check-box. Do you know how?

In the DLGITEMTEMPLATE article there are only following types defined:

  • 0x0080 Button
  • 0x0081 Edit
  • 0x0082 Static
  • 0x0083 List box
  • 0x0084 Scroll bar
  • 0x0085 Combo box

Thanks!

A checkbox is a Button with the BS_CHECKBOX or BS_AUTOCHECKBOX style

for more information, see http://msdn.microsoft.com/en-us/library/bb775951(VS.85).aspx

复选框是具有BS_CHECKBOX样式的按钮。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM