Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Variable width of CToolBar's buttons Pin
Steve S21-Oct-03 1:49
Steve S21-Oct-03 1:49 
GeneralRe: Variable width of CToolBar's buttons Pin
scul7022-Oct-03 22:08
scul7022-Oct-03 22:08 
GeneralRe: Variable width of CToolBar's buttons Pin
John R. Shaw21-Oct-03 17:44
John R. Shaw21-Oct-03 17:44 
QuestionDoes some pointer provides memory-check for operation correctness control ? Pin
vgrigor21-Oct-03 0:15
vgrigor21-Oct-03 0:15 
AnswerRe: Does some pointer provides memory-check for operation correctness control ? Pin
John R. Shaw21-Oct-03 18:27
John R. Shaw21-Oct-03 18:27 
GeneralRe: Does some pointer provides memory-check for operation correctness control ? Pin
vgrigor21-Oct-03 20:51
vgrigor21-Oct-03 20:51 
QuestionMSXML Parser?? createNode() ??? Pin
xxhimanshu20-Oct-03 23:37
xxhimanshu20-Oct-03 23:37 
GeneralProblem With Accelerators Pin
spiritualfields20-Oct-03 21:01
spiritualfields20-Oct-03 21:01 
This has got me stumped. I've got a program that draws a circle, triangle, or square depending on the item selected in a Shape menu (three sub-items: circle, triangle, square). I've got accelerators set, and they do in fact work, yet the appropriate menu sub-item letters are not underlined as they should be to let the user know that the key is an accelerator. For example the circle sub-item was defined as: &Circle\tF7
F7 and Alt C works, but the "C" in circle is not underlined. The "F7" does show up when the Shape menu is displayed. I'm using VC 2003 and this is the appropriate code in Resource.rc:

IDR_MAINFRAME ACCELERATORS
BEGIN
VK_F6, ID_NEXT_PANE, VIRTKEY, NOINVERT
VK_F6, ID_PREV_PANE, VIRTKEY, SHIFT, NOINVERT
VK_F7, ID_SHAPE_CIRCLE, VIRTKEY, NOINVERT
VK_F9, ID_SHAPE_SQUARE, VIRTKEY, NOINVERT
VK_F8, ID_SHAPE_TRIANGLE, VIRTKEY, NOINVERT
"C", ID_SHAPE_CIRCLE, VIRTKEY, ALT, NOINVERT
"T", ID_SHAPE_TRIANGLE, VIRTKEY, ALT, NOINVERT
"S", ID_SHAPE_SQUARE, VIRTKEY, ALT, NOINVERT
END

/////////////////////////////////////
IDR_MAINFRAME MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", ID_APP_EXIT
END
POPUP "Shape"
BEGIN
MENUITEM "&Circle\tF7", ID_SHAPE_CIRCLE
MENUITEM "&Triangle\tF8", ID_SHAPE_TRIANGLE
MENUITEM "&Square\tF9", ID_SHAPE_SQUARE
END
END
///////////////////
Again, the problem is that the "C", "T" and "S" in Circle, Triangle and Square are not showing up underlined when the program is run. ???

sf
GeneralRe: Problem With Accelerators Pin
vcplusplus20-Oct-03 23:15
vcplusplus20-Oct-03 23:15 
GeneralGDI+ Double Buffer and Flood Fill Pin
Grape-Man20-Oct-03 17:23
Grape-Man20-Oct-03 17:23 
GeneralRe: GDI+ Double Buffer and Flood Fill Pin
PJ Arends21-Oct-03 6:52
professionalPJ Arends21-Oct-03 6:52 
Generalsdi + CFormView help Pin
zhangmi-boymaxzm20-Oct-03 16:28
zhangmi-boymaxzm20-Oct-03 16:28 
GeneralAutomating the Insertion of C++ Code Pin
Jeff Miles20-Oct-03 16:03
Jeff Miles20-Oct-03 16:03 
GeneralRe: Automating the Insertion of C++ Code Pin
Christian Graus20-Oct-03 16:37
protectorChristian Graus20-Oct-03 16:37 
QuestionMaking text go to Ms Word file? Pin
DanYELL20-Oct-03 14:51
DanYELL20-Oct-03 14:51 
AnswerRe: Making text go to Ms Word file? Pin
Michael Dunn20-Oct-03 19:46
sitebuilderMichael Dunn20-Oct-03 19:46 
AnswerRe: Making text go to Ms Word file? Pin
Anonymous20-Oct-03 22:16
Anonymous20-Oct-03 22:16 
GeneralMemory allocations slow when launched from the debugger Pin
Wasteland720-Oct-03 14:50
Wasteland720-Oct-03 14:50 
GeneralHelp with Dialog in Doc/View Application Pin
jasonmgeorge20-Oct-03 12:54
jasonmgeorge20-Oct-03 12:54 
GeneralRe: Help with Dialog in Doc/View Application Pin
Anthony_Yio20-Oct-03 15:27
Anthony_Yio20-Oct-03 15:27 
GeneralRe: Help with Dialog in Doc/View Application Pin
Atif Mushtaq21-Oct-03 23:54
Atif Mushtaq21-Oct-03 23:54 
GeneralRegular Dll with dialog box Pin
ahmadnoori20-Oct-03 11:05
ahmadnoori20-Oct-03 11:05 
GeneralRe: Regular Dll with dialog box Pin
igor196020-Oct-03 11:38
igor196020-Oct-03 11:38 
GeneralRe: Regular Dll with dialog box Pin
ahmadnoori20-Oct-03 13:15
ahmadnoori20-Oct-03 13:15 
QuestionCreateFile and LockFile in atomic operation? Pin
Joe Woodbury20-Oct-03 10:44
professionalJoe Woodbury20-Oct-03 10:44 

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.