Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Events and Threads Pin
hph11-Mar-04 3:18
hph11-Mar-04 3:18 
GeneralSubclassing / embedding Active X's Pin
rw10411-Mar-04 2:13
rw10411-Mar-04 2:13 
GeneralInveting a BitMap Pin
Pazzuzu11-Mar-04 1:35
Pazzuzu11-Mar-04 1:35 
GeneralRe: Inveting a BitMap Pin
Pazzuzu11-Mar-04 2:02
Pazzuzu11-Mar-04 2:02 
QuestionHow to check that if a file has been already opened Pin
Deepak Samuel11-Mar-04 1:35
Deepak Samuel11-Mar-04 1:35 
Questionhow to call a menu by clicking a button from a dialog? Pin
yeefarn11-Mar-04 0:57
yeefarn11-Mar-04 0:57 
AnswerRe: how to call a menu by clicking a button from a dialog? Pin
Tomasz Sowinski11-Mar-04 3:01
Tomasz Sowinski11-Mar-04 3:01 
AnswerRe: how to call a menu by clicking a button from a dialog? Pin
Roger Allen11-Mar-04 4:58
Roger Allen11-Mar-04 4:58 
If you want the menu options to always be available. Do something like this in your OnInitDialog()

CMenu menu;

menu.LoadMenu(ID_OF_MENU);
SetMenu(menu.m_hMenu);
menu.Detach();// now owned by dialog
DrawMenuBar();

The dialog will destroy the menu automatically when itselef is destroyed

You then just need to write ON_COMMAND() handlers for each item. If you need to enable/disable items, handle the WM_INITMENUPOPUP message and process the individual items there.


Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
GeneralParsing CString Pin
Caoimh11-Mar-04 0:46
Caoimh11-Mar-04 0:46 
GeneralRe: Parsing CString Pin
Robert A. T. Káldy11-Mar-04 1:00
Robert A. T. Káldy11-Mar-04 1:00 
GeneralRe: Parsing CString Pin
David Crow11-Mar-04 2:38
David Crow11-Mar-04 2:38 
GeneralTerminateProcess w2k and xp! Pin
ceuba11-Mar-04 0:46
ceuba11-Mar-04 0:46 
GeneralRe: TerminateProcess w2k and xp! Pin
Tomasz Sowinski11-Mar-04 3:06
Tomasz Sowinski11-Mar-04 3:06 
GeneralRe: TerminateProcess w2k and xp! Pin
ceuba11-Mar-04 3:33
ceuba11-Mar-04 3:33 
GeneralRe: TerminateProcess w2k and xp! Pin
Tomasz Sowinski11-Mar-04 3:46
Tomasz Sowinski11-Mar-04 3:46 
GeneralConvert CString to Unsigned Long Pin
Caoimh11-Mar-04 0:41
Caoimh11-Mar-04 0:41 
GeneralRe: Convert CString to Unsigned Long Pin
toxcct11-Mar-04 0:46
toxcct11-Mar-04 0:46 
GeneralRe: Convert CString to Unsigned Long Pin
David Crow11-Mar-04 2:39
David Crow11-Mar-04 2:39 
GeneralRe: Convert CString to Unsigned Long Pin
Steve S11-Mar-04 2:52
Steve S11-Mar-04 2:52 
GeneralRe: Convert CString to Unsigned Long Pin
Michael Haephrati12-Apr-15 9:39
professionalMichael Haephrati12-Apr-15 9:39 
Questionmust I port time critical code from Visual C++ 6.0 to 7.0 ? Pin
GuimaSun11-Mar-04 0:30
GuimaSun11-Mar-04 0:30 
AnswerRe: must I port time critical code from Visual C++ 6.0 to 7.0 ? Pin
Tomasz Sowinski11-Mar-04 2:54
Tomasz Sowinski11-Mar-04 2:54 
Generalsolve expression Pin
Member 169706311-Mar-04 0:25
Member 169706311-Mar-04 0:25 
GeneralRe: solve expression Pin
Prakash Nadar11-Mar-04 0:38
Prakash Nadar11-Mar-04 0:38 
GeneralRe: solve expression Pin
Robert A. T. Káldy11-Mar-04 0:56
Robert A. T. Káldy11-Mar-04 0:56 

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.