Microsoft Windows CE 3.0  

CBaseWindow::ActivateWindow

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Sizes the window according to the requirements of the derived class.

virtual HRESULT ActivateWindow( );

Return Values

Returns an HRESULTvalue that depends on the implementation of the interface. HRESULTcan include one of the following standard constants, or other values not listed.

E_FAIL Failure.
E_NOTIMPL Method is not supported.
NOERROR No error.

Remarks

This member function calls CBaseWindow::GetDefaultRect, which a derived class should override to return the size of the images that will be displayed. ActivateWindowthen sizes the window so that the client area matches this size.