Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Try pressing ALT? IIRC, Windows doesn't display the underlines until you press ALT.

Anyway - here's part of the menu code of an MFC SDI project with a classic menubar (selected on the User Interface Features pane of the MFC application wizard). It displays underlines correctly.

IDR_MAINFRAME MENU
BEGIN
	POPUP "&File"
	BEGIN
		MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
		MENUITEM "&Open...\tCtrl+O",            ID_FILE_OPEN
		MENUITEM "&Save\tCtrl+S",               ID_FILE_SAVE
		MENUITEM "Save &As...",                 ID_FILE_SAVE_AS
		MENUITEM SEPARATOR
		MENUITEM "&Print...\tCtrl+P",           ID_FILE_PRINT
		MENUITEM "Print Pre&view",              ID_FILE_PRINT_PREVIEW
		MENUITEM "P&rint Setup...",             ID_FILE_PRINT_SETUP
		MENUITEM SEPARATOR
		MENUITEM "Recent File",                 ID_FILE_MRU_FILE1,GRAYED
		MENUITEM SEPARATOR
		MENUITEM "E&xit",                       ID_APP_EXIT
	END


However, with VS2008, there is a second option for menus, which is "Use a menu bar and toolbar". This uses the menubar that comes with the "MFC Feature Pack" (it's a CMFCMenuBar[^]). This menubar doesn't appear to display underlines on the menubar (but does on the menu popups).

I hope this information clears up your issue...

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

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 
AnswerRe: VC 6.0: shortcut key for create cpp source file? Pin
led mike19-May-09 8:03
led mike19-May-09 8:03 
GeneralRe: VC 6.0: shortcut key for create cpp source file? Pin
Michael Dunn19-May-09 11:24
sitebuilderMichael Dunn19-May-09 11:24 
QuestionCan you add a new string resource at runtime? Pin
negativeG19-May-09 7:53
negativeG19-May-09 7:53 
AnswerRe: Can you add a new string resource at runtime? Pin
asrelu19-May-09 8:26
asrelu19-May-09 8:26 

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.