MvcViewport::OnWndMsg

BOOLMvcViewport::OnWndMsg(UINTmessage, WPARAMwParam, LPARAMlParam, LRESULT*pResult)

Attempt to handle a window message.

Defined in: MvcViewport.cpp

Return Value

TRUE if message was handled, otherwise FALSE.

Parameters

message

The windows message being handled

wParam

Specifies additional message-dependent information.

lParam

Specifies additional message-dependent information.

pResult

The return value

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. Mouse messages are only routed to a child if they occur within the child's bounding rectangle. The viewport converts the mouse message point to logical coordinates before hit testing the children.