The CDC
class offers a series of member functions that correspond
to low-level GDI drawing operations. Among these is the
function FillRect (fills a rectangle with a specific
brush), FillSolidRect (fills a rectangle with a specific
color), FrameRect (draws the borders of a rectangle), and
InvertRect (inverts the interior of a rectangle).
Analogous functions that accept regions as their
parameters are FillRgn,
FrameRgn, and InvertRgn.
Additional
functions include DrawIcon
(draws an icon) and
DrawDragRect (erases and draws a dragging rectangle).
Other simple drawing functions assist in
drawing controls
in various (selected, deselected) states and with various
border settings.
MFC
Example
Note:
UCanCode Advance E-XD++
CAD Drawing and Printing Solution
Source Code Solution for C/C++, .NET V2024 is released!
Contact UCanCode Software
To buy the source code or learn more about with: