Jump to content
  • Advertisement


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


creating checkbox in windows

This topic is 5311 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", "",
	50, 350, 300, 60, hwnd, (HMENU)ID_MYCHECKBOX , GetModuleHandle( NULL ), NULL );
- jeremiah inlovewithGod.com

Share this post

Link to post
Share on other sites
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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!