|
-
January 31st, 2007, 07:01 AM
#2
Re: Radio Buttons - WS_GROUP & WS_TABSTOP
Hi dsmbala,
Well, here's an excerpt from Microsoft's documentation about the use of WS_GROUP:
WS_GROUP Specifies the first control of a group of controls in which the user can move from one control to the next with the arrow keys. All controls defined with the WS_GROUP style FALSE after the first control belong to the same group. The next control with the WS_GROUP style starts the next group (that is, one group ends where the next begins).
Therefore it would not be necessary to include the WS_GROUP style for both the first and last radio button in each group.
As for drawing a horizontal bar, I believe it is possible to do using CreateWindow. Mabye something like this:
Code:
hwnd = CreateWindowEx(WS_EX_LEFT | WS_EX_LTRREADING | WS_STATICEDGE,
"STATIC",
(LPCTSTR)NULL,
WS_CHILD | WS_VISIBLE,
0,
0,
375,
1,
hwndParent,
(HMENU)NULL,
hInstance,
(LPVOID)NULL);
I hope I've been of some help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|