Microsoft KB Archive/60385

INF: Pop-Up Windows and Predefined Control Classes PSS ID Number: Q60385 Article last modified on 05-10-1994

3.00 3.10

WINDOWS

When creating a pop-up window using a predefined control class (such as an edit control), the pop-up must have a parent window. This is because predefined controls will use the parent’s DS (data segment).

If you create a pop-up window of a predefined control class with no parent, the control will get an invalid DS, causing a wild write to memory, and often a fatal exit.

This information also applies to dialog boxes. A dialog box using predefined controls must have a parent or it will cause unpredictable results.

Additional reference words: 3.00 3.10 KBCategory: Prg KBSubcategory: UsrCtl

=
================================================================

Copyright Microsoft Corporation 1994.