Click here to Skip to main content
15,918,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
NewsRe: Insert new row in CListCtrl: need to improve the speed Pin
tataxin13-Jun-08 2:48
tataxin13-Jun-08 2:48 
AnswerRe: Insert new row in CListCtrl: need to improve the speed Pin
Jijo.Raj13-Jun-08 6:38
Jijo.Raj13-Jun-08 6:38 
GeneralRe: Insert new row in CListCtrl: need to improve the speed Pin
tataxin13-Jun-08 8:07
tataxin13-Jun-08 8:07 
AnswerRe: Insert new row in CListCtrl: need to improve the speed Pin
tataxin16-Jun-08 15:41
tataxin16-Jun-08 15:41 
QuestionModal dialog box in a Thread Pin
iayd12-Jun-08 22:22
iayd12-Jun-08 22:22 
AnswerRe: Modal dialog box in a Thread Pin
SandipG 12-Jun-08 23:27
SandipG 12-Jun-08 23:27 
AnswerRe: Modal dialog box in a Thread Pin
Maximilien13-Jun-08 0:40
Maximilien13-Jun-08 0:40 
GeneralRe: Modal dialog box in a Thread Pin
iayd13-Jun-08 1:11
iayd13-Jun-08 1:11 
My code is like that;

UINT ComThreadEvent1(LPVOID lParam)
{
	CNotepad *dlg = (CNotepad *)lParam;
	while(HD != NULL)
	{	
		::Sleep(500);
		int index = dlg->events.Find(_T("\r\n"),0);
		if(index == 0 )
		{
			dlg->thread2->ResumeThread();
			dlg->GetEvent(dlg->events.Left(index));
		}
	}
	return 0;
}


void CNotepad::GetEvent(CString event)
{
	CString str;
	if(event.Mid(9,2) == "C0")
	{
		str = "Hello";
                CMessageBox mBox; 
                mBox.DoModal();
	}
}

Here GetEvent() method is creating Modal Dialog box.How can I send a message to my main UI thread and create a dialog there?

Thanks
QuestionWebBrowser control Pin
lunaroverlord12-Jun-08 22:07
lunaroverlord12-Jun-08 22:07 
AnswerRe: WebBrowser control Pin
KarstenK12-Jun-08 22:24
mveKarstenK12-Jun-08 22:24 
GeneralRe: WebBrowser control Pin
lunaroverlord12-Jun-08 22:50
lunaroverlord12-Jun-08 22:50 
QuestionCreating Resource only DLL and using it in code Pin
Anand Todkar12-Jun-08 21:27
Anand Todkar12-Jun-08 21:27 
AnswerRe: Creating Resource only DLL and using it in code Pin
SandipG 12-Jun-08 21:31
SandipG 12-Jun-08 21:31 
GeneralRe: Creating Resource only DLL and using it in code Pin
Nelek12-Jun-08 22:02
protectorNelek12-Jun-08 22:02 
GeneralRe: Creating Resource only DLL and using it in code Pin
SandipG 12-Jun-08 22:05
SandipG 12-Jun-08 22:05 
GeneralRe: Creating Resource only DLL and using it in code Pin
Sudhan Gandhi12-Jun-08 22:47
Sudhan Gandhi12-Jun-08 22:47 
GeneralRe: Creating Resource only DLL and using it in code Pin
Anand Todkar12-Jun-08 22:44
Anand Todkar12-Jun-08 22:44 
QuestionDebug mode VS Release mode Pin
nisha0000012-Jun-08 21:14
nisha0000012-Jun-08 21:14 
QuestionRe: Debug mode VS Release mode Pin
CPallini12-Jun-08 21:25
mveCPallini12-Jun-08 21:25 
GeneralRe: Debug mode VS Release mode Pin
buntyrolln16-Jun-08 18:08
buntyrolln16-Jun-08 18:08 
QuestionRe: Debug mode VS Release mode Pin
CPallini16-Jun-08 21:12
mveCPallini16-Jun-08 21:12 
GeneralRe: Debug mode VS Release mode Pin
buntyrolln16-Jun-08 22:34
buntyrolln16-Jun-08 22:34 
GeneralRe: Debug mode VS Release mode Pin
CPallini16-Jun-08 22:58
mveCPallini16-Jun-08 22:58 
GeneralRe: Debug mode VS Release mode Pin
buntyrolln16-Jun-08 23:17
buntyrolln16-Jun-08 23:17 
AnswerRe: Debug mode VS Release mode Pin
theCPkid12-Jun-08 21:29
theCPkid12-Jun-08 21:29 

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.