AfxAbort---无条件的终止一个应用程序。
AfxBeginThread--创建并执行线程。
AfxEndThread--终止当前执行的线程。
AfxMessageBox--显示windows消息框
AfxGetApp--获得指向应用程序对象的指针。
AfxGetAppName--get the name of the application
AfxGetMainWnd---get the pointer to the main window of the application
AfxGetInstanceHandle--get the handle of current application
AfxRegisterWndClass---register the custom wndclass for MFC
注意:在MFC中,每个对象都包含了对象的句柄。
常用设备描述表类:
CClientDC dc(this--null)-----客户区设备描述表
CWindowDC dc(null)---注意null的特殊用途---屏幕DC---屏幕抓图就可以用到**********************
CPaintDC dc(this)---只能在MFC的OnPaint消息处理函数中使用。
CMetaFileDC---向GDI元文件画图