Click here to Skip to main content
15,926,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC and OpenGL Pin
Nemanja Trifunovic25-Oct-01 11:38
Nemanja Trifunovic25-Oct-01 11:38 
GeneralRe: MFC and OpenGL Pin
Christian Graus25-Oct-01 12:05
protectorChristian Graus25-Oct-01 12:05 
GeneralRe: MFC and OpenGL Pin
Christian Graus25-Oct-01 12:12
protectorChristian Graus25-Oct-01 12:12 
GeneralRe: MFC and OpenGL Pin
29-Oct-01 2:12
suss29-Oct-01 2:12 
GeneralRe: MFC and OpenGL Pin
29-Oct-01 2:13
suss29-Oct-01 2:13 
GeneralRe: MFC and OpenGL Pin
Todd Smith25-Oct-01 13:25
Todd Smith25-Oct-01 13:25 
GeneralRe: MFC and OpenGL Pin
29-Oct-01 2:19
suss29-Oct-01 2:19 
GeneralMenu message handler wont work! Pin
25-Oct-01 8:39
suss25-Oct-01 8:39 
Hi,

I am writing an MFC application which has a menu called IDR_MAINFRAME. Now in the menu I have a menu item File>Listen (ID_FILE_LISTEN).

I want the message handler for this menu item in the view class of my application (CUDPView). So I used the Class Wizard to add the message handler, and it created the following function in the CUDPView.cpp file:

void CUDPView::OnFileListen()
{
// TODO: Add your command handler code here
AfxMessageBox("Ok Code Reachable"); // added by me
}

I added the AfxMessageBox line in the code to see if this function was indeed called when I clicked File>Listen, but it was not called!

Tell me please, what's wrong?

Mike Frown | :(
GeneralRe: Menu message handler wont work! Pin
Tomasz Sowinski25-Oct-01 8:45
Tomasz Sowinski25-Oct-01 8:45 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 9:10
suss25-Oct-01 9:10 
GeneralRe: Menu message handler wont work! Pin
Tomasz Sowinski25-Oct-01 9:13
Tomasz Sowinski25-Oct-01 9:13 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 9:46
suss25-Oct-01 9:46 
GeneralRe: Menu message handler wont work! Pin
Tomasz Sowinski25-Oct-01 9:57
Tomasz Sowinski25-Oct-01 9:57 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 10:11
suss25-Oct-01 10:11 
GeneralRe: Menu message handler wont work! Pin
Tomasz Sowinski25-Oct-01 10:16
Tomasz Sowinski25-Oct-01 10:16 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 10:22
suss25-Oct-01 10:22 
GeneralRe: Menu message handler wont work! Pin
Christian Graus25-Oct-01 10:05
protectorChristian Graus25-Oct-01 10:05 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 10:17
suss25-Oct-01 10:17 
GeneralRe: Menu message handler wont work! Pin
Christian Graus25-Oct-01 10:30
protectorChristian Graus25-Oct-01 10:30 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 10:38
suss25-Oct-01 10:38 
GeneralRe: Menu message handler wont work! Pin
Christian Graus25-Oct-01 10:46
protectorChristian Graus25-Oct-01 10:46 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 10:51
suss25-Oct-01 10:51 
GeneralRe: Menu message handler wont work! Pin
Christian Graus25-Oct-01 11:51
protectorChristian Graus25-Oct-01 11:51 
GeneralRe: Menu message handler wont work! Pin
Fazlul Kabir25-Oct-01 12:02
Fazlul Kabir25-Oct-01 12:02 
GeneralRe: Menu message handler wont work! Pin
25-Oct-01 15:23
suss25-Oct-01 15:23 

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.