|
-
May 3rd, 2007, 05:31 AM
#1
Setting a control's position relative to the GroupBox
Hi
Im trying to learn using Win32API with C using VC++ 6.0 via theForger's Win32 API tutorial.
I added a resource - in it, a ListBox is in a GroupBox. But when I move the GroupBox, the ListBox doesn't get moved. I may have to specify the GroupBox as a container to the ListBox. How do I do that ? How do I set the ListBox's position relative to the GroupBox ?
Thanks
-
May 3rd, 2007, 10:54 PM
#2
Re: Setting a control's position relative to the GroupBox
There isn't a way in the plain windows API to make dialog controls move as a group. A child window will move with its parent, but a group control does not act as a parent window.
I usually use EnumChildWindows() on the dialog, to move all controls within it a consistent delta.
Henri Hein
Principal Engineer, Propel
Do not credit Propel with my views or opinions.
-
May 3rd, 2007, 11:08 PM
#3
Re: Setting a control's position relative to the GroupBox
Having used VB 6 before, the design-view is not all that same is it ?
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
|