MvcController::PlugInTo

BOOLMvcController::PlugInTo(CWnd*pWnd, MvcVisualComponent*pVp)

Plugs the controller in a window and visual component

Defined in: MvcController.cpp

Return Value

Returns TRUE if the creation was successful

Parameters

pWnd

The window this controller will be plugged in to

pVp

The visual component this controller is acting upon

Comments

This function plugs a controller into a window so that it receives all messages that the window receives. It is usually not necessary to call this function directly since it is called by  Create. However, if you need to have the same controller instance move between several windows, this function can help. PlugInTo function will allow you to re-plug a controller into a different window and/or visual component.