Originally Posted by
Shamino
HWND hwnd;
hwnd = CreateWindowEx(
WS_EX_CLIENTEDGE,
g_szClassName,
"The title of my window",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
NULL, NULL, hInstance, NULL);
The first parameter (WS_EX_CLIENTEDGE) is the extended windows style, in this case I have set it to give it a sunken inner border around the window. Set it to 0 if you'd like to see the difference. Also play with other values to see what they do.
Thank you... Works well
Just for record:
Code:
hWnd_Radio = CreateWindowEx(0,
TEXT("BUTTON"),
TEXT(""),
WS_CHILD | WS_VISIBLE | BS_RADIOBUTTON,
485, 375, 16, 16,
hWnd,
NULL,
hInstance,
NULL);
if ( hWnd_Radio == NULL )
return FALSE;