您的位置:首页 > 其它

MFC/WIWIndows常用API--1

2007-04-10 21:05 417 查看
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元文件画图
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: