Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSetting Debug Info option Pin
Super Hornet7-Aug-08 22:53
Super Hornet7-Aug-08 22:53 
AnswerRe: Setting Debug Info option Pin
Mark Salsbery8-Aug-08 8:42
Mark Salsbery8-Aug-08 8:42 
GeneralRe: Setting Debug Info option Pin
Super Hornet8-Aug-08 20:46
Super Hornet8-Aug-08 20:46 
QuestionCreating control Pin
itaymaor7-Aug-08 22:43
itaymaor7-Aug-08 22:43 
AnswerRe: Creating control Pin
Naveen7-Aug-08 23:02
Naveen7-Aug-08 23:02 
AnswerRe: Creating control Pin
Hamid_RT7-Aug-08 23:13
Hamid_RT7-Aug-08 23:13 
AnswerRe: Creating control Pin
Mark Salsbery8-Aug-08 8:44
Mark Salsbery8-Aug-08 8:44 
QuestionUsing waitableTimmer to keep the UI active,fails Pin
ptr_Electron7-Aug-08 21:56
ptr_Electron7-Aug-08 21:56 
I am using waitableTimmer to keep the UI active, during a very length call. Progress bar is working fine, but UI is Frised pls suggest me some good idea for this,
<pre>
HANDLE timer = CreateWaitableTimer(0,false,0);
    LARGE_INTEGER li;
    const int unitsPerSecond=10*1000*1000; // 100 nano seconds
	li.QuadPart=-(2*unitsPerSecond);
    SetWaitableTimer(timer,&amp;li,350,0,0,false);
   _beginthreadex(0,0,TF,(void*) timer,0,0); // call


unsigned __stdcall TF(void* arg) // def
 {
  HANDLE timer=(HANDLE) arg;

  while (1)
  {
	  if(iStoped==0)
		  return 0;
    WaitForSingleObject(timer,INFINITE);
	//PostMessage(hwnd1,WM_USER_THREAD_UPDATE_PROGRESS1, 0, 100);
	prgBar-&gt;StepIt(); // prg bar is progressing
        DoEvents(); // this is not working, UI is frized
  }

_endthread();
return 0;
}



void DoEvents() 
{
      MSG oMSG;
      while(::PeekMessage(&amp;oMSG, NULL, 0, 0, PM_NOREMOVE))
      { 
                  ::TranslateMessage(&amp;oMSG);
                  ::DispatchMessage(&amp;oMSG);
       }
}</pre>

AnswerRe: Using waitableTimmer to keep the UI active,fails Pin
Stephen Hewitt7-Aug-08 22:25
Stephen Hewitt7-Aug-08 22:25 
Questiontranslucent rectangle Pin
tctan7-Aug-08 21:31
tctan7-Aug-08 21:31 
AnswerRe: translucent rectangle Pin
Hamid_RT7-Aug-08 23:18
Hamid_RT7-Aug-08 23:18 
AnswerRe: translucent rectangle Pin
Mark Salsbery8-Aug-08 8:47
Mark Salsbery8-Aug-08 8:47 
QuestionHelp me on Rich Edit Control Pin
ganesa moorthy7-Aug-08 21:18
ganesa moorthy7-Aug-08 21:18 
Questioncalling webservice problem? Pin
ritz12347-Aug-08 20:34
ritz12347-Aug-08 20:34 
QuestionUnexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 20:16
professionalChesnokov Yuriy7-Aug-08 20:16 
AnswerRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 21:13
toxcct7-Aug-08 21:13 
AnswerRe: Unexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 22:22
professionalChesnokov Yuriy7-Aug-08 22:22 
GeneralRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 22:27
toxcct7-Aug-08 22:27 
AnswerRe: Unexpected #endif with stdafx.h Pin
Chesnokov Yuriy7-Aug-08 22:29
professionalChesnokov Yuriy7-Aug-08 22:29 
GeneralRe: Unexpected #endif with stdafx.h Pin
toxcct7-Aug-08 22:32
toxcct7-Aug-08 22:32 
AnswerRe: Unexpected #endif with stdafx.h Pin
Mark Salsbery8-Aug-08 8:55
Mark Salsbery8-Aug-08 8:55 
QuestionDWORD PTR [modified] Pin
vikramlinux7-Aug-08 19:52
vikramlinux7-Aug-08 19:52 
AnswerRe: DWORD PTR Pin
SandipG 7-Aug-08 19:56
SandipG 7-Aug-08 19:56 
AnswerRe: Off Topic Pin
toxcct7-Aug-08 21:11
toxcct7-Aug-08 21:11 
GeneralRe: Off Topic Pin
vikramlinux7-Aug-08 22:34
vikramlinux7-Aug-08 22:34 

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.