Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tracking mouse event on a Bitmapbutton Pin
led mike18-Jul-08 6:33
led mike18-Jul-08 6:33 
QuestionCombobox Mouseover for Items Pin
Joschwenk66617-Jul-08 2:08
Joschwenk66617-Jul-08 2:08 
QuestionRe: Combobox Mouseover for Items Pin
David Crow17-Jul-08 4:27
David Crow17-Jul-08 4:27 
AnswerRe: Combobox Mouseover for Items Pin
Joschwenk66621-Jul-08 7:19
Joschwenk66621-Jul-08 7:19 
QuestionThread is not creating the Progress Dialog Pin
ptr_Electron17-Jul-08 1:59
ptr_Electron17-Jul-08 1:59 
QuestionRe: Thread is not creating the Progress Dialog Pin
David Crow17-Jul-08 4:25
David Crow17-Jul-08 4:25 
AnswerRe: Thread is not creating the Progress Dialog Pin
ptr_Electron17-Jul-08 22:12
ptr_Electron17-Jul-08 22:12 
AnswerRe: Thread is not creating the Progress Dialog [modified] Pin
Mark Salsbery17-Jul-08 7:38
Mark Salsbery17-Jul-08 7:38 
You should be using
CWinThread* AfxBeginThread(
   CRuntimeClass* pThreadClass,
   int nPriority = THREAD_PRIORITY_NORMAL,
   UINT nStackSize = 0,
   DWORD dwCreateFlags = 0,
   LPSECURITY_ATTRIBUTES lpSecurityAttrs = NULL 
);

instead of
pThread->CreateThread();

to create a UI thread. Otherwise, your thread won't get the
WM_MYTHREADMESSAGE you post to it.

*Edit*<br />
Actually you can leave your thread creation code the way it is as<br />
long as your ThreadPrgIndiaction class has an InitInstance() override<br />
that returns TRUE.  That will cause the message queue to be created for <br />
the thread.<br />


Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

modified on Thursday, July 17, 2008 3:19 PM

GeneralRe: Thread is not creating the Progress Dialog Pin
ptr_Electron17-Jul-08 18:19
ptr_Electron17-Jul-08 18:19 
AnswerRe: Thread is not creating the Progress Dialog Pin
aks.17-Jul-08 20:56
aks.17-Jul-08 20:56 
GeneralRe: Thread is not creating the Progress Dialog Pin
ptr_Electron18-Jul-08 0:11
ptr_Electron18-Jul-08 0:11 
QuestionProgrammatic Function Profiling Pin
Varghese Paul M17-Jul-08 1:51
Varghese Paul M17-Jul-08 1:51 
AnswerRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:03
mveCPallini17-Jul-08 2:03 
GeneralRe: Programmatic Function Profiling Pin
Cedric Moonen17-Jul-08 2:18
Cedric Moonen17-Jul-08 2:18 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:41
mveCPallini17-Jul-08 2:41 
GeneralRe: Programmatic Function Profiling Pin
Cedric Moonen17-Jul-08 2:45
Cedric Moonen17-Jul-08 2:45 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 3:01
mveCPallini17-Jul-08 3:01 
GeneralRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 2:46
professionalRajesh R Subramanian17-Jul-08 2:46 
JokeRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:53
mveCPallini17-Jul-08 2:53 
GeneralRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 3:01
professionalRajesh R Subramanian17-Jul-08 3:01 
AnswerRe: Programmatic Function Profiling Pin
Hamid_RT17-Jul-08 2:10
Hamid_RT17-Jul-08 2:10 
AnswerRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 2:43
professionalRajesh R Subramanian17-Jul-08 2:43 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 2:49
mveCPallini17-Jul-08 2:49 
GeneralRe: Programmatic Function Profiling Pin
Rajesh R Subramanian17-Jul-08 2:55
professionalRajesh R Subramanian17-Jul-08 2:55 
GeneralRe: Programmatic Function Profiling Pin
CPallini17-Jul-08 3:09
mveCPallini17-Jul-08 3:09 

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.