Drawing Regions using API 
Author Message
 Drawing Regions using API

Hello,

ive tried to to draw a colored polygon with following code, but it doesnt
works. Could someone help me ?

hRgn = CreatePolygonRgn(Points(0), 6, WINDING)
hDc = GetDC(frm.hwnd)
SelectObject(hDc, hRgn)
hBrush = CreateSolidBrush(vbRed)
SelectObject hDc, hBrush
PaintRgn(hDc, hRgn)
hBrush = CreateSolidBrush(vbBlack)
SelectObject hDc, hBrush
FrameRgn hDc, hRgn, hBrush, 3,3



Sun, 03 Dec 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Problem in drawing & undrawing a region

2. Problem in drawing & undrawing a region

3. Drawing Region in PictureBox

4. Region Drawing

5. Drawing Polygon Filled Region in VB5

6. Persistent Drawing using the API

7. Draw a line using Windows Api

8. Speed of drawing using api/VB

9. Drawing Graphics on screen and printer using api's

10. Drawing Graphics on screen and printer using api's

11. #Region #End Region (code folding)?

12. help...create polygon region API

 

 
Powered by phpBB® Forum Software