![]() |
|
#1
|
|||
|
|||
CPen, and square endsI currently now have Visual C++ installed again on my office computer (in German), but not MSDN. My German Visual C++ gives all the errors in German and I cant understand it.
I would like to construct a CPen object with square ends. Could some kind sole out there possibly show me an example code of how to construct a CPen object that will draw square ended lines rather than round ended lines. |
|
#2
|
|||
|
|||
Re: CPen, and square endsUse ExtCreatePen(..) and put ( PS_GEOMETRIC | PS_ENDCAP_SQUARE) as first parameter.
|
|
#3
|
|||
|
|||
Re: CPen, and square endsThank you for the information. I managed last night to find an english version of MS Visual C++ and so I could see what the exceptions were all about. Just one point, it looked like if you didnt specify PS_GEOMETRIC it would default to PS_COMESTIC and any line width greater than 1 would then throw an exception.
Anyway got it to work and thanks for the advice. Regards Dominic Now back to the German Visual C++ at work, Got im Hemel ! |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The