Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postmessage

Status
Not open for further replies.

ceodav

Programmer
Feb 21, 2003
106
IT
hi,

how can i post a message in mainfrm.cpp that must be read by the view file?

Instead of CView class i use CFormView class which owns some CEdit.

I implemented some menu and when i select one menu i want to add a string on the CEdit in CFormView.

the problem is that mainfrm.cpp and AppView are different file so i thought to communicate with postmessage

but if i post a message in mainfrm it never appear in appview.

anyone could suggest me a solution? (hope to be clear...)

thanks

Davide
 
Perhaps you could let the view trap the menu command rather than the mainfrm?


/Per
[sub]
www.perfnurt.se[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top