Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

keethrus

creating checkbox in windows

This topic is 5130 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i need to know how to create a checkbox in windows. ive tried searching microsofts website, but its so hard to find what youre looking for there. not working for me...
myCheckbox = CreateWindowEx( WS_EX_WINDOWEDGE, "CHECKBOX", "",
	WS_CHILD | WS_VISIBLE | WS_BORDER,
	50, 350, 300, 60, hwnd, (HMENU)ID_MYCHECKBOX , GetModuleHandle( NULL ), NULL );
- jeremiah inlovewithGod.com

Share this post


Link to post
Share on other sites
Advertisement
Yes, create a button control (class name "BUTTON") with the style BS_CHECKBOX for a standard checkbox, BS_AUTOCHECKBOX for an automatic checkbox, BS_3STATE for a 3-state checkbox, or BS_AUTO3STATE for an automatic 3-state checkbox. The third state is disabled, if you''re wondering. See MSDN for more info.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!