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

C / C++ / MFC

 
GeneralRe: Web services and win 32 Pin
LCI14-Mar-07 6:26
LCI14-Mar-07 6:26 
GeneralRe: Web services and win 32 Pin
LCI14-Mar-07 6:31
LCI14-Mar-07 6:31 
GeneralRe: Web services and win 32 Pin
led mike14-Mar-07 7:03
led mike14-Mar-07 7:03 
GeneralRe: Web services and win 32 Pin
LCI14-Mar-07 9:42
LCI14-Mar-07 9:42 
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 
Thanks Lucy for your help.
I am a beginner using MFC and I am still having problems with the concept of using messages. Can you tell me what I am doing wrong. I am getting the error C3861: 'WM_MENU_CELSIUS' identifier not found, even with argument-dependent lookup

In my header file:
// Create and assign pointers to each embedded window
_3DSEmbeddedDialog *m_dPointer[2];

In my .cpp file for main dialog:

BEGIN_MESSAGE_MAP(CMotionAnalyzerDlg, CDialog)
......
ON_COMMAND(ID_TEMPERATURE_CELSIUS, OnTemperatureCelsius)
WM_MENU_CELSIUS()
END_MESSAGE_MAP()

//2 embedded dialogs. Celsius temperature should display in the
//moteDataDlg dialog box
m_dPointer[0] = &moteDataDlg;
m_dPointer[1] = &databaseDlg;

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

In my .cpp file for embedded dialog moteDataDlg:

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

Thanks for taking the time to help me.

Trevy

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 
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 

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.