Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCDialog::OnCancel or postmessage(wm_cancel) Pin
valerie995-Oct-05 12:28
valerie995-Oct-05 12:28 
AnswerRe: CDialog::OnCancel or postmessage(wm_cancel) Pin
enjoycrack5-Oct-05 15:18
enjoycrack5-Oct-05 15:18 
Generalthe app crashes when it called onCancle() Pin
valerie996-Oct-05 4:22
valerie996-Oct-05 4:22 
GeneralRe: the app crashes when it called onCancle() Pin
enjoycrack6-Oct-05 10:38
enjoycrack6-Oct-05 10:38 
QuestionPlease, stop crashing! *createremotethread() Pin
GreenLantern5-Oct-05 11:46
GreenLantern5-Oct-05 11:46 
AnswerRe: Please, stop crashing! *createremotethread() Pin
Jose Lamas Rios5-Oct-05 18:26
Jose Lamas Rios5-Oct-05 18:26 
GeneralRe: Please, stop crashing! *createremotethread() Pin
GreenLantern6-Oct-05 9:16
GreenLantern6-Oct-05 9:16 
QuestionMFC menu issues Pin
LighthouseJ5-Oct-05 10:19
LighthouseJ5-Oct-05 10:19 
I have a simple menu written out, it has 5 options on the main menu bar, and under the 4th menu, I have 3 menu items. I'm trying to check or uncheck the last item under the 4th menu option, it is identified as ID_ACTION_FIT.

Here is the code I have so far to check the item:
CMenu * MainMenu = GetMenu();<br />
CMenu * ActionMenu = MainMenu->GetSubMenu(3);<br />
ActionMenu->CheckMenuItem (ID_ACTION_FIT, MF_BYCOMMAND);

That code is inside the event handler for the item I'm trying to check.

I have done this before once with no problems but it's not working now. When it reaches the second line quoted and attempts to get the submenu, it fails a debug assertion. I don't have the code for GetSubMenu so I don't know what is actually being tested. The MainMenu pointer is valid. I don't know what's wrong but I think I have an error that's too obvious to see. Does anyone have an idea of what is the problem?
AnswerRe: MFC menu issues Pin
Bob Stanneveld5-Oct-05 10:40
Bob Stanneveld5-Oct-05 10:40 
GeneralRe: MFC menu issues Pin
LighthouseJ5-Oct-05 10:52
LighthouseJ5-Oct-05 10:52 
GeneralRe: MFC menu issues (update) Pin
LighthouseJ5-Oct-05 11:56
LighthouseJ5-Oct-05 11:56 
AnswerRe: MFC menu issues Pin
Bartosz Bien5-Oct-05 11:57
Bartosz Bien5-Oct-05 11:57 
GeneralRe: MFC menu issues Pin
LighthouseJ5-Oct-05 12:32
LighthouseJ5-Oct-05 12:32 
AnswerRe: MFC menu issues Pin
Jose Lamas Rios5-Oct-05 18:35
Jose Lamas Rios5-Oct-05 18:35 
QuestionFile Change Event CDialog Pin
picazo5-Oct-05 10:01
picazo5-Oct-05 10:01 
AnswerRe: File Change Event CDialog Pin
Blake V. Miller5-Oct-05 10:28
Blake V. Miller5-Oct-05 10:28 
QuestionThe thread 0x6B8 has exited with code 2 (0x2). Pin
valerie995-Oct-05 9:25
valerie995-Oct-05 9:25 
AnswerRe: The thread 0x6B8 has exited with code 2 (0x2). Pin
Blake V. Miller5-Oct-05 10:25
Blake V. Miller5-Oct-05 10:25 
GeneralRe: The thread 0x6B8 has exited with code 2 (0x2). Pin
QueenAzula26-Jun-23 2:17
QueenAzula26-Jun-23 2:17 
QuestionIs it possible to make asynchronous callback in win32 PRC? Pin
Coal Station5-Oct-05 8:46
Coal Station5-Oct-05 8:46 
QuestionComputing thread stack size Pin
Zykalus5-Oct-05 8:31
Zykalus5-Oct-05 8:31 
AnswerRe: Computing thread stack size Pin
Shog95-Oct-05 10:20
sitebuilderShog95-Oct-05 10:20 
GeneralRe: Computing thread stack size Pin
Blake V. Miller5-Oct-05 10:33
Blake V. Miller5-Oct-05 10:33 
GeneralRe: Computing thread stack size Pin
Shog95-Oct-05 11:09
sitebuilderShog95-Oct-05 11:09 
GeneralRe: Computing thread stack size Pin
Zykalus5-Oct-05 15:35
Zykalus5-Oct-05 15:35 

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.