共用方式為


CWindowImpl::GetWndClassInfo

Called by Create to access the window class information.

static CWndClassInfo& GetWndClassInfo( );

Return Value

A static instance of CWndClassInfo.

Remarks

By default, CWindowImpl obtains this method through the DECLARE_WND_CLASS macro, which specifies a new window class.

To superclass an existing window class, derive your class from CWindowImpl and include the DECLARE_WND_SUPERCLASS macro to override GetWndClassInfo. For more information, see the CWindowImpl overview.

Besides using the DECLARE_WND_CLASS and DECLARE_WND_SUPERCLASS macros, you can override GetWndClassInfo with your own implementation.

Requirements

Header: atlwin.h

See Also

Reference

CWindowImpl Class

Other Resources

CWindowImpl Members