Re: How can i get post message to the Main Window in an user-interface thread?
ALT="MFC Programmer's SourceBook" WIDTH="256"
HEIGHT="88">
color="#a0a0ff">Discussion Board
[ Read Responses | Post a New Response | Return to the Index ]
Previous in ThreadRe: How can i get post message to the Main Window in an user-interface thread?
Posted by Anish Dave on 4/22/98 7:14a.m., in response to How can i get post message to the Main Window in an user-interface thread?, posted by Chan Shi Wing on 4/22/98 6:13a.m.
Hello,
AfxGetMainWnd() returns a CWnd pointer.
Class CWnd has member functions called SendMessage and PostMessage.
So Just use AfxGetMainWnd->PostMessage( message, param, param)
or AfxGetMainWnd->SendMessage( message, param, param) to send a message to the main window.
Hope this helps.
Responses
(No responses to this message have been posted.)
Post a New Response
Your Name:
E-Mail Address:
Subject:
Message:
If you'd like to include a link to another page with your message,please provide both the URL address and the title of the page:
Optional Link URL:
Optional Link Title:
If you'd like to include an image (picture) with your message,please provide the URL address of the image file:
Optional Image URL:
If you'd like e-mail notification of responses, please check this box:
The MFC Discussion Board is maintained with WebBBS 2.24.