Click here to Skip to main content
16,008,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Mazdak21-Feb-02 19:12
Mazdak21-Feb-02 19:12 
Questionfunctions to use other than SetWindowText? Pin
Pyropat21-Feb-02 8:10
Pyropat21-Feb-02 8:10 
AnswerRe: functions to use other than SetWindowText? Pin
Paul M Watt21-Feb-02 8:26
mentorPaul M Watt21-Feb-02 8:26 
AnswerRe: functions to use other than SetWindowText? Pin
lucy21-Feb-02 8:28
lucy21-Feb-02 8:28 
AnswerRe: functions to use other than SetWindowText? Pin
Christian Graus21-Feb-02 10:17
protectorChristian Graus21-Feb-02 10:17 
QuestionHow to add "File Edit View..." menù in a CDialog ? Pin
Lockhart21-Feb-02 7:33
Lockhart21-Feb-02 7:33 
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Ravi Bhavnani21-Feb-02 7:41
professionalRavi Bhavnani21-Feb-02 7:41 
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Paul M Watt21-Feb-02 8:05
mentorPaul M Watt21-Feb-02 8:05 
1. create your menu resource in the menu editor.

2. Call:
<br />
HMENU hMenu = LoadMenu(hInstance, MAKEINTRESOURCE(ID_MENU));<br />

Where ID_MENU is your menu resource handle and hInstance is the instance to your current application. You could also use

<br />
::GetModuleHandle(NULL) //instead of hInstance.<br />


this will load your menu resource and assign it to an HMENU.

3. Call the SetMenu member function of your CDialog class in order to assign this menu with your dialog window.

If you want to change the menu out later or get rid of this menu call SetMenu with a new menu handle or NULL, respectively.

When your app is done, free the menu resources with DestroyMenu(hMenu);

You can also associate a menu with a dialog if you have created a special class that subclasses the dialog class by setting the MENU field in the CLASSINFO structure before you register your class.

If you would like more details on this method feel free to ask.
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Mazdak21-Feb-02 8:12
Mazdak21-Feb-02 8:12 
AnswerThanks you :) Pin
Lockhart21-Feb-02 8:34
Lockhart21-Feb-02 8:34 
GeneralHelp with "automatic saving" Pin
Keith Goddard21-Feb-02 6:57
Keith Goddard21-Feb-02 6:57 
GeneralRe: Help with "automatic saving" Pin
Paul M Watt21-Feb-02 7:29
mentorPaul M Watt21-Feb-02 7:29 
GeneralRe: Help with "automatic saving" Pin
Keith Goddard21-Feb-02 8:00
Keith Goddard21-Feb-02 8:00 
GeneralRe: Help with "automatic saving" Pin
Keith Goddard23-Feb-02 2:53
Keith Goddard23-Feb-02 2:53 
GeneralSmall Icons Pin
Aaron Schaefer21-Feb-02 6:08
Aaron Schaefer21-Feb-02 6:08 
GeneralRe: Small Icons Pin
Joaquín M López Muñoz21-Feb-02 6:27
Joaquín M López Muñoz21-Feb-02 6:27 
GeneralRe: Small Icons Pin
lucy21-Feb-02 8:33
lucy21-Feb-02 8:33 
GeneralRe: Small Icons Pin
Shog921-Feb-02 9:22
sitebuilderShog921-Feb-02 9:22 
GeneralRe: Small Icons Pin
Joaquín M López Muñoz21-Feb-02 9:30
Joaquín M López Muñoz21-Feb-02 9:30 
GeneralRe: Small Icons Pin
Tim Smith21-Feb-02 13:56
Tim Smith21-Feb-02 13:56 
GeneralRe: Small Icons Pin
Mazdak21-Feb-02 10:17
Mazdak21-Feb-02 10:17 
GeneralRe: Small Icons Pin
Jon Hulatt21-Feb-02 6:31
Jon Hulatt21-Feb-02 6:31 
GeneralHWND of focused window Pin
21-Feb-02 6:00
suss21-Feb-02 6:00 
GeneralRe: HWND of focused window Pin
Roger Stewart21-Feb-02 7:13
professionalRoger Stewart21-Feb-02 7:13 
GeneralRe: HWND of focused window Pin
21-Feb-02 7:55
suss21-Feb-02 7:55 

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.