Click here to Skip to main content
15,921,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to declare pointer to member function Pin
Paul Michalik28-Aug-10 9:52
Paul Michalik28-Aug-10 9:52 
GeneralRe: How to declare pointer to member function Pin
Aescleal28-Aug-10 11:10
Aescleal28-Aug-10 11:10 
GeneralRe: How to declare pointer to member function Pin
Paul Michalik28-Aug-10 21:40
Paul Michalik28-Aug-10 21:40 
QuestionAfxGetMainWnd() returns the window of another application!!!! Pin
VCSharp00727-Aug-10 0:08
VCSharp00727-Aug-10 0:08 
Questionwindow controls are not getting resized while dragging the window Pin
arun_pk27-Aug-10 0:04
arun_pk27-Aug-10 0:04 
AnswerRe: window controls are not getting resized while dragging the window Pin
Cool_Dev27-Aug-10 2:24
Cool_Dev27-Aug-10 2:24 
AnswerRe: window controls are not getting resized while dragging the window Pin
David Crow27-Aug-10 6:46
David Crow27-Aug-10 6:46 
QuestionProblem in binary file writing Pin
ganesh_IT26-Aug-10 23:52
ganesh_IT26-Aug-10 23:52 
AnswerRe: Problem in binary file writing Pin
Sauro Viti27-Aug-10 0:01
professionalSauro Viti27-Aug-10 0:01 
QuestionBinary file read writing problem Pin
ganesh_IT26-Aug-10 23:46
ganesh_IT26-Aug-10 23:46 
AnswerRe: Binary file read writing problem PinPopular
CPallini26-Aug-10 23:51
mveCPallini26-Aug-10 23:51 
AnswerRe: Binary file read writing problem Pin
ThatsAlok29-Aug-10 20:59
ThatsAlok29-Aug-10 20:59 
QuestionGUI Pin
T.RATHA KRISHNAN26-Aug-10 20:10
T.RATHA KRISHNAN26-Aug-10 20:10 
AnswerRe: GUI Pin
Niklas L26-Aug-10 22:00
Niklas L26-Aug-10 22:00 
GeneralRe: GUI Pin
T.RATHA KRISHNAN26-Aug-10 23:05
T.RATHA KRISHNAN26-Aug-10 23:05 
GeneralRe: GUI Pin
Niklas L26-Aug-10 23:22
Niklas L26-Aug-10 23:22 
GeneralRe: GUI Pin
T.RATHA KRISHNAN26-Aug-10 23:29
T.RATHA KRISHNAN26-Aug-10 23:29 
GeneralRe: GUI Pin
Niklas L27-Aug-10 1:09
Niklas L27-Aug-10 1:09 
There are some basic issues with your code.

case EXIT_BUTTON:
   initMenuContext.device->closeDevice();
   break;
   return true;
You don't need both break and return. Especially not in this order. You are only making it harder for yourself to follow the program flow.

This
SColor WHITE = video::SColor(255,255,255,255);
is the same as
SColor WHITE(255,255,255,255);
Don't type more than you have to to keep readability.

This
CInitMenu* cIMNU = new CInitMenu();
cIMNU->runGame();

will leak memory and should be written something like
CInitMenu().runGame();
even though I think having the main menu as the object root of your app is a bit skewed.

Now, why do you want the new menu appear in the same window? It looks like the GUI system is designed for having child dialogs. An alternative could be to use their tab control.

If you still need to open the menu in the same window, I see no other alternative than to remove (or hide) the original controls, and insert your new ones. But don't take my word for it. I have only seen the GUI classes for about 5 minutes. Ask for a solution in the other forum I gave a link to.

GeneralRe: GUI Pin
T.RATHA KRISHNAN27-Aug-10 2:08
T.RATHA KRISHNAN27-Aug-10 2:08 
GeneralRe: GUI Pin
Niklas L27-Aug-10 2:45
Niklas L27-Aug-10 2:45 
Questionunresolved external symbol in TAPI prog Pin
AmbiguousName26-Aug-10 10:46
AmbiguousName26-Aug-10 10:46 
AnswerRe: unresolved external symbol in TAPI prog Pin
Niklas L26-Aug-10 11:29
Niklas L26-Aug-10 11:29 
GeneralRe: unresolved external symbol in TAPI prog Pin
AmbiguousName26-Aug-10 23:09
AmbiguousName26-Aug-10 23:09 
AnswerRe: unresolved external symbol in TAPI prog Pin
«_Superman_»26-Aug-10 17:45
professional«_Superman_»26-Aug-10 17:45 
GeneralRe: unresolved external symbol in TAPI prog Pin
Niklas L26-Aug-10 20:36
Niklas L26-Aug-10 20:36 

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.