creating checkbox in windows

Started by
1 comment, last by keethrus 19 years, 11 months ago
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
Advertisement
A checkbox is a style of a BUTTON.

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley
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.

This topic is closed to new replies.

Advertisement