[2 functions in VC ] getDLGITEM (); // Get pointer to CWND, getDLGCTRLGCTLGCTRLID () by ID; // CWND pointer to get its ID [special line function] linedda () [get the brush or painting Location] getCurrentPosition () setrop2 () // Setting drawing mode setbkmode (hdc, int) // Opaque, Transparent (transparent) setbkcolor () getBkmode () getBkcolor () LINTTO () // Does not include the last point Rectangle () / / The boundary does not include the line where the coordinate is located. Other drawing functions are also such ruggect () // corners are circular [polygonal function] There are 2: polygon () and PolyPolygon () how two specific fills are decided by filling mode (with setPolyfillMode () to set : Alternate and WinDing. Alternate: (for the default fill mode): Fill only the area that overlaps the odd number (there is at least one side of the area) WINDING: Pack all closed areas (I think the above statement must be wrong, above Cai Mingzhi "Windows programming, drawings" - use BCB Chapter 4 graphics drawing, Window program is not said to be said) [Paint Brush] 1 Createsolidbrush () // Single Color 8 * 8 bit image 2 CreateHatchBrush () // pattern type brush 3 CreatePatternBrush () // a 8 * 8-bit image, but also LoadBitmap charged, may be the CreateBitmap () or CreateBitmapIndirect () or CreateCompatible () Create, 4 CreateDIBPatternBrush (hPackedDIB, Wusage); HPACKEDDIB is a globalhandle type variable, which is a single memory configured by GlobalAlloc. Wusage determines the color table of bitmaps that use the palette index value or the actual index value. 5 CreateBrushIndirect (lpLogBrush); usage and CreatePenIndirect, () as [region Region] CreateRectRgn () / CreateEllipseRgn () / CreateRectRgnIndirect () / CreateEllipseRgnIndirect () / CreateRoundRectRgn () / CreatePolygonRgn () / CreatePolyPolygonRgn () / composition: CombineRgn () [ Palette] CreatePalette (); / selectpalette () / realizepalette () / then uses the cable to use the PaletteIndex () / Palettergb (): Select the color value