Click here to Skip to main content
14,924,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Icon problem for dialog of MFC DLL. Pin
Derrick Becker4-Sep-07 4:17
MemberDerrick Becker4-Sep-07 4:17 
GeneralRe: Icon problem for dialog of MFC DLL. Pin
Mushtaque Nizamani4-Sep-07 5:23
MemberMushtaque Nizamani4-Sep-07 5:23 
QuestionHow can I specify absolute time with SetWaitableTimer() [modified] Pin
peteryenyen4-Sep-07 4:00
Memberpeteryenyen4-Sep-07 4:00 
AnswerRe: How can I specify absolute time with SetWaitableTimer() Pin
led mike4-Sep-07 4:51
Memberled mike4-Sep-07 4:51 
GeneralRe: How can I specify absolute time with SetWaitableTimer() Pin
peteryenyen4-Sep-07 13:51
Memberpeteryenyen4-Sep-07 13:51 
GeneralRe: How can I specify absolute time with SetWaitableTimer() Pin
led mike5-Sep-07 5:29
Memberled mike5-Sep-07 5:29 
QuestionWhen is CWnd valid? Pin
charlieg4-Sep-07 3:43
Membercharlieg4-Sep-07 3:43 
AnswerRe: When is CWnd valid? Pin
led mike4-Sep-07 4:38
Memberled 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
Membercharlieg4-Sep-07 6:05 
GeneralRe: When is CWnd valid? Pin
led mike4-Sep-07 11:54
Memberled mike4-Sep-07 11:54 
QuestionWindows message order? Pin
charlieg4-Sep-07 3:26
Membercharlieg4-Sep-07 3:26 
AnswerRe: Windows message order? Pin
Hamed Musavi4-Sep-07 5:50
MemberHamed Musavi4-Sep-07 5:50 
GeneralRe: Windows message order? Pin
charlieg4-Sep-07 5:56
Membercharlieg4-Sep-07 5:56 
GeneralRe: Windows message order? Pin
Hamed Musavi4-Sep-07 6:32
MemberHamed Musavi4-Sep-07 6:32 
AnswerRe: Windows message order? Pin
Mark Salsbery4-Sep-07 6:15
MemberMark Salsbery4-Sep-07 6:15 
GeneralRe: Windows message order? Pin
charlieg4-Sep-07 6:33
Membercharlieg4-Sep-07 6:33 
GeneralRe: Windows message order? Pin
Mark Salsbery4-Sep-07 6:49
MemberMark Salsbery4-Sep-07 6:49 
QuestionAbout IHTML Interface ... need your help Pin
Ryu Jin4-Sep-07 3:21
MemberRyu Jin4-Sep-07 3:21 
QuestionHelp - clistctrl drag image only showing icon, no text Pin
Derrick Becker4-Sep-07 3:14
MemberDerrick Becker4-Sep-07 3:14 
QuestionRe: Help - clistctrl drag image only showing icon, no text Pin
Derrick Becker4-Sep-07 5:17
MemberDerrick Becker4-Sep-07 5:17 
QuestionPlease Help :( [modified] Pin
Programm3r4-Sep-07 2:11
MemberProgramm3r4-Sep-07 2:11 
QuestionVC++ AND MS ACCESS connection Pin
himuskanhere4-Sep-07 2:08
Memberhimuskanhere4-Sep-07 2:08 
AnswerRe: VC++ AND MS ACCESS connection Pin
chandu0044-Sep-07 2:30
Memberchandu0044-Sep-07 2:30 
AnswerRe: VC++ AND MS ACCESS connection Pin
Hamid_RT4-Sep-07 3:38
MemberHamid_RT4-Sep-07 3:38 
QuestionHow to terminate a thread? Pin
kcynic4-Sep-07 0:52
Memberkcynic4-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.