我在客户区画了好多东西,记得有个函数是直接清空的??
解决方案 »
- MFC中如何将图片缩放(100分)
- 请教如何做一个类似matlab中的命令窗口的界面,就是只有一个输入行是活动的
- WM_NCCALCSIZE的问题
- 创建工程时选错了语言怎么办??????
- 窗口销毁问题
- !!!!!!!!!!!!!!!!!!!!!!高薪聘请VC人才!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 调用vc做的activex,需要在程序和控件间传递数据
- 那位仁兄用过 installation system 请告诉我怎样设置才能使我的应用程序出现在“开始”菜单里 小弟急用
- 这2台机器该怎么实现互相通讯?
- 请-=-=-=天刹孤星=-=-=-=-老兄进来,兄弟有一问题实在累人!!!
- 《医院信息系统基本功能规范》
- 哪位老大可以给我一个屏蔽win2000以上系统的dll搞定送分100
GetClientRect(&rt);
pDC->FillRect(rt,RGB(255,255,255));
{
HDC hdc;
PAINTSTRUCT ps; // Start a paint session, and create a Graphics object.
hdc = BeginPaint(hWnd, &ps);
Graphics graphics(hdc); // Clear the screen with a teal background.
graphics.Clear(Color::Teal);...........................here //End the paint session.
EndPaint(hWnd, &ps);
}
那个graphics.Clear(Color::Teal);...........................here
不能通过?
CRect rect(0,0,100,150);
int x1 = rand() %rect.right;
int x2 = rand() %rect.right;
int y1 = rand() %rect.bottom;
int y2 = rand() %rect.bottom;
CClientDC dc(NULL);
CBrush brush(RGB(rand()% 255,rand()%255,rand()%255));
CBrush* pOldBrush = dc.SelectObject(&brush);
dc.Ellipse(min( x1,x2),min( y1,y2 ),max( x1,x2 ), max( y1,y2 ));
dc.SelectObject(pOldBrush);
谢谢楼上的,和楼下的。