Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convertion between string and double Pin
Addy Tas4-Dec-11 11:10
Addy Tas4-Dec-11 11:10 
GeneralRe: convertion between string and double Pin
Richard MacCutchan4-Dec-11 22:39
mveRichard MacCutchan4-Dec-11 22:39 
QuestionGet COM Dll path from an other Exe Pin
MrKBA1-Dec-11 0:01
MrKBA1-Dec-11 0:01 
AnswerRe: Get COM Dll path from an other Exe Pin
«_Superman_»1-Dec-11 4:42
professional«_Superman_»1-Dec-11 4:42 
GeneralRe: Get COM Dll path from an other Exe Pin
Richard MacCutchan1-Dec-11 5:15
mveRichard MacCutchan1-Dec-11 5:15 
GeneralRe: Get COM Dll path from an other Exe Pin
Albert Holguin1-Dec-11 5:24
professionalAlbert Holguin1-Dec-11 5:24 
RantRe: Get COM Dll path from an other Exe Pin
«_Superman_»1-Dec-11 15:40
professional«_Superman_»1-Dec-11 15:40 
QuestionHow to prevent customization of main menu items (File, Edit, View, Window, Help, ...) when using CMFCMenuBar in Visual Studio 2010 Pin
User 2694230-Nov-11 23:08
professionalUser 2694230-Nov-11 23:08 
Hello,

I've started moving a MFC MDI application from VS2005 to VS2010 (used the samples Visual C++ 2008 Feature Pack as source) and got some problems with the menu now using CMFCMenuBar.

Normally all the menu items are customizable by the user, but I want to protect the main menu items File, Edit, View, Help, ... from user customizing and only allow the user to add his own main menu(s) to the menu bar.

I thought using CMFCToolBarButton::SetProtectedCommands but that doesn't help for the main items, for the sub menu items this works.
I found also out that I could add the 0 with the call lstProtectedCmds.AddTail( (UINT)0 ); to the protected commends but this prevents the menu bar completely from customizing and the user isn't able to add his own menu to the bar any more.

Any help or ideas are welcome.

Thanks,

Andreas.

QuestionHow to return char* Pin
Paulraj G30-Nov-11 19:18
Paulraj G30-Nov-11 19:18 
AnswerRe: How to return char* Pin
«_Superman_»30-Nov-11 19:47
professional«_Superman_»30-Nov-11 19:47 
GeneralRe: How to return char* Pin
Richard MacCutchan30-Nov-11 22:30
mveRichard MacCutchan30-Nov-11 22:30 
GeneralRe: How to return char* Pin
«_Superman_»30-Nov-11 22:35
professional«_Superman_»30-Nov-11 22:35 
GeneralRe: How to return char* Pin
Richard MacCutchan30-Nov-11 23:45
mveRichard MacCutchan30-Nov-11 23:45 
JokeRe: How to return char* Pin
«_Superman_»30-Nov-11 23:56
professional«_Superman_»30-Nov-11 23:56 
AnswerRe: How to return char* Pin
Richard Andrew x6430-Nov-11 19:51
professionalRichard Andrew x6430-Nov-11 19:51 
GeneralRe: How to return char* Pin
Paulraj G30-Nov-11 20:01
Paulraj G30-Nov-11 20:01 
GeneralRe: How to return char* Pin
«_Superman_»30-Nov-11 20:13
professional«_Superman_»30-Nov-11 20:13 
GeneralRe: How to return char* Pin
Stefan_Lang6-Dec-11 0:33
Stefan_Lang6-Dec-11 0:33 
AnswerRe: How to return char* Pin
Software_Developer30-Nov-11 20:25
Software_Developer30-Nov-11 20:25 
QuestionRe: How to return char* Pin
CPallini1-Dec-11 1:53
mveCPallini1-Dec-11 1:53 
GeneralRe: How to return char* Pin
Addy Tas1-Dec-11 2:14
Addy Tas1-Dec-11 2:14 
AnswerRe: How to return char* Pin
Erudite_Eric1-Dec-11 4:09
Erudite_Eric1-Dec-11 4:09 
GeneralRe: How to return char* Pin
Addy Tas1-Dec-11 7:12
Addy Tas1-Dec-11 7:12 
GeneralRe: How to return char* Pin
Stefan_Lang6-Dec-11 1:41
Stefan_Lang6-Dec-11 1:41 
GeneralRe: How to return char* Pin
Erudite_Eric6-Dec-11 3:40
Erudite_Eric6-Dec-11 3:40 

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.