Click here to Skip to main content
15,918,303 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change font of Labels in CDialog ? Pin
Antony M Kancidrowski15-Apr-04 3:07
Antony M Kancidrowski15-Apr-04 3:07 
GeneralRe: How to change font of Labels in CDialog ? Pin
vgrigor15-Apr-04 3:11
vgrigor15-Apr-04 3:11 
GeneralInitializing CWinThread member Pin
Member 101882315-Apr-04 2:21
Member 101882315-Apr-04 2:21 
GeneralRe: Initializing CWinThread member Pin
David Crow15-Apr-04 2:51
David Crow15-Apr-04 2:51 
GeneralRe: Initializing CWinThread member Pin
Mike Dimmick15-Apr-04 2:56
Mike Dimmick15-Apr-04 2:56 
GeneralSerialize HANDLE Pin
Neha15-Apr-04 1:24
Neha15-Apr-04 1:24 
GeneralRe: Serialize HANDLE Pin
22491715-Apr-04 3:55
22491715-Apr-04 3:55 
GeneralRe: Serialize HANDLE Pin
22491715-Apr-04 4:13
22491715-Apr-04 4:13 
1.An instance handle is a pointer to the image of an executable file in a client process.


2.A resource handle as obtained by FindResource and LoadResource is a pointer to that process within the image.


3.A handle returned from VirtualAlloc or HeapCreate is a pointer to the beginning of the memory block in the client's address space.


4.A handle returned from HeapAlloc is a pointer into the chunk of memory allocated by 3.


5.A GDI handle is a relative offset into a table located in the client's address space.


6.A USER handle is a relative offset into a table located in the server's address space.


7.A handle to a native Windows NT object is a relative offset into a table located in system space. There are several of those tables—one per process and a few tables maintained by the system.


8.A USER object itself is located in the server's address space.


9.In the case of resources, 8 still holds true, but just as in 2, the resource is referenced through a memory-mapped image of the file that holds the executable, only the image resides in the server's address space this time. This is the scenario you encounter, for example, when calling LoadIcon.


10.The data structures that describe native Windows NT objects reside in system address space. Depending on the object type, part of the object may also be located in a process's address space. (This holds true, for example, for section objects.)


11.The data that describes a GDI object resides in the client's address space. Please also observe the restriction mentioned earlier in this article under "How the Subsystem Realizes Window GDI Objects."





It's not a bug, it's an undocumented feature.
suhredayan@omniquad.com


messenger :suhredayan@hotmail.com

GeneralRe: Serialize HANDLE Pin
antlers15-Apr-04 11:35
antlers15-Apr-04 11:35 
GeneralProgrammatically changing an image in a dialog app Pin
Ashman15-Apr-04 1:19
Ashman15-Apr-04 1:19 
GeneralRe: Programmatically changing an image in a dialog app Pin
vcplusplus15-Apr-04 2:30
vcplusplus15-Apr-04 2:30 
GeneralCDatetimepicker ctl formatting Pin
Ashman15-Apr-04 1:14
Ashman15-Apr-04 1:14 
GeneralRe: CDatetimepicker ctl formatting Pin
Michael P Butler15-Apr-04 2:44
Michael P Butler15-Apr-04 2:44 
GeneralRe: CDatetimepicker ctl formatting Pin
Branislav15-Apr-04 3:09
Branislav15-Apr-04 3:09 
GeneralOut-Of-Memory Pin
Gurra_Koo15-Apr-04 1:13
Gurra_Koo15-Apr-04 1:13 
GeneralRe: Out-Of-Memory Pin
David Crow15-Apr-04 2:52
David Crow15-Apr-04 2:52 
GeneralRe: Out-Of-Memory Pin
Antony M Kancidrowski15-Apr-04 3:06
Antony M Kancidrowski15-Apr-04 3:06 
GeneralRe: Out-Of-Memory Pin
Gurra_Koo15-Apr-04 4:10
Gurra_Koo15-Apr-04 4:10 
GeneralRe: Out-Of-Memory Pin
David Crow15-Apr-04 4:24
David Crow15-Apr-04 4:24 
GeneralRe: Out-Of-Memory Pin
Gurra_Koo15-Apr-04 5:26
Gurra_Koo15-Apr-04 5:26 
GeneralRe: Out-Of-Memory Pin
David Crow15-Apr-04 5:29
David Crow15-Apr-04 5:29 
GeneralRe: Out-Of-Memory Pin
Gurra_Koo15-Apr-04 5:32
Gurra_Koo15-Apr-04 5:32 
GeneralRe: Out-Of-Memory Pin
David Crow15-Apr-04 5:34
David Crow15-Apr-04 5:34 
GeneralRe: Out-Of-Memory Pin
Gurra_Koo15-Apr-04 5:39
Gurra_Koo15-Apr-04 5:39 
GeneralRe: Out-Of-Memory Pin
David Crow15-Apr-04 6:52
David Crow15-Apr-04 6: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.