how can i made check box in C???
If you want to creste a chechbox on a windows program you can do this:
LRESULT CALLBACK WndProc ( HWND mainWindow, UINT messages, WPARAM wParam, LPARAM lParam) { switch (messages) { case WM_CREATE:
hwndCheckBox01 = CreateWindow (TEXT ("button"), "CheckBox", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 10, 210, 65, 10, mainWindow, (HMENU) 17, ((LPCREATESTRUCT) lParam)->hInstance, NULL) ;
other cases: {stuff}
}
Tis is assuming that you have HWND hwndCheckBox01 declared somewhere on your code and your main window is named as mainWindow.;
Log in to post a comment.
how can i made check box in C???
If you want to creste a chechbox on a windows program you can do this:
LRESULT CALLBACK WndProc (
HWND mainWindow,
UINT messages,
WPARAM wParam,
LPARAM lParam)
{
switch (messages) {
case WM_CREATE:
hwndCheckBox01 = CreateWindow (TEXT ("button"), "CheckBox",
WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX,
10, 210, 65, 10, mainWindow, (HMENU) 17, ((LPCREATESTRUCT) lParam)->hInstance, NULL) ;
other cases:
{stuff}
}
Tis is assuming that you have HWND hwndCheckBox01 declared somewhere on your code and your main window is named as mainWindow.;