Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to gray out a control Pin
Robert Palma Jr.1-Feb-06 5:59
Robert Palma Jr.1-Feb-06 5:59 
QuestionVS2005 Compiles Wrong Files Pin
Swinefeaster31-Jan-06 6:18
Swinefeaster31-Jan-06 6:18 
QuestionSTL conflict Pin
eddyroth31-Jan-06 4:26
eddyroth31-Jan-06 4:26 
QuestionWhat is the difference between HANDLE and HWND ? Pin
wicked weasel31-Jan-06 4:20
wicked weasel31-Jan-06 4:20 
QuestionExplaination needed.. Pin
wicked weasel31-Jan-06 4:18
wicked weasel31-Jan-06 4:18 
QuestionWhat is the difference between HANDLE and HWND ? Pin
unknown**person31-Jan-06 4:10
unknown**person31-Jan-06 4:10 
AnswerRe: What is the difference between HANDLE and HWND ? Pin
wicked weasel31-Jan-06 4:21
wicked weasel31-Jan-06 4:21 
AnswerRe: What is the difference between HANDLE and HWND ? Pin
Dethulus31-Jan-06 4:23
Dethulus31-Jan-06 4:23 
Well that's basically it. An HWND is used to reference API functions that relate to Windows, everything from message processing to device contexts, etc. HWND and HANDLE are not interchangable, although as data types the value of one can certainly be assigned to the other.

The purpose of each is very similar. When you use CreateWindow, the operating system allocates an area that references that Window's characteristics, but essentially puts that area in a "black box", providing access to it through API calls, but not as a direct structure. This gives the writers of the operating system (Microsoft, in this case) the flexibility to change that internal structure any way they want to in the future without impacting the behavior of applications that use it. They only have to change the implementation of the function hooks. Essentially this practice (and other types of handles) was one of the first large-scale implementations of object oriented encapsulation.

Just my thoughts...

-Dethulus
QuestionMemory DC Pin
masnu31-Jan-06 4:10
masnu31-Jan-06 4:10 
AnswerRe: Memory DC Pin
Dethulus31-Jan-06 8:21
Dethulus31-Jan-06 8:21 
GeneralRe: Memory DC Pin
Ryan Binns31-Jan-06 17:36
Ryan Binns31-Jan-06 17:36 
GeneralRe: Memory DC Pin
Dethulus1-Feb-06 1:18
Dethulus1-Feb-06 1:18 
GeneralRe: Memory DC Pin
Ryan Binns1-Feb-06 1:23
Ryan Binns1-Feb-06 1:23 
QuestionHow to know programmatically if network cable is connected or not? Pin
Amarelia31-Jan-06 2:22
Amarelia31-Jan-06 2:22 
AnswerRe: How to know programmatically if network cable is connected or not? Pin
David Crow31-Jan-06 3:27
David Crow31-Jan-06 3:27 
GeneralRe: How to know programmatically if network cable is connected or not? Pin
Amarelia1-Feb-06 8:05
Amarelia1-Feb-06 8:05 
AnswerRe: How to know programmatically if network cable is connected or not? Pin
M.Mehrdad.M31-Jan-06 4:05
M.Mehrdad.M31-Jan-06 4:05 
GeneralRe: How to know programmatically if network cable is connected or not? Pin
Amarelia1-Feb-06 8:07
Amarelia1-Feb-06 8:07 
AnswerRe: How to know programmatically if network cable is connected or not? Pin
bob1697231-Jan-06 8:43
bob1697231-Jan-06 8:43 
GeneralRe: How to know programmatically if network cable is connected or not? Pin
Amarelia1-Feb-06 8:09
Amarelia1-Feb-06 8:09 
JokeRe: How to know programmatically if network cable is connected or not? Pin
Balon Fan22-Jun-08 1:43
Balon Fan22-Jun-08 1:43 
QuestionChanging Views in SplitterWindow-Panes Pin
hever31-Jan-06 2:04
hever31-Jan-06 2:04 
QuestionRe: Changing Views in SplitterWindow-Panes Pin
David Crow31-Jan-06 3:34
David Crow31-Jan-06 3:34 
GeneralRe: Changing Views in SplitterWindow-Panes Pin
hever31-Jan-06 7:52
hever31-Jan-06 7:52 
QuestionRe: Changing Views in SplitterWindow-Panes Pin
hever31-Jan-06 8:46
hever31-Jan-06 8:46 

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.