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

C / C++ / MFC

 
AnswerRe: Do they have some relationship? Pin
cmk22-Sep-04 22:04
cmk22-Sep-04 22:04 
GeneralRe: Pragma Pin
Ramkrishna Pawar22-Sep-04 20:44
Ramkrishna Pawar22-Sep-04 20:44 
GeneralSize of the Edit Control Pin
Neelesh K J Jain22-Sep-04 20:22
Neelesh K J Jain22-Sep-04 20:22 
GeneralRe: Size of the Edit Control Pin
Ivan Cachicatari23-Sep-04 16:43
Ivan Cachicatari23-Sep-04 16:43 
GeneralThe difference between HWND and HINSTANCE Pin
Guoguor22-Sep-04 20:08
Guoguor22-Sep-04 20:08 
GeneralRe: The difference between HWND and HINSTANCE Pin
Arsalan Malik22-Sep-04 20:22
Arsalan Malik22-Sep-04 20:22 
GeneralRe: The difference between HWND and HINSTANCE Pin
Neelesh K J Jain22-Sep-04 20:28
Neelesh K J Jain22-Sep-04 20:28 
GeneralRe: The difference between HWND and HINSTANCE Pin
cmk22-Sep-04 22:12
cmk22-Sep-04 22:12 
HWND is a pointer to an insternal structure that contains the state information for a window.
HINSTANCE is a pointer to an internal structure that contains the executable module state information.

There is only one HINSTANCE, but there may be 0 or more HWND for a given program.

Note: There are also HMODULE, which is a pointer to an internal structure that contains the state information for a module - a module is a dll or exe ... which means that HINSTANCE can also be thought of as being a special type of HMODULE.

You use HWND to manipulate windows - move them, resize them, ...
You use HINSTANCE/HMODULE to access resources in the exe or dll - icons, bitmaps, strings, ...


...cmk

Save the whales - collect the whole set
Generaladd toolbar Pin
sana55022-Sep-04 19:53
sana55022-Sep-04 19:53 
GeneralRe: add toolbar Pin
KaЯl23-Sep-04 3:50
KaЯl23-Sep-04 3:50 
GeneralContect menu Pin
Yulianto.22-Sep-04 19:49
Yulianto.22-Sep-04 19:49 
GeneralRe: Contect menu Pin
toxcct23-Sep-04 4:19
toxcct23-Sep-04 4:19 
GeneralUnable to open a file Pin
Mughi22-Sep-04 19:47
Mughi22-Sep-04 19:47 
GeneralRe: Unable to open a file Pin
Yulianto.22-Sep-04 19:54
Yulianto.22-Sep-04 19:54 
GeneralRe: Unable to open a file Pin
Mughi22-Sep-04 20:45
Mughi22-Sep-04 20:45 
GeneralSolved Pin
Mughi22-Sep-04 21:39
Mughi22-Sep-04 21:39 
GeneralRe: Unable to open a file Pin
toxcct23-Sep-04 4:23
toxcct23-Sep-04 4:23 
GeneralOracle connection Error Pin
nareshos22-Sep-04 18:55
nareshos22-Sep-04 18:55 
GeneralWindows file-caching Pin
tbornemisza22-Sep-04 17:05
tbornemisza22-Sep-04 17:05 
GeneralRe: Windows file-caching Pin
tbornemisza22-Sep-04 17:15
tbornemisza22-Sep-04 17:15 
GeneralRe: Windows file-caching Pin
Anonymous22-Sep-04 17:23
Anonymous22-Sep-04 17:23 
Generalwinctrl5 error Pin
google7322-Sep-04 16:56
google7322-Sep-04 16:56 
Questioncomponent gallery in VC++.net ? Pin
Maximilien22-Sep-04 15:48
Maximilien22-Sep-04 15:48 
Generalhooking problem Pin
Dev57822-Sep-04 14:27
Dev57822-Sep-04 14:27 
GeneralDeleting a self-created CView or CMDIChildWnd object.. Pin
herbert_chow22-Sep-04 11:48
herbert_chow22-Sep-04 11:48 

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.