Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert LZW type tiff file to PDF c++? Pin
raesa8-Apr-09 17:40
raesa8-Apr-09 17:40 
QuestionRapi use for connect with active sync,now what can i use for connect with Mobile Device Center? Pin
Le@rner8-Apr-09 0:54
Le@rner8-Apr-09 0:54 
QuestionDouble to CString Pin
Davitor7-Apr-09 23:57
Davitor7-Apr-09 23:57 
AnswerRe: Double to CString Pin
«_Superman_»7-Apr-09 23:59
professional«_Superman_»7-Apr-09 23:59 
QuestionQuery related to DllInstall() Pin
narayanagvs7-Apr-09 23:36
narayanagvs7-Apr-09 23:36 
AnswerRe: Query related to DllInstall() Pin
Randor 8-Apr-09 1:33
professional Randor 8-Apr-09 1:33 
QuestionMenu class derived from CMenu Pin
prithaa7-Apr-09 23:30
prithaa7-Apr-09 23:30 
AnswerRe: Menu class derived from CMenu Pin
Iain Clarke, Warrior Programmer8-Apr-09 0:03
Iain Clarke, Warrior Programmer8-Apr-09 0:03 
Erm... Doesn't MFC do what you're asking for automatically?

In an MDI program, you'll see a pMainFrame->LoadFrame (IDR...) line, which tells MFC which menu to use when you have no document loaded (and hence no childframe).

Next, you'll have a template being loaded, and the first parameter of the new template is a resource ID, which points to (among other things) a menu ID to use when that template is in action.

If that's all your custom menu class does, I think you can get rid of it...

As for alt keys, that's only partly the job of the menu. If you use the & key in front of a menu title (eg, &File), then that key will be highlit, and pressing Alt-F will bring up the file menu. Then you can do the same for menu items (ie, &Open), and then you can use Alt-F followed by O to use the file open menu...

For hot keys, (ie, Alt-f3 being file open), you need to set the accelerator table.

For more complex things, like adding accelerator values automatically to the menu, and toobar buttons also, have a look at the following article. It may be over the top, but it's very good!
http://www.codeproject.com/KB/menus/newmenuxpstyle.aspx
Owner Drawn Menu with Icons, Titles and Shading[^]

Good luck,

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

QuestionMenu and document Pin
gopalan.kaliyamoorthy7-Apr-09 23:11
gopalan.kaliyamoorthy7-Apr-09 23:11 
AnswerRe: Menu and document Pin
«_Superman_»7-Apr-09 23:22
professional«_Superman_»7-Apr-09 23:22 
GeneralRe: Menu and document Pin
gopalan.kaliyamoorthy8-Apr-09 18:40
gopalan.kaliyamoorthy8-Apr-09 18:40 
GeneralRe: Menu and document Pin
«_Superman_»8-Apr-09 19:07
professional«_Superman_»8-Apr-09 19:07 
Questionprint in splitted window Pin
susanne17-Apr-09 22:35
susanne17-Apr-09 22:35 
Questionhow to set a class member function as parameter of an other class in its constructor ? Pin
pedefetoll7-Apr-09 22:22
pedefetoll7-Apr-09 22:22 
AnswerRe: how to set a class member function as parameter of an other class in its constructor ? Pin
TinyDevices7-Apr-09 22:26
professionalTinyDevices7-Apr-09 22:26 
GeneralRe: how to set a class member function as parameter of an other class in its constructor ? Pin
pedefetoll7-Apr-09 22:40
pedefetoll7-Apr-09 22:40 
AnswerRe: how to set a class member function as parameter of an other class in its constructor ? Pin
Stuart Dootson7-Apr-09 22:34
professionalStuart Dootson7-Apr-09 22:34 
QuestionWriting a similar function as ComboBox SelectString Pin
beko7-Apr-09 21:16
beko7-Apr-09 21:16 
AnswerRe: Writing a similar function as ComboBox SelectString Pin
Stuart Dootson7-Apr-09 21:53
professionalStuart Dootson7-Apr-09 21:53 
GeneralRe: Writing a similar function as ComboBox SelectString Pin
beko7-Apr-09 22:09
beko7-Apr-09 22:09 
QuestionRe: Writing a similar function as ComboBox SelectString Pin
TinyDevices7-Apr-09 22:23
professionalTinyDevices7-Apr-09 22:23 
AnswerRe: Writing a similar function as ComboBox SelectString Pin
Stuart Dootson7-Apr-09 22:27
professionalStuart Dootson7-Apr-09 22:27 
GeneralRe: Writing a similar function as ComboBox SelectString Pin
TinyDevices7-Apr-09 22:33
professionalTinyDevices7-Apr-09 22:33 
QuestionDLL multy [modified] Pin
denisxfrom7-Apr-09 20:49
denisxfrom7-Apr-09 20:49 
AnswerRe: DLL multy Pin
Stuart Dootson7-Apr-09 21:20
professionalStuart Dootson7-Apr-09 21:20 

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.