MvcViewport::OnCmdMsg

BOOLMvcViewport::OnCmdMsg(UINTnID, intnCode, void*pExtra, AFX_CMDHANDLERINFO*pHandlerInfo)

Attempt to handle a command message.

Defined in: MvcViewport.cpp

Return Value

TRUE if message was handled, otherwise FALSE.

Parameters

nID

Contains the command ID.

nCode

Identifies the command notification code.

pExtra

Used according to the value of nCode.

pHandlerInfo

If not NULL, OnCmdMsg fills in the pTarget and pmf members of the pHandlerInfo structure instead of dispatching the command. Typically, this parameter should be NULL.

Comments

This function first tries to find a child component interested in the message. If there are no takers, then it checks to see if it is connected to a controller that can handle the message.