Click here to Skip to main content
15,888,733 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? Pin
Cool_Dev10-Aug-10 18:20
Cool_Dev10-Aug-10 18:20 
GeneralRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? Pin
JongchanAhn10-Aug-10 18:50
JongchanAhn10-Aug-10 18:50 
GeneralRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? Pin
Cool_Dev10-Aug-10 18:59
Cool_Dev10-Aug-10 18:59 
AnswerRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? Pin
Aescleal10-Aug-10 19:38
Aescleal10-Aug-10 19:38 
GeneralRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? Pin
Cool_Dev10-Aug-10 19:57
Cool_Dev10-Aug-10 19:57 
GeneralRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? [modified] Pin
JongchanAhn10-Aug-10 21:43
JongchanAhn10-Aug-10 21:43 
GeneralRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? Pin
Cool_Dev11-Aug-10 0:57
Cool_Dev11-Aug-10 0:57 
AnswerRe: Can't use 'User-defined-Message' in APP class of dialog-based MFC application. Why? Pin
dilara semerci10-Aug-10 20:32
dilara semerci10-Aug-10 20:32 
let me write you my coding for user defined msgs maybe this will give you something:
#define WM_USER_THREAD_COMPLETED WM_USER + 2
#define WM_USER_THREAD_ENDED WM_USER + 3
in stdafx.h

ON_MESSAGE( WM_USER_THREAD_COMPLETED, OnThreadCompleted )
ON_MESSAGE( WM_USER_THREAD_ENDED, OnThreadEnded )
on the messagemap
and my handles are like this:

LRESULT CStartStopDlg::OnThreadCompleted( WPARAM wParam, LPARAM lParam)
{// i am using wParam and lParam in the code segment
	...
	return 1;
}
LRESULT CStartStopDlg::OnThreadEnded( WPARAM wParam, LPARAM )
{
	...
	return 1;
}


to call these,
i use
::PostMessage( m_hWnd, WM_USER_THREAD_COMPLETED, (WPARAM)ps, (LPARAM)ns );
::PostMessage(m_hWnd,WM_USER_THREAD_ENDED,(WPARAM)ps,0);
where m_hWnd is my main dialog window
QuestionHot key conflict with input in Game Pin
wikywin10-Aug-10 17:10
wikywin10-Aug-10 17:10 
AnswerRe: Hot key conflict with input in Game Pin
Cool_Dev10-Aug-10 20:22
Cool_Dev10-Aug-10 20:22 
GeneralRe: Hot key conflict with input in Game Pin
wikywin10-Aug-10 21:51
wikywin10-Aug-10 21:51 
QuestionUnicode text in messagebox from utf-8 file - VC 6.0 Pin
Jayapal Chandran10-Aug-10 11:11
Jayapal Chandran10-Aug-10 11:11 
AnswerRe: Unicode text in messagebox from utf-8 file - VC 6.0 Pin
Aescleal10-Aug-10 11:46
Aescleal10-Aug-10 11:46 
GeneralRe: Unicode text in messagebox from utf-8 file - VC 6.0 Pin
Jayapal Chandran10-Aug-10 12:21
Jayapal Chandran10-Aug-10 12:21 
GeneralRe: Unicode text in messagebox from utf-8 file - VC 6.0 Pin
Aescleal10-Aug-10 19:36
Aescleal10-Aug-10 19:36 
GeneralRe: Unicode text in messagebox from utf-8 file - VC 6.0 Pin
Jayapal Chandran12-Aug-10 9:03
Jayapal Chandran12-Aug-10 9:03 
GeneralRe: Unicode text in messagebox from utf-8 file - VC 6.0 Pin
Jayapal Chandran7-Oct-10 0:53
Jayapal Chandran7-Oct-10 0:53 
QuestionWriteFile() API failed and GetLastError return 0x05 value. Pin
Member 390315410-Aug-10 4:54
Member 390315410-Aug-10 4:54 
AnswerRe: WriteFile() API failed and GetLastError return 0x05 value. Pin
Richard Andrew x6410-Aug-10 11:24
professionalRichard Andrew x6410-Aug-10 11:24 
AnswerRe: WriteFile() API failed and GetLastError return 0x05 value. Pin
Luc Pattyn10-Aug-10 11:46
sitebuilderLuc Pattyn10-Aug-10 11:46 
QuestionHELP: pair-value search & replace Pin
andwan010-Aug-10 4:24
andwan010-Aug-10 4:24 
AnswerRe: HELP: pair-value search & replace Pin
Moak10-Aug-10 12:55
Moak10-Aug-10 12:55 
AnswerRe: HELP: pair-value search & replace Pin
CPallini10-Aug-10 20:55
mveCPallini10-Aug-10 20:55 
GeneralRe: HELP: pair-value search & replace Pin
Moak10-Aug-10 23:10
Moak10-Aug-10 23:10 
GeneralRe: HELP: pair-value search & replace Pin
CPallini10-Aug-10 23:18
mveCPallini10-Aug-10 23:18 

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.