Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Web services and win 32 Pin
led mike14-Mar-07 11:30
led mike14-Mar-07 11:30 
QuestionAccessing menu options from an embedded dialog Pin
Trevy13-Mar-07 5:17
Trevy13-Mar-07 5:17 
AnswerRe: Accessing menu options from an embedded dialog Pin
lucy13-Mar-07 5:42
lucy13-Mar-07 5:42 
GeneralRe: Accessing menu options from an embedded dialog Pin
Trevy14-Mar-07 5:56
Trevy14-Mar-07 5:56 
GeneralRe: Accessing menu options from an embedded dialog Pin
lucy14-Mar-07 7:32
lucy14-Mar-07 7:32 
GeneralRe: Accessing menu options from an embedded dialog Pin
JudyL_MD14-Mar-07 9:33
JudyL_MD14-Mar-07 9:33 
GeneralRe: Accessing menu options from an embedded dialog Pin
lucy14-Mar-07 9:39
lucy14-Mar-07 9:39 
GeneralRe: Accessing menu options from an embedded dialog Pin
Trevy15-Mar-07 5:29
Trevy15-Mar-07 5:29 
Still having problems. I know this should be simple, however, this is the second day I have been working on this problem and I still cannot seem to solve the problem.
Thank you for your help or I would not have gotten this far.
Thanks to Judy also.

void CMotionAnalyzerDlg::OnTemperatureCelsius()
{
//m_dPointer[0]->SendMessage(WM_MENU_CELSIUS,0,0);
SendMessage(m_dPointer[0]->m_hWnd, WM_MENU_CELSIUS);
}


In the function OnTemperatureCelsius() of the main dialog, if I use the statement SendMessage(m_dPointer[0]->m_hWnd, WM_MENU_CELSIUS);

I get error C2664: CWnd::SendMessageA: cannot convert parameter 1 from HWND to UINT. m_dPointer[0] refers to the embedded dialog (moteDataDlg).

I tried an alternate statement that I saw when searching for an answer. If I use the statement m_dPointer[0]->SendMessage(WM_MENU_CELSIUS,0,0), my application compiles but do not run.

Also, I am using the WindowProc correctly in my embedded dialog (moteDataDlg), I use LRESULT for the return value, initially, I used void. In the header file I declared:
protected: LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);


LRESULT MoteDataDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if (message==WM_MENU_CELSIUS)
{
celsiusFlag = !celsiusFlag;
AfxBeginThread(MyThreadProc, this);
}
return 0;
}




Trevy

GeneralRe: Accessing menu options from an embedded dialog Pin
JudyL_MD15-Mar-07 6:21
JudyL_MD15-Mar-07 6:21 
GeneralRe: Accessing menu options from an embedded dialog Pin
JudyL_MD14-Mar-07 7:39
JudyL_MD14-Mar-07 7:39 
QuestionSet Password to .Msg File which is backup of Outlook mail [modified] Pin
Ganesh N. Paul13-Mar-07 5:12
Ganesh N. Paul13-Mar-07 5:12 
QuestionMemory debug window in VS2005 Pin
ilgale13-Mar-07 5:02
ilgale13-Mar-07 5:02 
AnswerRe: Memory debug window in VS2005 Pin
Cedric Moonen13-Mar-07 5:05
Cedric Moonen13-Mar-07 5:05 
QuestionDLL Question Pin
Programm3r13-Mar-07 4:41
Programm3r13-Mar-07 4:41 
AnswerRe: DLL Question Pin
CPallini13-Mar-07 4:53
mveCPallini13-Mar-07 4:53 
QuestionRe: DLL Question Pin
Programm3r13-Mar-07 4:58
Programm3r13-Mar-07 4:58 
AnswerRe: DLL Question Pin
Cedric Moonen13-Mar-07 5:02
Cedric Moonen13-Mar-07 5:02 
GeneralRe: DLL Question Pin
Programm3r13-Mar-07 5:20
Programm3r13-Mar-07 5:20 
AnswerRe: DLL Question Pin
Roger Stoltz13-Mar-07 5:10
Roger Stoltz13-Mar-07 5:10 
GeneralRe: DLL Question Pin
Programm3r13-Mar-07 5:22
Programm3r13-Mar-07 5:22 
AnswerRe: DLL Question Pin
CPallini13-Mar-07 5:16
mveCPallini13-Mar-07 5:16 
GeneralRe: DLL Question Pin
Programm3r13-Mar-07 5:23
Programm3r13-Mar-07 5:23 
Generalyou're welcome. Pin
CPallini13-Mar-07 6:10
mveCPallini13-Mar-07 6:10 
GeneralRe: DLL Question Pin
Eytukan13-Mar-07 6:59
Eytukan13-Mar-07 6:59 
GeneralRe: DLL Question Pin
toxcct13-Mar-07 8:01
toxcct13-Mar-07 8:01 

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.