摘要:
请看下面的代码:CDC *pDc=new CClientDC(this);CBrush brush;brush.CreateSolidBrush(RGB(0,255,0));CBrush *pOldBrush = pDc->SelectObject(&brush);pDc->Rectangle(50... 阅读全文
摘要:
OnTimer()其实是用来响应WM_TIMER消息的,其实OnTimer()就是一个回调函数,不过是系统默认的,当用户使用SetTimer()函数设定一个定时器的时候,只要是第三个参数为NULL,则系统就会调用默认的回调函数OnTimer()。若不是NULL,则需要自己编写回调函数。例如://... 阅读全文