Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 12:32
professionalMohibur Rashid26-Jun-11 12:32 
GeneralRe: ON_COMMAND not working on mfc Pin
Richard MacCutchan26-Jun-11 21:23
mveRichard MacCutchan26-Jun-11 21:23 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 21:28
professionalMohibur Rashid26-Jun-11 21:28 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 22:01
Iain Clarke, Warrior Programmer26-Jun-11 22:01 
GeneralRe: ON_COMMAND not working on mfc Pin
Richard MacCutchan26-Jun-11 22:48
mveRichard MacCutchan26-Jun-11 22:48 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 23:00
Iain Clarke, Warrior Programmer26-Jun-11 23:00 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 22:49
professionalMohibur Rashid26-Jun-11 22:49 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 22:59
Iain Clarke, Warrior Programmer26-Jun-11 22:59 
johny10151981 wrote:
And I am not using any other class other than CWnd.


I'm finding it hard to believe you have a working MFC application then. MFC's message loop "live"s in CWinThread::Run member class. (CWinApp inherits from CWinApp).

And without a message map, you won't get a working application.

I suppose you could write a "raw" Win32 WinMain, and message pump yourself, and just use MFC's CWnd (and other CWnd based classes, like CEdit) as wrappers around a basic HWND windowa handle, but in that case you won't have any message mapping working, etc.

So, maybe that's the problem! You're not really using MFC!

Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!

GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 23:18
professionalMohibur Rashid26-Jun-11 23:18 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 23:35
Iain Clarke, Warrior Programmer26-Jun-11 23:35 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 23:50
professionalMohibur Rashid26-Jun-11 23:50 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 22:08
Iain Clarke, Warrior Programmer26-Jun-11 22:08 
AnswerRe: ON_COMMAND not working on mfc Pin
Mark Salsbery26-Jun-11 6:22
Mark Salsbery26-Jun-11 6:22 
GeneralRe: ON_COMMAND not working on mfc [modified] Pin
Mohibur Rashid26-Jun-11 12:23
professionalMohibur Rashid26-Jun-11 12:23 
GeneralRe: ON_COMMAND not working on mfc Pin
Mark Salsbery26-Jun-11 13:50
Mark Salsbery26-Jun-11 13:50 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 19:11
professionalMohibur Rashid26-Jun-11 19:11 
GeneralRe: ON_COMMAND not working on mfc Pin
Stefan_Lang27-Jun-11 4:32
Stefan_Lang27-Jun-11 4:32 
QuestionCalling Funciton of Other class Pin
Mohibur Rashid25-Jun-11 23:28
professionalMohibur Rashid25-Jun-11 23:28 
AnswerRe: Calling Funciton of Other class Pin
Richard MacCutchan26-Jun-11 2:30
mveRichard MacCutchan26-Jun-11 2:30 
GeneralRe: Calling Funciton of Other class Pin
Mohibur Rashid26-Jun-11 2:54
professionalMohibur Rashid26-Jun-11 2:54 
GeneralRe: Calling Funciton of Other class Pin
Richard MacCutchan26-Jun-11 5:16
mveRichard MacCutchan26-Jun-11 5:16 
GeneralRe: Calling Funciton of Other class Pin
Mohibur Rashid26-Jun-11 12:15
professionalMohibur Rashid26-Jun-11 12:15 
AnswerRe: Calling Funciton of Other class Pin
Niklas L26-Jun-11 3:52
Niklas L26-Jun-11 3:52 
GeneralRe: Calling Funciton of Other class Pin
Mohibur Rashid26-Jun-11 4:11
professionalMohibur Rashid26-Jun-11 4:11 
AnswerRe: Calling Funciton of Other class Pin
Stefan_Lang27-Jun-11 1:57
Stefan_Lang27-Jun-11 1:57 

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.