Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Solving equation Pin
Tim Craig12-Feb-10 18:00
Tim Craig12-Feb-10 18:00 
GeneralRe: Solving equation Pin
LunaticFringe12-Feb-10 22:17
LunaticFringe12-Feb-10 22:17 
AnswerRe: Solving equation Pin
Richard MacCutchan12-Feb-10 3:18
mveRichard MacCutchan12-Feb-10 3:18 
AnswerRe: Solving equation Pin
molesworth12-Feb-10 3:27
molesworth12-Feb-10 3:27 
AnswerRe: Solving equation Pin
loyal ginger12-Feb-10 3:43
loyal ginger12-Feb-10 3:43 
GeneralRe: Solving equation Pin
dxlee12-Feb-10 4:34
dxlee12-Feb-10 4:34 
AnswerRe: Solving equation Pin
josda100012-Feb-10 9:03
josda100012-Feb-10 9:03 
QuestionMFC: calling a menu item from another menu item Pin
deostroll12-Feb-10 0:04
deostroll12-Feb-10 0:04 
I have two menu items under the File menu - Call My Dialog & Call MessageBox. Call MessageBox will invoke a message box. I am trying to do the same thing when the user hits Call My Dialog menu item.
void CMainFrame::OnFileCallmessagebox()
{
	// TODO: Add your command handler code here
	MessageBox(_T("hello world!!"), _T("Sample message box"));
}

void CMainFrame::OnFileCallmydialog()
{

	/*this->SendMessage(,
		HIBYTE(ID_APP_CALL_MESSAGEBOX),
		LOBYTE(ID_APP_CALL_MESSAGEBOX));*/

	HWND hwnd = AfxGetMainWnd()->GetSafeHwnd();
	::SendMessage(hwnd, WM_COMMAND, 
		HIBYTE(ID_APP_CALL_MESSAGEBOX),
		LOBYTE(ID_APP_CALL_MESSAGEBOX));
}

Whatever I do I keep getting some failure assertion
AnswerRe: MFC: calling a menu item from another menu item Pin
Richard MacCutchan12-Feb-10 0:19
mveRichard MacCutchan12-Feb-10 0:19 
GeneralRe: MFC: calling a menu item from another menu item Pin
deostroll12-Feb-10 2:12
deostroll12-Feb-10 2:12 
GeneralRe: MFC: calling a menu item from another menu item Pin
Richard MacCutchan12-Feb-10 3:16
mveRichard MacCutchan12-Feb-10 3:16 
GeneralRe: MFC: calling a menu item from another menu item Pin
deostroll12-Feb-10 3:51
deostroll12-Feb-10 3:51 
GeneralRe: MFC: calling a menu item from another menu item Pin
Richard MacCutchan12-Feb-10 4:01
mveRichard MacCutchan12-Feb-10 4:01 
GeneralRe: MFC: calling a menu item from another menu item Pin
deostroll12-Feb-10 4:18
deostroll12-Feb-10 4:18 
GeneralRe: MFC: calling a menu item from another menu item [modified] Pin
Richard MacCutchan12-Feb-10 4:32
mveRichard MacCutchan12-Feb-10 4:32 
GeneralRe: MFC: calling a menu item from another menu item Pin
David Crow12-Feb-10 7:06
David Crow12-Feb-10 7:06 
GeneralRe: MFC: calling a menu item from another menu item Pin
Richard MacCutchan12-Feb-10 9:11
mveRichard MacCutchan12-Feb-10 9:11 
QuestionIs it possible to open file twice? Pin
Member 439977111-Feb-10 23:13
Member 439977111-Feb-10 23:13 
AnswerRe: Is it possible to open file twice? Pin
Cedric Moonen11-Feb-10 23:24
Cedric Moonen11-Feb-10 23:24 
GeneralRe: Is it possible to open file twice? Pin
Member 439977111-Feb-10 23:35
Member 439977111-Feb-10 23:35 
QuestionRe: Is it possible to open file twice? Pin
David Crow12-Feb-10 3:12
David Crow12-Feb-10 3:12 
AnswerRe: Is it possible to open file twice? Pin
Rozis12-Feb-10 11:25
Rozis12-Feb-10 11:25 
GeneralRe: Is it possible to open file twice? Pin
Rozis12-Feb-10 11:32
Rozis12-Feb-10 11:32 
QuestionForm Background color change - Reg. Pin
Paulraj G11-Feb-10 23:00
Paulraj G11-Feb-10 23:00 
AnswerRe: Form Background color change - Reg. Pin
Richard MacCutchan11-Feb-10 23:30
mveRichard MacCutchan11-Feb-10 23:30 

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.