Global Classes in Win32Last reviewed: November 2, 1995Article ID: Q80382 |
The information in this article applies to:
SUMMARYUnder 16-bit Windows, when an application wants to check whether or not a window class has been previously registered in the system, it typically checks hPrevInstance. Under 32-bit Windows and Windows NT, hPreviousInstance is always FALSE, because a class definition is not available outside the process context of the process that registers it. Thus, code that checks hPreviousInstance will always register the window class.
MORE INFORMATIONUnder 32-bit Windows and Windows NT, a style of CS_GLOBALCLASS indicates that the class is available to every DLL in the process, not every application and DLL in the system, as it does in Windows 3.1. To have a class registered for every process in the system under Windows NT:
NOTE: This technique does not work under Windows 95. For more information, please see "Window Classes in Win32," which is available on the MSDN CD, starting April 1994.
|
Additional reference words: 3.10 3.50 4.00 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |