共用方式為


CContainedWindowT::WindowProc

This static method implements the window procedure.

static LRESULT CALLBACK WindowProc(
   HWND hWnd,
   UINT uMsg,
   WPARAM wParam,
   LPARAM lParam 
);

Parameters

  • hWnd
    [in] The handle to the window.

  • uMsg
    [in] The message sent to the window.

  • wParam
    [in] Additional message-specific information.

  • lParam
    [in] Additional message-specific information.

Return Value

The result of the message processing.

Remarks

WindowProc directs messages to the message map identified by m_dwMsgMapID. If necessary, WindowProc calls DefWindowProc for additional message processing.

Requirements

Header: atlwin.h

See Also

Concepts

CContainedWindowT Class

CContainedWindowT Members

BEGIN_MSG_MAP

ALT_MSG_MAP