Click here to Skip to main content
16,006,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: copying file to another file.. Pin
ThatsAlok6-Jun-05 0:08
ThatsAlok6-Jun-05 0:08 
GeneralRe: copying file to another file.. Pin
mpallavi5-Jun-05 21:43
mpallavi5-Jun-05 21:43 
GeneralRe: copying file to another file.. Pin
Nilesh K.5-Jun-05 22:02
Nilesh K.5-Jun-05 22:02 
GeneralRe: copying file to another file.. Pin
mpallavi5-Jun-05 22:13
mpallavi5-Jun-05 22:13 
GeneralRe: copying file to another file.. Pin
Nilesh K.5-Jun-05 22:31
Nilesh K.5-Jun-05 22:31 
GeneralRe: copying file to another file.. Pin
mpallavi5-Jun-05 22:41
mpallavi5-Jun-05 22:41 
GeneralA question about SendMessage in MFC Pin
inew5-Jun-05 17:28
inew5-Jun-05 17:28 
GeneralRe: A question about SendMessage in MFC Pin
ThatsAlok5-Jun-05 18:09
ThatsAlok5-Jun-05 18:09 
quangcanh wrote:
Then, defined a new user message (WM_USER +1) in CMyProjectView using macro ON_MESSAGE. Then, I write a function in CMainFrame and used SendMessage method to send message (WM_USER+1) to CMyProjectView.
Result: The message I sent couldn't receive in CMyProjectView.
But, I send a message from CMyProjectView to CMainFrame, is Ok.


Have you declared TWO ON_MESSAGE Handller for WM_USER+1 , i.e. One in CMyProjectView and One in CMainFrame?

In that case, Above mentioned Behavoiur is correct as View always recieve message before MainFrame class.


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
GeneralRe: A question about SendMessage in MFC Pin
inew5-Jun-05 18:27
inew5-Jun-05 18:27 
GeneralRe: A question about SendMessage in MFC Pin
ThatsAlok5-Jun-05 19:29
ThatsAlok5-Jun-05 19:29 
GeneralRe: A question about SendMessage in MFC Pin
Nilesh K.5-Jun-05 22:08
Nilesh K.5-Jun-05 22:08 
GeneralRe: A question about SendMessage in MFC Pin
MailtoGops6-Jun-05 5:03
MailtoGops6-Jun-05 5:03 
GeneralA question about CRichEditCtrl Pin
fanlovefan5-Jun-05 15:31
fanlovefan5-Jun-05 15:31 
GeneralRe: A question about CRichEditCtrl Pin
Christian Graus5-Jun-05 15:42
protectorChristian Graus5-Jun-05 15:42 
GeneralRe: A question about CRichEditCtrl Pin
fanlovefan5-Jun-05 17:12
fanlovefan5-Jun-05 17:12 
GeneralTCP service Pin
prof.hell5-Jun-05 15:11
prof.hell5-Jun-05 15:11 
GeneralRe: TCP service Pin
ThatsAlok5-Jun-05 17:56
ThatsAlok5-Jun-05 17:56 
Questionhelp with toolbar with 256 color icons? Pin
nm_1145-Jun-05 13:55
nm_1145-Jun-05 13:55 
GeneralADO error 340 Pin
no_oop_please5-Jun-05 13:18
no_oop_please5-Jun-05 13:18 
GeneralRe: ADO error 340 Pin
no_oop_please5-Jun-05 13:31
no_oop_please5-Jun-05 13:31 
GeneralRe: ADO error 340 Pin
no_oop_please6-Jun-05 5:49
no_oop_please6-Jun-05 5:49 
QuestionJavaScript Suggestions? Pin
bitpusher5-Jun-05 11:14
bitpusher5-Jun-05 11:14 
GeneralSpy++ / Window Handle Pin
Abhishek Karnik5-Jun-05 10:41
Abhishek Karnik5-Jun-05 10:41 
GeneralRe: Spy++ / Window Handle Pin
ThatsAlok5-Jun-05 18:12
ThatsAlok5-Jun-05 18:12 
Generalreading and writing Files through MFC Pin
Member 20005495-Jun-05 10:31
Member 20005495-Jun-05 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.