Click here to Skip to main content
16,011,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WoW! A new file to explore..... Pin
Roger Allen18-Jul-02 0:11
Roger Allen18-Jul-02 0:11 
GeneralRe: WoW! A new file to explore..... Pin
ns18-Jul-02 1:22
ns18-Jul-02 1:22 
GeneralOutlook GUI!!! Pin
tongc17-Jul-02 6:02
tongc17-Jul-02 6:02 
GeneralRe: Outlook GUI!!! Pin
benjymous17-Jul-02 6:19
benjymous17-Jul-02 6:19 
GeneralRe: Outlook GUI!!! Pin
tongc17-Jul-02 7:11
tongc17-Jul-02 7:11 
Questionwho handles ID_FILE_OPEN? Pin
ns17-Jul-02 5:48
ns17-Jul-02 5:48 
AnswerRe: who handles ID_FILE_OPEN? Pin
Roger Allen17-Jul-02 5:56
Roger Allen17-Jul-02 5:56 
GeneralRe: who handles ID_FILE_OPEN? Pin
ns17-Jul-02 6:01
ns17-Jul-02 6:01 
Thank you. So why do we send a message to the AfxGetMainWnd() object rather than AfxGetApp()? THe former works. Havent tried the latter.


One odd thing I found is that if my menu item is handled locally by the class thats sending the message, I dont have to Afx -> sendmessage it, just a direct sendmessage (since its to this->). So looks like the message has to be sent to the class that handles the command. In retrospect thats obvious....

So why AfxGetMainWnd (which returns the mainframe right? )and not AfxGetApp who is handling the ID?
Thanks,
ns
Generalhmmmm- why cant we send msgs to the App? Pin
ns17-Jul-02 6:05
ns17-Jul-02 6:05 
GeneralRe: hmmmm- why cant we send msgs to the App? Pin
Roger Allen17-Jul-02 6:19
Roger Allen17-Jul-02 6:19 
GeneralRe: hmmmm- why cant we send msgs to the App? Pin
ns17-Jul-02 6:27
ns17-Jul-02 6:27 
GeneralRe: hmmmm- why cant we send msgs to the App? Pin
Ravi Bhavnani17-Jul-02 7:27
professionalRavi Bhavnani17-Jul-02 7:27 
GeneralRe: hmmmm- why cant we send msgs to the App? Pin
dabs18-Jul-02 2:28
dabs18-Jul-02 2:28 
GeneralRe: hmmmm- why cant we send msgs to the App? Pin
Ravi Bhavnani18-Jul-02 3:32
professionalRavi Bhavnani18-Jul-02 3:32 
GeneralBest database access technology Pin
Don Miguel17-Jul-02 5:29
Don Miguel17-Jul-02 5:29 
GeneralRe: Best database access technology Pin
Robert Vista17-Jul-02 6:16
Robert Vista17-Jul-02 6:16 
GeneralRe: Best database access technology Pin
Don Miguel17-Jul-02 6:25
Don Miguel17-Jul-02 6:25 
GeneralCalendar Control broken Pin
Anonymous17-Jul-02 5:26
Anonymous17-Jul-02 5:26 
GeneralStrange popup window problem. Pin
Steven Don17-Jul-02 4:53
sussSteven Don17-Jul-02 4:53 
GeneralCToolBarCtrl::AddButtons question Pin
ns17-Jul-02 4:52
ns17-Jul-02 4:52 
GeneralRe: CToolBarCtrl::AddButtons question Pin
KaЯl17-Jul-02 6:25
KaЯl17-Jul-02 6:25 
GeneralThumbnail using IExtractImage Pin
toon17-Jul-02 4:14
toon17-Jul-02 4:14 
GeneralRe: Thumbnail using IExtractImage Pin
Anonymous17-Jul-02 5:11
Anonymous17-Jul-02 5:11 
GeneralRe: Thumbnail using IExtractImage Pin
toon17-Jul-02 21:20
toon17-Jul-02 21:20 
GeneralRe: Thumbnail using IExtractImage Pin
KaЯl17-Jul-02 5:59
KaЯl17-Jul-02 5:59 

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.