CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    115

    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
    Get Paid To Be A Friend : Rent A Friend

  2. #2
    Join Date
    Feb 2003
    Location
    California
    Posts
    334

    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.

  3. #3
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    115

    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 ?
    Get Paid To Be A Friend : Rent A Friend

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured