Win32应用程序里用WM_PAINT画图问题
caseWM_PAINT:hdc=BeginPaint(hWnd,&ps);GetMapMode(hdc,MM_ANISOTROPIC);;hPen=CreatePen(...
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
GetMapMode(hdc,MM_ANISOTROPIC); ;
hPen=CreatePen(PS_SOLID , 3 , RGB( 0 , 255 , 0 ));
SelectObject(hdc,hPen);
RoundRect(hdc,50,120,100,200,15,15);
Arc=(hdc,500,500,600,550,600,550,550,500);
DeleteObject(hPen);
EndPaint(hWnd, &ps);
为什么圆角矩形能画出来,但那个椭圆画不出来啊? 展开
hdc = BeginPaint(hWnd, &ps);
GetMapMode(hdc,MM_ANISOTROPIC); ;
hPen=CreatePen(PS_SOLID , 3 , RGB( 0 , 255 , 0 ));
SelectObject(hdc,hPen);
RoundRect(hdc,50,120,100,200,15,15);
Arc=(hdc,500,500,600,550,600,550,550,500);
DeleteObject(hPen);
EndPaint(hWnd, &ps);
为什么圆角矩形能画出来,但那个椭圆画不出来啊? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询