Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adobe Reader in Java Pin
snacker221-May-09 3:55
snacker221-May-09 3:55 
GeneralRe: Adobe Reader in Java Pin
snacker220-May-09 6:00
snacker220-May-09 6:00 
Questionnewbie needs help! Pin
jonathan warfield19-May-09 12:49
jonathan warfield19-May-09 12:49 
AnswerRe: newbie needs help! [modified] Pin
Stuart Dootson19-May-09 12:56
professionalStuart Dootson19-May-09 12:56 
AnswerRe: newbie needs help! Pin
Maximilien19-May-09 13:44
Maximilien19-May-09 13:44 
QuestionRe: newbie needs help! Pin
David Crow19-May-09 16:07
David Crow19-May-09 16:07 
AnswerRe: newbie needs help! Pin
Sarath C19-May-09 18:32
Sarath C19-May-09 18:32 
QuestionMenus and MFC Pin
BobInNJ19-May-09 12:19
BobInNJ19-May-09 12:19 
I am trying to understand something about MFC and resource files. By resource files, I mean files that end with the extension .rc. As I understand it, resource files can be used to create Menus and add short cuts. Please consider the following resource file:

<br />
IDR_MAINFRAME MENU<br />
{<br />
	POPUP "&amp;Output Options" {<br />
		MENUITEM "&amp;Create one", IDM_CREATE1<br />
		MENUITEM "create two", IDM_CREATE2<br />
		MENUITEM "create one", IDM_CREATE3<br />
	}<br />
<br />
}<br />
<br />
IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE<br />
BEGIN<br />
	"C",   IDM_CREATE1,			VIRTKEY, CONTROL<br />
END<br />


Observe that the string “Create one” is prefixed by an &. The way I read the documentation (I am looking at the book Programming Window by Charles Petzold) the & is suppose to result in the C in Create being underlined. The fact that it is underlined will be a clue to the user that a short cut exists for that menu item. However, the character C is not being underlined. I am wondering what I am missing.

Important note: The book I mentioned above talks about C and developing code using the Windows SDK. The code I am writing is in C++ and it uses MFC. I am thinking that MFC is turning off the underline character.

Thanks

Bob
AnswerRe: Menus and MFC Pin
bob1697219-May-09 12:28
bob1697219-May-09 12:28 
GeneralRe: Menus and MFC Pin
BobInNJ19-May-09 12:39
BobInNJ19-May-09 12:39 
GeneralRe: Menus and MFC Pin
bob1697220-May-09 9:07
bob1697220-May-09 9:07 
AnswerRe: Menus and MFC Pin
Stuart Dootson19-May-09 12:51
professionalStuart Dootson19-May-09 12:51 
GeneralRe: Menus and MFC Pin
BobInNJ19-May-09 15:21
BobInNJ19-May-09 15:21 
QuestionRe: Menus and MFC Pin
David Crow19-May-09 16:09
David Crow19-May-09 16:09 
AnswerRe: Menus and MFC Pin
BobInNJ19-May-09 16:19
BobInNJ19-May-09 16:19 
GeneralRe: Menus and MFC Pin
David Crow19-May-09 17:02
David Crow19-May-09 17:02 
GeneralRe: Menus and MFC Pin
BobInNJ20-May-09 15:29
BobInNJ20-May-09 15:29 
GeneralRe: Menus and MFC Pin
David Crow21-May-09 3:20
David Crow21-May-09 3:20 
GeneralRe: Menus and MFC Pin
BobInNJ21-May-09 5:31
BobInNJ21-May-09 5:31 
GeneralRe: Menus and MFC Pin
Stuart Dootson19-May-09 21:41
professionalStuart Dootson19-May-09 21:41 
QuestionFourier series program Pin
maidy_1919-May-09 11:29
maidy_1919-May-09 11:29 
AnswerRe: Fourier series program Pin
Garth J Lancaster19-May-09 12:04
professionalGarth J Lancaster19-May-09 12:04 
AnswerRe: Fourier series program Pin
Stuart Dootson19-May-09 12:06
professionalStuart Dootson19-May-09 12:06 
GeneralRe: Fourier series program Pin
maidy_1919-May-09 12:20
maidy_1919-May-09 12:20 
QuestionVC 6.0: shortcut key for create cpp source file? Pin
wb_program19-May-09 7:54
wb_program19-May-09 7:54 

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.