CAtlExeModuleT::PreMessageLoop

 

This method is called immediately before entering the message loop.

Syntax

      HRESULT PreMessageLoop(
   int nShowCmd
) throw( );

Parameters

  • nShowCmd
    The value passed as the nShowCmd parameter in WinMain.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

Override this method to add custom initialization code for the application. The default implementation registers the class objects.

Requirements

Header: atlbase.h

See Also

CAtlExeModuleT Class
CAtlExeModuleT::PostMessageLoop
CAtlExeModuleT::WinMain