Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAm I in a UI thread? Pin
Peter Weyzen22-Oct-07 19:32
Peter Weyzen22-Oct-07 19:32 
AnswerRe: Am I in a UI thread? Pin
Naveen22-Oct-07 19:35
Naveen22-Oct-07 19:35 
GeneralRe: Am I in a UI thread? Pin
James R. Twine23-Oct-07 1:51
James R. Twine23-Oct-07 1:51 
GeneralRe: Am I in a UI thread? Pin
Naveen23-Oct-07 3:00
Naveen23-Oct-07 3:00 
QuestionRe: Am I in a UI thread? Pin
David Crow23-Oct-07 3:45
David Crow23-Oct-07 3:45 
AnswerRe: Am I in a UI thread? Pin
Naveen23-Oct-07 5:22
Naveen23-Oct-07 5:22 
GeneralRe: Am I in a UI thread? Pin
David Crow23-Oct-07 5:27
David Crow23-Oct-07 5:27 
GeneralRe: Am I in a UI thread? Pin
Naveen23-Oct-07 14:12
Naveen23-Oct-07 14:12 
After you asked me the question I tried to call the function IsGUIThread() function from a thread which was created using AfxBeginThread() and CreateThread(). the behavior I found was that the IsGUIThread() function return true when called from a thread created using AfxBeginThread() where as it retured FALSE when called from a thread created using CreateThread(). after checking the MFC code, I found that When we call the AfxBeginThread the Entry point is actually _AfxThreadEntry and inside that function a SetWindowsHookEx() is called. Thats why the IsGUIThread() function returned TRUE when called from such threads. But I didnt understand why..




GeneralRe: Am I in a UI thread? Pin
Peter Weyzen23-Oct-07 11:41
Peter Weyzen23-Oct-07 11:41 
AnswerRe: Am I in a UI thread? Pin
ThatsAlok23-Oct-07 0:19
ThatsAlok23-Oct-07 0:19 
GeneralRe: Am I in a UI thread? Pin
Peter Weyzen23-Oct-07 11:43
Peter Weyzen23-Oct-07 11:43 
AnswerRe: Am I in a UI thread? Pin
Mark Salsbery23-Oct-07 8:46
Mark Salsbery23-Oct-07 8:46 
QuestionCreating a new table in access Pin
prithaa22-Oct-07 19:25
prithaa22-Oct-07 19:25 
AnswerRe: Creating a new table in access Pin
David Crow23-Oct-07 3:47
David Crow23-Oct-07 3:47 
Questionwhere are dialog box saved on disk Pin
neha.agarwal2722-Oct-07 19:06
neha.agarwal2722-Oct-07 19:06 
AnswerRe: where are dialog box saved on disk Pin
Paresh Chitte22-Oct-07 19:19
Paresh Chitte22-Oct-07 19:19 
AnswerRe: where are dialog box saved on disk Pin
Hamid_RT22-Oct-07 19:22
Hamid_RT22-Oct-07 19:22 
AnswerRe: where are dialog box saved on disk Pin
neha.agarwal2722-Oct-07 19:41
neha.agarwal2722-Oct-07 19:41 
GeneralRe: where are dialog box saved on disk Pin
Paresh Chitte22-Oct-07 20:43
Paresh Chitte22-Oct-07 20:43 
GeneralRe: where are dialog box saved on disk Pin
Anand Todkar22-Oct-07 21:06
Anand Todkar22-Oct-07 21:06 
GeneralRe: where are dialog box saved on disk Pin
neha.agarwal2722-Oct-07 22:13
neha.agarwal2722-Oct-07 22:13 
GeneralRe: where are dialog box saved on disk Pin
Anand Todkar22-Oct-07 23:15
Anand Todkar22-Oct-07 23:15 
GeneralRe: where are dialog box saved on disk Pin
neha.agarwal2722-Oct-07 23:58
neha.agarwal2722-Oct-07 23:58 
GeneralRe: where are dialog box saved on disk Pin
Paresh Chitte23-Oct-07 0:01
Paresh Chitte23-Oct-07 0:01 
GeneralRe: where are dialog box saved on disk Pin
Anand Todkar23-Oct-07 1:46
Anand Todkar23-Oct-07 1:46 

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.