Two noob questions on GDI
-
Hello everyone! Here are my questions: 1) When drawing ellipses, rectangles, lines, et cetera, how do you select a color? I can't use SetDCPenColor() because they're not supported on Win9x/ME. And I'm on Win3.1. :) 2) How do you free memory from a HBITMAP? Thanks in advance!
Windows Calculator told me I will die at 28. :(
-
Hello everyone! Here are my questions: 1) When drawing ellipses, rectangles, lines, et cetera, how do you select a color? I can't use SetDCPenColor() because they're not supported on Win9x/ME. And I'm on Win3.1. :) 2) How do you free memory from a HBITMAP? Thanks in advance!
Windows Calculator told me I will die at 28. :(
Lord Kixdemp wrote:
- When drawing ellipses, rectangles, lines, et cetera, how do you select a color?
Create a pen and a brush. Select them into the DC you're going to draw on. The pen will be used for the outline, the brush for the interior.
Lord Kixdemp wrote:
- How do you free memory from a HBITMAP?
DeleteObject() Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Lord Kixdemp wrote:
- When drawing ellipses, rectangles, lines, et cetera, how do you select a color?
Create a pen and a brush. Select them into the DC you're going to draw on. The pen will be used for the outline, the brush for the interior.
Lord Kixdemp wrote:
- How do you free memory from a HBITMAP?
DeleteObject() Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
I dont know why you got vote 3?
-
I dont know why you got vote 3?
Doesn't matter to me. If the OP needs more info then (s)he's free to ask. Explaining all of the basics of GDI (which is well documented) here is kind of beyond the scope of this forum. :) Cheers, Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I dont know why you got vote 3?
Mark replied my question in its entirety, I don't know why someone voted 3... I didn't even know there was a voting system until Hamid said that and I figured it out. o_O *Is voting... takes some time*
Windows Calculator told me I will die at 28. :(
-
Mark replied my question in its entirety, I don't know why someone voted 3... I didn't even know there was a voting system until Hamid said that and I figured it out. o_O *Is voting... takes some time*
Windows Calculator told me I will die at 28. :(
Yeah you can of 1 to 5 give to someone (like 5 to me:laugh:)
-
Yeah you can of 1 to 5 give to someone (like 5 to me:laugh:)
Do you like, win something with high scores? ;P
Windows Calculator told me I will die at 28. :(
-
Do you like, win something with high scores? ;P
Windows Calculator told me I will die at 28. :(
For win we need to write a good article and submit it on the codeproject.(I told you because it's first time that you are using of vote so I was thinking you start with 5:-D Except it I like to ask a question of you whats the meaning of your Signature I saw it already?
-
For win we need to write a good article and submit it on the codeproject.(I told you because it's first time that you are using of vote so I was thinking you start with 5:-D Except it I like to ask a question of you whats the meaning of your Signature I saw it already?
Good article? Hmm... I've got a great idea in mind. So what prize do you win? :) And, exactly how you read it - the Windows calculator told me I'll die at age 28. I was doing experiments with my age, date of birth and other similar stuff on it, and it suddenly came up with that number... The thing is, a couple of months before that a friend told me the same thing. Coincidence or reality? Only destiny will know... :laugh::laugh:
Windows Calculator told me I will die at 28. :(
-
Good article? Hmm... I've got a great idea in mind. So what prize do you win? :) And, exactly how you read it - the Windows calculator told me I'll die at age 28. I was doing experiments with my age, date of birth and other similar stuff on it, and it suddenly came up with that number... The thing is, a couple of months before that a friend told me the same thing. Coincidence or reality? Only destiny will know... :laugh::laugh:
Windows Calculator told me I will die at 28. :(
Lord Kixdemp wrote:
Good article? Hmm... I've got a great idea in mind.
Good luck.
Lord Kixdemp wrote:
Coincidence or reality? Only destiny will know
I dont like think to it I am because I can think.;)