Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AddFontResourceEx Pin
RaymondM26-Jan-09 19:13
RaymondM26-Jan-09 19:13 
GeneralRe: AddFontResourceEx [modified] Pin
Randor 26-Jan-09 21:09
professional Randor 26-Jan-09 21:09 
GeneralRe: AddFontResourceEx Pin
RaymondM27-Jan-09 4:47
RaymondM27-Jan-09 4:47 
GeneralRe: AddFontResourceEx Pin
Randor 27-Jan-09 7:52
professional Randor 27-Jan-09 7:52 
QuestionWindow Handle from CreateWindow will colse itself when thread exit? Pin
fitatc25-Jan-09 21:33
fitatc25-Jan-09 21:33 
AnswerRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
Stuart Dootson25-Jan-09 21:55
professionalStuart Dootson25-Jan-09 21:55 
AnswerRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
Stephen Hewitt26-Jan-09 0:33
Stephen Hewitt26-Jan-09 0:33 
AnswerRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
Randor 26-Jan-09 13:27
professional Randor 26-Jan-09 13:27 
Hi,

fitatc wrote:

I am not sure if this can prove that window handle is be safely closed.Could any one tell me


User applications do not manage window handles. To be more specific your application does not create/destroy or manage windows directly. The windows kernel does all of this for you when you request it.

There is a device driver named 'Win32k.sys' which through ntdll.dll creates and manages the window for you. when you make a call to CreateWindow it ultimately passes through VerNtUserCreateWindowEx then ZwUserCreateWindowEx and your window is created. Event messages are then placed in the message que associated with the window. At this point your application can retrieve these messages and react to them.

If you don't understand anything I just said... just remember that you do not need to close window handles.

Best Wishes,
-David Delaune
GeneralRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
fitatc26-Jan-09 13:46
fitatc26-Jan-09 13:46 
QuestionShow/Hide part of a CView / CFormView Pin
swarnalucky25-Jan-09 20:17
swarnalucky25-Jan-09 20:17 
AnswerRe: Show/Hide part of a CView / CFormView Pin
SutterA25-Jan-09 22:05
SutterA25-Jan-09 22:05 
GeneralRe: Show/Hide part of a CView / CFormView Pin
swarnalucky26-Jan-09 3:49
swarnalucky26-Jan-09 3:49 
GeneralRe: Show/Hide part of a CView / CFormView Pin
SelvaKr26-Jan-09 14:34
SelvaKr26-Jan-09 14:34 
GeneralRe: Show/Hide part of a CView / CFormView Pin
SutterA2-Feb-09 23:15
SutterA2-Feb-09 23:15 
QuestionDesign Data structure. Pin
mikert_200825-Jan-09 20:10
mikert_200825-Jan-09 20:10 
AnswerRe: Design Data structure. Pin
David Crow26-Jan-09 2:52
David Crow26-Jan-09 2:52 
GeneralRe: Design Data structure. Pin
mikert_200826-Jan-09 16:59
mikert_200826-Jan-09 16:59 
QuestionDisplaying Symbol issue......... Pin
shaina223125-Jan-09 18:52
shaina223125-Jan-09 18:52 
AnswerRe: Displaying Symbol issue......... Pin
Rajesh R Subramanian25-Jan-09 19:47
professionalRajesh R Subramanian25-Jan-09 19:47 
AnswerRe: Displaying Symbol issue......... Pin
CPallini25-Jan-09 22:24
mveCPallini25-Jan-09 22:24 
GeneralRe: Displaying Symbol issue......... Pin
toxcct26-Jan-09 1:56
toxcct26-Jan-09 1:56 
GeneralRe: Displaying Symbol issue......... Pin
CPallini26-Jan-09 2:28
mveCPallini26-Jan-09 2:28 
GeneralRe: Displaying Symbol issue......... Pin
toxcct26-Jan-09 2:30
toxcct26-Jan-09 2:30 
GeneralRe: Displaying Symbol issue......... Pin
CPallini26-Jan-09 3:04
mveCPallini26-Jan-09 3:04 
GeneralRe: Displaying Symbol issue......... Pin
toxcct26-Jan-09 3:08
toxcct26-Jan-09 3:08 

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.