PRB: OLE Controls May Be Hidden by Group Box in Dialog

Last reviewed: August 7, 1997
Article ID: Q142401
4.00 WINDOWS NT kbusage kbtshoot kbprb

The information in this article applies to:

  • Microsoft Visual C++, 32-bit Edition, version 4.0

SYMPTOMS

OLE controls may be covered by a group box if the group box precedes the OLE control in the tab order. In the case of an OLE Control that subclasses an edit control -- 3D look enabled only -- the control's border will be drawn but the control itself will not be visible, and the control will appear to be disabled.

CAUSE

The tab order in a dialog is synonymous with the Z order, meaning that a control that is first in the tab order will have a higher Z order than a control that follows it in the Z order. A control with the WS_CLIPSIBLINGS window style set that is overlapped by another control will not be painted in the area that is overlapped. OLE controls have the WS_CLIPSIBLINGS window style set by default.

RESOLUTION

Set the tab order position of the group box to be later in the tab order than the controls it contains. This can be done without affecting the physical tab order of the dialog.

STATUS

This behavior is by design.

MORE INFORMATION

Standard window's controls typically do not have the WS_CLIPSIBLINGS window style set. However, any control that does have the WS_CLIPSIBLINGS window style set will behave as described here. In the case of OLE controls, WS_CLIPSIBLINGS is set by default. This being the case, this behavior will be noticed any time an OLE control is placed in a group box and the group box precedes the control in the tab order.


Additional reference words: 4.00 hidden
KBCategory: kbusage kbtshoot kbprb
KBSubcategory: VCGenIss
Keywords : VCGenIss kbprb kbtshoot kbusage
Version : 4.00
Platform : NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.