Click here to Skip to main content
15,909,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionedit box with read only properties and color text Pin
Manjunath S9-Jul-06 19:56
Manjunath S9-Jul-06 19:56 
AnswerRe: edit box with read only properties and color text Pin
Naveen9-Jul-06 20:08
Naveen9-Jul-06 20:08 
QuestionRe: edit box with read only properties and color text Pin
Manjunath S9-Jul-06 21:01
Manjunath S9-Jul-06 21:01 
AnswerRe: edit box with read only properties and color text Pin
Naveen9-Jul-06 21:23
Naveen9-Jul-06 21:23 
AnswerRe: edit box with read only properties and color text Pin
Hamid_RT9-Jul-06 21:32
Hamid_RT9-Jul-06 21:32 
AnswerRe: edit box with read only properties and color text Pin
Hamid_RT9-Jul-06 20:23
Hamid_RT9-Jul-06 20:23 
QuestionCreating Win32 DLL in Vs.Net Pin
Abhi Lahare9-Jul-06 19:56
Abhi Lahare9-Jul-06 19:56 
AnswerRe: Creating Win32 DLL in Vs.Net Pin
AlonYair9-Jul-06 20:13
AlonYair9-Jul-06 20:13 
GeneralRe: Creating Win32 DLL in Vs.Net Pin
Abhi Lahare10-Jul-06 18:51
Abhi Lahare10-Jul-06 18:51 
AnswerRe: Creating Win32 DLL in Vs.Net Pin
Hamid_RT9-Jul-06 20:25
Hamid_RT9-Jul-06 20:25 
QuestionCImageList for CTreeCtrl Pin
anu_889-Jul-06 19:45
anu_889-Jul-06 19:45 
AnswerRe: CImageList for CTreeCtrl Pin
Abhi Lahare9-Jul-06 19:53
Abhi Lahare9-Jul-06 19:53 
AnswerRe: CImageList for CTreeCtrl Pin
FarPointer9-Jul-06 20:19
FarPointer9-Jul-06 20:19 
AnswerRe: CImageList for CTreeCtrl Pin
Hamid_RT9-Jul-06 20:26
Hamid_RT9-Jul-06 20:26 
QuestionRe: CImageList for CTreeCtrl [modified] Pin
anu_889-Jul-06 20:57
anu_889-Jul-06 20:57 
AnswerRe: CImageList for CTreeCtrl Pin
Hamid_RT9-Jul-06 21:07
Hamid_RT9-Jul-06 21:07 
QuestionRe: CImageList for CTreeCtrl Pin
anu_889-Jul-06 21:14
anu_889-Jul-06 21:14 
AnswerRe: CImageList for CTreeCtrl Pin
Hamid_RT9-Jul-06 21:23
Hamid_RT9-Jul-06 21:23 
GeneralRe: CImageList for CTreeCtrl Pin
anu_889-Jul-06 22:26
anu_889-Jul-06 22:26 
Question_endthreadex() Pin
Programmer Anju9-Jul-06 19:43
Programmer Anju9-Jul-06 19:43 
AnswerRe: _endthreadex() Pin
ThatsAlok9-Jul-06 20:39
ThatsAlok9-Jul-06 20:39 
AnswerRe: _endthreadex() Pin
ThatsAlok9-Jul-06 20:49
ThatsAlok9-Jul-06 20:49 
AnswerRe: _endthreadex() Pin
Daniel Lohmann9-Jul-06 21:48
Daniel Lohmann9-Jul-06 21:48 
If a thread or process terminates, the OS-internal thread/process object is set to signaled state - the state you can use to wait for with e.g. WaitForSingleObject(). So if hThread is your thread handle, the following would wait until the thread has actually terminated:

WaitForSingleObject( hThread, INFINITE )

The point is that you might also use the waiting functions to test if an object (in this case the thread) is in signaled state (in this case has terminated) by just using 0 as the timeout value:

if( WaitForSingleObject( hThread, 0 ) == WAIT_TIMEOUT ) {
// not terminated yet
}



--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralRe: _endthreadex() Pin
ThatsAlok9-Jul-06 21:59
ThatsAlok9-Jul-06 21:59 
Questionother then resource editor any method to create dialogbox Pin
Krishnatv9-Jul-06 19:18
Krishnatv9-Jul-06 19: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.