Udostępnij za pośrednictwem


DECLARE_WND_CLASS_EX

 

Allows you to specify the name of an existing window class on which a new window class will be based. Place this macro in an ATL ActiveX control's control class.

Syntax

      DECLARE_WND_CLASS_EX( 
   WndClassName, 
   style, 
   bkgnd  
)

Parameters

  • WndClassName
    [in] The name of the new window class. If NULL, ATL will generate a window class name.

  • style
    [in] The style of the window.

  • bkgnd
    [in] The background color of the window.

Remarks

This macro allows you to specify the class parameters of a new window class, whose information will be managed by CWndClassInfo. DECLARE_WND_CLASS_EX defines the new window class by implementing the following static function:

static CWndClassInfo& GetWndClassInfo();

If you want to use the default styles and background color, use the DECLARE_WND_CLASS macro. For more information about using windows in ATL, see the article ATL Window Classes.

Requirements

Header: atlwin.h

See Also

Window Class Macros
ATL Macros
DECLARE_WND_SUPERCLASS