Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Icon problem for dialog of MFC DLL. Pin
Derrick Becker4-Sep-07 4:17
Derrick Becker4-Sep-07 4:17 
GeneralRe: Icon problem for dialog of MFC DLL. Pin
Mushtaque Nizamani4-Sep-07 5:23
Mushtaque Nizamani4-Sep-07 5:23 
QuestionHow can I specify absolute time with SetWaitableTimer() [modified] Pin
peteryenyen4-Sep-07 4:00
peteryenyen4-Sep-07 4:00 
AnswerRe: How can I specify absolute time with SetWaitableTimer() Pin
led mike4-Sep-07 4:51
led mike4-Sep-07 4:51 
GeneralRe: How can I specify absolute time with SetWaitableTimer() Pin
peteryenyen4-Sep-07 13:51
peteryenyen4-Sep-07 13:51 
GeneralRe: How can I specify absolute time with SetWaitableTimer() Pin
led mike5-Sep-07 5:29
led mike5-Sep-07 5:29 
QuestionWhen is CWnd valid? Pin
charlieg4-Sep-07 3:43
charlieg4-Sep-07 3:43 
AnswerRe: When is CWnd valid? Pin
led mike4-Sep-07 4:38
led mike4-Sep-07 4:38 
charlieg wrote:
when is CWnd guaranteed to be good?


When it's window handle is "valid" or IsWindow(...) which of course happens after CreateWindow and before DestroyWindow. Also you must be accessing the object from the same thread it was created in since MFC uses TLS to maintain CWnd/HWND data (there are technotes on this). There are ways to create temporary valid CWnd objects in worker threads but you need to know what you are doing when using that technique.



GeneralRe: When is CWnd valid? Pin
charlieg4-Sep-07 6:05
charlieg4-Sep-07 6:05 
GeneralRe: When is CWnd valid? Pin
led mike4-Sep-07 11:54
led mike4-Sep-07 11:54 
QuestionWindows message order? Pin
charlieg4-Sep-07 3:26
charlieg4-Sep-07 3:26 
AnswerRe: Windows message order? Pin
Hamed Musavi4-Sep-07 5:50
Hamed Musavi4-Sep-07 5:50 
GeneralRe: Windows message order? Pin
charlieg4-Sep-07 5:56
charlieg4-Sep-07 5:56 
GeneralRe: Windows message order? Pin
Hamed Musavi4-Sep-07 6:32
Hamed Musavi4-Sep-07 6:32 
AnswerRe: Windows message order? Pin
Mark Salsbery4-Sep-07 6:15
Mark Salsbery4-Sep-07 6:15 
GeneralRe: Windows message order? Pin
charlieg4-Sep-07 6:33
charlieg4-Sep-07 6:33 
GeneralRe: Windows message order? Pin
Mark Salsbery4-Sep-07 6:49
Mark Salsbery4-Sep-07 6:49 
QuestionAbout IHTML Interface ... need your help Pin
Ryu Jin4-Sep-07 3:21
Ryu Jin4-Sep-07 3:21 
QuestionHelp - clistctrl drag image only showing icon, no text Pin
Derrick Becker4-Sep-07 3:14
Derrick Becker4-Sep-07 3:14 
QuestionRe: Help - clistctrl drag image only showing icon, no text Pin
Derrick Becker4-Sep-07 5:17
Derrick Becker4-Sep-07 5:17 
QuestionPlease Help :( [modified] Pin
Programm3r4-Sep-07 2:11
Programm3r4-Sep-07 2:11 
QuestionVC++ AND MS ACCESS connection Pin
himuskanhere4-Sep-07 2:08
himuskanhere4-Sep-07 2:08 
AnswerRe: VC++ AND MS ACCESS connection Pin
chandu0044-Sep-07 2:30
chandu0044-Sep-07 2:30 
AnswerRe: VC++ AND MS ACCESS connection Pin
Hamid_RT4-Sep-07 3:38
Hamid_RT4-Sep-07 3:38 
QuestionHow to terminate a thread? Pin
kcynic4-Sep-07 0:52
kcynic4-Sep-07 0:52 

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.