Picture of triangles and rectangular VC code in OnDraw

zhaozj2021-02-16  77

I have a good food, staying after doing:

Draw a triangle VC code:

CPEN NewPen (ps_dashdotdot, 2, (colorref) 0);

PDC-> SelectObject (& newpen); PDC-> MoveTo (110, 110); PDC-> LineTo (110, 10); PDC-> Lineto (110, 120, 120); PDC-> Lineto (10, 10); PDC-> SelectStockObject (Black_pen );

Painted rectangular VC code:

Crush Brush (RGB (255, 0)); CRECT Rect; getClientRect (& Re); PDC-> Textout (0, Rect.Bottom, "Bottom"); PDC-> Textout (0, Rect.Left, "Left "); PDC-> FillRect (CRECT (Rect.Left 112, Rect.top 112, Rect.right-112, Rect.Height () - 112), & brush); brush.deleteObject ();

转载请注明原文地址:https://www.9cbs.com/read-13212.html

New Post(0)