|
-
February 17th, 2006, 05:01 AM
#1
Unclear on HDC and SelectObject
Hi people,
Im currently working on a project that requires me to change the font. Im using
Code:
SelectObject(hdc, GetStockObject(ANSI_FIXED_FONT));
to do this and it works great.
The msdn states the following:
"This function returns the previously selected object of the specified type. An application should always replace a new object with the original, default object after it has finished drawing with the new object."
I do not understand why it is neccary to replace the object with the original, whats not helping is that some examples i look at do replace the original back and others dont.
Could someone help me with this?
Thanks very much!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|