Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ++Variable or Variable++ Pin
Rob Caldecott5-Oct-05 22:19
Rob Caldecott5-Oct-05 22:19 
AnswerRe: ++Variable or Variable++ Pin
vikas amin5-Oct-05 23:45
vikas amin5-Oct-05 23:45 
GeneralRe: ++Variable or Variable++ Pin
Eytukan6-Oct-05 2:07
Eytukan6-Oct-05 2:07 
QuestionBitmap Transparency in EVC3.0 Pin
fjlv20055-Oct-05 15:55
fjlv20055-Oct-05 15:55 
QuestionHWND, HINSTANCE, HDC and HGLRC Pin
Alex Cutovoi5-Oct-05 15:46
Alex Cutovoi5-Oct-05 15:46 
AnswerRe: HWND, HINSTANCE, HDC and HGLRC Pin
S Douglas5-Oct-05 22:52
professionalS Douglas5-Oct-05 22:52 
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
Alex Cutovoi6-Oct-05 3:27
Alex Cutovoi6-Oct-05 3:27 
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
S Douglas6-Oct-05 3:53
professionalS Douglas6-Oct-05 3:53 
Alex Cutovoi wrote:
A couple of days ago the answer that send me is that the only just 32 bit variables and nothing more. I would like more explanations, like when I use one or another and this differences. That's it.

Okay lets try this,
HWND (from memory)
All windows are assigned a handle (at run time) a unique integer that identifies them. By window I mean virtually everything that a user could interact with, edit controls, static controls, command buttons, tool bars (the object on the tool bar as well), dialog windows, the main frame of a SID / MDI app, system tray, the desktop. Etc. the list goes on.

HDC (stolen from Winprog.org[^] )
Is basically a handle to something you can draw on; it can represent the entire screen, an entire window, the client area of a window, a bitmap stored in memory, or a printer. The nice part is that you don't even need to know which one it refers to, you can use it basically the same way, which is especially handy for writing custom drawing functions which you can then use on any of these devices without changing it for each one.

HGLRC (this one I had to look up, as its part of OpenGL a graphics library)
given an HDC with an appropriate pixel format, we can make a Handle to an openGL Rendering Context (HGLRC)
See OpenGL_Windows_Setup[^]

Hope that provides a little more insite...



DEBUGGING : Removing the needles from the haystack.


-- modified at 9:58 Thursday 6th October, 2005
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
Alex Cutovoi6-Oct-05 9:43
Alex Cutovoi6-Oct-05 9:43 
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
S Douglas6-Oct-05 18:05
professionalS Douglas6-Oct-05 18:05 
QuestiontNewbie - Switch Statement Pin
kenexcelon5-Oct-05 15:12
kenexcelon5-Oct-05 15:12 
AnswerRe: tNewbie - Switch Statement Pin
enjoycrack5-Oct-05 15:16
enjoycrack5-Oct-05 15:16 
AnswerRe: tNewbie - Switch Statement Pin
Shog95-Oct-05 15:24
sitebuilderShog95-Oct-05 15:24 
GeneralRe: tNewbie - Switch Statement Pin
Jose Lamas Rios5-Oct-05 18:14
Jose Lamas Rios5-Oct-05 18:14 
QuestionWriting Http msgs to LOG file Pin
aman20065-Oct-05 14:20
aman20065-Oct-05 14:20 
AnswerRe: Writing Http msgs to LOG file Pin
enjoycrack5-Oct-05 15:14
enjoycrack5-Oct-05 15:14 
GeneralRe: Writing Http msgs to LOG file Pin
aman20065-Oct-05 15:58
aman20065-Oct-05 15:58 
AnswerRe: Writing Http msgs to LOG file Pin
Jose Lamas Rios5-Oct-05 18:01
Jose Lamas Rios5-Oct-05 18:01 
QuestionCDialog::OnCancel or postmessage(wm_cancel) Pin
valerie995-Oct-05 12:28
valerie995-Oct-05 12:28 
AnswerRe: CDialog::OnCancel or postmessage(wm_cancel) Pin
enjoycrack5-Oct-05 15:18
enjoycrack5-Oct-05 15:18 
Generalthe app crashes when it called onCancle() Pin
valerie996-Oct-05 4:22
valerie996-Oct-05 4:22 
GeneralRe: the app crashes when it called onCancle() Pin
enjoycrack6-Oct-05 10:38
enjoycrack6-Oct-05 10:38 
QuestionPlease, stop crashing! *createremotethread() Pin
GreenLantern5-Oct-05 11:46
GreenLantern5-Oct-05 11:46 
AnswerRe: Please, stop crashing! *createremotethread() Pin
Jose Lamas Rios5-Oct-05 18:26
Jose Lamas Rios5-Oct-05 18:26 
GeneralRe: Please, stop crashing! *createremotethread() Pin
GreenLantern6-Oct-05 9:16
GreenLantern6-Oct-05 9:16 

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.