MoveWindow() of a groupbox overtop another groupbox
Posted on 1998-08-29
I am performing a MoveWindow on a groupbox within a dialog such that I want one groupbox to overlay another groupbox. Both groupboxes are defined on the dialog with the exact same dimensions. However, when I perform the MoveWindow() command, the groupbox I wish to move actually appears about 1/4 inch below the groupbox I am trying to overlay.
Here is the code I am using:
m_wndGroupToOverlay = a CButton assigned control to the groupbox. (I don't know why ClassWizard only gave me this choice for a member variable assignment...but...)
m_wndOtherGroupBox = another groupbox member variable for a groupbox defined elsewhere in the dialog.
(..after calling the default ::OnInitDialog)
This results in the offset groupbox, when I was expecting it would be covering the original groubox completely.