Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change the visible property of edit control in runtime Pin
LaHaHa22-May-06 19:35
LaHaHa22-May-06 19:35 
AnswerRe: How to change the visible property of edit control in runtime Pin
Hamid_RT22-May-06 19:15
Hamid_RT22-May-06 19:15 
GeneralRe: How to change the visible property of edit control in runtime Pin
LaHaHa22-May-06 22:48
LaHaHa22-May-06 22:48 
Questionhow to add me menu bar in MFC application.. Pin
makaveli_0722-May-06 18:11
makaveli_0722-May-06 18:11 
AnswerRe: how to add me menu bar in MFC application.. Pin
_AnsHUMAN_ 22-May-06 18:16
_AnsHUMAN_ 22-May-06 18:16 
AnswerRe: how to add me menu bar in MFC application.. Pin
Laxman Auti22-May-06 18:17
Laxman Auti22-May-06 18:17 
AnswerRe: how to add me menu bar in MFC application.. Pin
Ryan Binns22-May-06 18:17
Ryan Binns22-May-06 18:17 
AnswerRe: how to add me menu bar in MFC application.. Pin
Nibu babu thomas22-May-06 18:25
Nibu babu thomas22-May-06 18:25 
LoadMenu and SetMenu are the functions that you use for Loading and setting it on a frame window or a dialog.

First you must load the menu from a resource which is the best way to do it.

For e.g.

CMenu aMenu;
aMenu.LoadMenu(IDR_MENU1); //IDR_MENU1 is the resource name of the menu
Then we set it on a frame by calling SetMenu.

For e.g.
SetMenu(&aMenu);
And it's mandatory to call DrawMenuBar after you change a menu.

There is a demo in MSDN. Please look up LoadMenu and you will find it.


Nibu thomas
A Developer

Programming tips[^]  My site[^]

AnswerRe: how to add me menu bar in MFC application.. Pin
Hamid_RT22-May-06 19:20
Hamid_RT22-May-06 19:20 
Questionchange colors of controls Pin
kumar_mk22-May-06 18:05
kumar_mk22-May-06 18:05 
AnswerRe: change colors of controls Pin
Laxman Auti22-May-06 18:22
Laxman Auti22-May-06 18:22 
GeneralRe: change colors of controls Pin
Nibu babu thomas22-May-06 18:33
Nibu babu thomas22-May-06 18:33 
AnswerRe: change colors of controls Pin
Ganesh_T22-May-06 18:30
Ganesh_T22-May-06 18:30 
AnswerRe: change colors of controls [modified] Pin
Nibu babu thomas22-May-06 18:39
Nibu babu thomas22-May-06 18:39 
AnswerRe: change colors of controls Pin
Hamid_RT22-May-06 19:16
Hamid_RT22-May-06 19:16 
Questionread serial port automatically?? Pin
Nawar_nrr22-May-06 18:03
Nawar_nrr22-May-06 18:03 
Questionconstructor related questions Pin
kumar_mk22-May-06 17:51
kumar_mk22-May-06 17:51 
AnswerRe: constructor related questions Pin
Ryan Binns22-May-06 18:23
Ryan Binns22-May-06 18:23 
AnswerRe: constructor related questions Pin
Laxman Auti22-May-06 18:38
Laxman Auti22-May-06 18:38 
Questionhow to system dpi in code Pin
chethu66522-May-06 17:16
chethu66522-May-06 17:16 
AnswerRe: how to system dpi in code Pin
_AnsHUMAN_ 22-May-06 17:59
_AnsHUMAN_ 22-May-06 17:59 
AnswerRe: how to system dpi in code Pin
Ryan Binns22-May-06 18:25
Ryan Binns22-May-06 18:25 
QuestionIOCompletion port basic question Pin
followait22-May-06 17:15
followait22-May-06 17:15 
AnswerRe: IOCompletion port basic question Pin
bob1697222-May-06 18:39
bob1697222-May-06 18:39 
QuestionProblem adding control buttons in a Cformview class dialog page Pin
thathvamsi22-May-06 16:47
thathvamsi22-May-06 16:47 

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.