void CMyView::OnDraw(CDC *pDC)
{
CRect rectClient;
GetClientRect(rectClient);
pDC->SetMapMode(MM_ANISOTROPIC);
pDC->SetWindowExt(1000,1000);
pDC->SetViewportExt(rectClient.right,-rectClient.bottom);
pDC->SetViewOrg(rectClient.right/2,rectClient.bottom/2);
pDC->Ellipse(CRect(-500,-500,500,500));
问:-rectClient.bottom用正的也对(第七行)为什么?
问:将最后一行换成(-500,500,500,-500)也对为什么?
{
CRect rectClient;
GetClientRect(rectClient);
pDC->SetMapMode(MM_ANISOTROPIC);
pDC->SetWindowExt(1000,1000);
pDC->SetViewportExt(rectClient.right,-rectClient.bottom);
pDC->SetViewOrg(rectClient.right/2,rectClient.bottom/2);
pDC->Ellipse(CRect(-500,-500,500,500));
问:-rectClient.bottom用正的也对(第七行)为什么?
问:将最后一行换成(-500,500,500,-500)也对为什么?
解决方案 »
- html 转 图片
- Directshow网络传输系统的问题
- 为什么我的工具栏按钮显示不下的时候总是一起消失的?
- 对CList这样序列化为何错??
- 用ShellExecute打开了一指定文件夹,但如何再把该文件夹关闭?
- !!!懂vb+vc的高手看看过来:在dll中如何定义一个能被vb调用的函数,并且这个函数的返回值类型是LPCSTR(const char*) ????
- 说实话,“室友、系里的师兄或者同事”给你的技术上的帮助大吗?
- SetDCPenColor//这个函数怎么用?下面使用有问题吗?
- NT服务的ADO访问出错!!大侠们,救命呀!
- 如何杀死一个VxD
- 数据库操作时出现游标错误,什么原因呀?
- void指针的疑问
pDC->SetViewportExt(rectClient.right,-rectClient.bottom);
pDC->SetViewportExt(rectClient.right,rectClient.bottom);
比较一下