Quantcast
Channel: CPaintDC – bits and bytes
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

How to rotate text using WinAPI?

Simple way to rotate a piece of text is to use a font object… Here is a sample which does this… void CSomeDlg::OnPaint() {     CPaintDC dc(this);  // Get existing dlg font     CFont NewFont;...

View Article


Image may be NSFW.
Clik here to view.

Using PS_USERSTYLE for creating funky pens!

Using ExtCreatePen and PS_USERSTYLE you can create funky styled pens instead of the old PS_DOT, PS_DASHDOT, PS_DASHDOTDOT style pens. When using PS_USERSTYLE for creating pens you’ve got specify an...

View Article

Browsing latest articles
Browse All 2 View Live