Partager via


CContainedWindowT::SubclassWindow

Subclasses the window identified by hWnd and attaches it to the CContainedWindowT object.

BOOL SubclassWindow(
   HWND hWnd 
);

Parameters

  • hWnd
    [in] The handle to the window being subclassed.

Return Value

TRUE if the window is successfully subclassed; otherwise, FALSE.

Remarks

The subclassed window now uses CContainedWindowT::WindowProc. The original window procedure is saved in m_pfnSuperWindowProc.

Notes

Do not call SubclassWindow if you have already called Create.

Requirements

Header: atlwin.h

See Also

Reference

CContainedWindowT Class

CContainedWindowT::UnsubclassWindow

Other Resources

CContainedWindowT Members