Sending Message
Hallo!
I want to know how do I send a Message from a
MDIFrameWnd class (CMainFrame).
From the toolbar from the MainFrame I push a button
that calls a member function (OnToolsF2).
This fuction should send a Message, and a CDocument
class receive it and run a code.
(OnReceive Message?).
...Any help will be very apreciated
# 1 Re: Sending Message
"Pablo Reyes" <pablo_reyes@ieee.org> wrote:
>
>Hallo!
>
>I want to know how do I send a Message from a
>MDIFrameWnd class (CMainFrame).
>From the toolbar from the MainFrame I push a button
>that calls a member function (OnToolsF2).
>This fuction should send a Message, and a CDocument
>class receive it and run a code.
>(OnReceive Message?).
>...Any help will be very apreciated
>
>
>
CFrameWnd has a GetActiveDocument function. Get the pointer to CDocument
and cast it to your document class and call the handler function directly.