Click here to Skip to main content
15,904,494 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to "catch" keystrokes from other applications Pin
Tomasz Sowinski25-Oct-01 10:59
Tomasz Sowinski25-Oct-01 10:59 
AnswerRe: How to "catch" keystrokes from other applications Pin
Ravi Bhavnani25-Oct-01 11:00
professionalRavi Bhavnani25-Oct-01 11:00 
AnswerOoops - sorry 4 the Delphi link Pin
Ravi Bhavnani25-Oct-01 11:18
professionalRavi Bhavnani25-Oct-01 11:18 
AnswerRe: How to "catch" keystrokes from other applications Pin
Fazlul Kabir25-Oct-01 11:36
Fazlul Kabir25-Oct-01 11:36 
GeneralClasses not staying in SubDirectories of Project Pin
John Gilbert25-Oct-01 10:15
John Gilbert25-Oct-01 10:15 
GeneralRe: Classes not staying in SubDirectories of Project Pin
Tomasz Sowinski25-Oct-01 10:17
Tomasz Sowinski25-Oct-01 10:17 
GeneralRe: Classes not staying in SubDirectories of Project Pin
John Gilbert25-Oct-01 10:27
John Gilbert25-Oct-01 10:27 
GeneralHelp needed with Menu bar message handler Pin
25-Oct-01 10:13
suss25-Oct-01 10:13 
I haven't really understood how to add a message handler for a menu bar item. I just created an empty MFC project (MyApp) and then added a new menu item (ID_FILE_SOMEITEM).

Then through the Class Wizard on Mesage Maps tab I chose the view class CMyAppView and chose ID_FILE_SOMEITEM in ObjectIDs and then clicked on Command in Messages and clicked the Add Function button.

The class wizard created the function OnFileListen.
I added the
AfxMessageBox("Code Reachable");
line inside the function and when I built the project.....I was expecting it to give me a message box alert on clicking File>SomeItem

But Nothing Happens. Evidently I am making a pretty basic mistake in creation of message handlers.
Tell me what to correct.

Mike
GeneralRe: Help needed with Menu bar message handler Pin
Ravi Bhavnani25-Oct-01 10:22
professionalRavi Bhavnani25-Oct-01 10:22 
GeneralRe: Help needed with Menu bar message handler Pin
25-Oct-01 10:27
suss25-Oct-01 10:27 
QuestionWhy the app have closed ? Pin
Cris25-Oct-01 9:30
Cris25-Oct-01 9:30 
AnswerRe: Why the app have closed ? Pin
Christian Graus25-Oct-01 10:02
protectorChristian Graus25-Oct-01 10:02 
AnswerRe: Why the app have closed ? Pin
Christian Graus25-Oct-01 10:27
protectorChristian Graus25-Oct-01 10:27 
GeneralRe: Why the app have closed ? Pin
Cris26-Oct-01 1:10
Cris26-Oct-01 1:10 
GeneralMFC and OpenGL Pin
25-Oct-01 9:25
suss25-Oct-01 9:25 
GeneralRe: MFC and OpenGL Pin
Christian Graus25-Oct-01 10:12
protectorChristian Graus25-Oct-01 10:12 
GeneralRe: MFC and OpenGL Pin
#realJSOP25-Oct-01 10:18
professional#realJSOP25-Oct-01 10:18 
GeneralRe: MFC and OpenGL Pin
25-Oct-01 10:21
suss25-Oct-01 10:21 
GeneralRe: MFC and OpenGL Pin
Tomasz Sowinski25-Oct-01 10:36
Tomasz Sowinski25-Oct-01 10:36 
GeneralRe: MFC and OpenGL Pin
25-Oct-01 11:05
suss25-Oct-01 11:05 
GeneralRe: MFC and OpenGL Pin
#realJSOP25-Oct-01 11:28
professional#realJSOP25-Oct-01 11:28 
GeneralRe: MFC and OpenGL Pin
Tomasz Sowinski26-Oct-01 0:13
Tomasz Sowinski26-Oct-01 0:13 
GeneralRe: MFC and OpenGL Pin
#realJSOP25-Oct-01 11:26
professional#realJSOP25-Oct-01 11:26 
GeneralRe: MFC and OpenGL Pin
Nemanja Trifunovic25-Oct-01 11:07
Nemanja Trifunovic25-Oct-01 11:07 
GeneralRe: MFC and OpenGL Pin
#realJSOP25-Oct-01 11:29
professional#realJSOP25-Oct-01 11:29 

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.