CContainedWindow::SubclassWindow

BOOL SubclassWindow( HWND hWnd );

Return Value

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

Parameters

hWnd   

[in] The handle to the window being subclassed.

Remarks

Subclasses the window identified by hWnd and attaches it to the CContainedWindow object. The subclassed window now uses CContainedWindow::WindowProc. The original window procedure is saved in m_pfnSuperWindowProc.

Note   Do not call SubclassWindow if you have already called Create.

CContainedWindow OverviewClass Members

See Also

CContainedWindow::UnsubclassWindow