GetDC 与 释放DC

来源:互联网 发布:塞浦路斯旅游数据 编辑:程序博客网 时间:2024/05/17 06:41

{

CDC *pDC = pParent->GetDC();

………………

       pParent->ReleaseDC(pDC);

}

 

Unless the device context belongs to a window class, the ReleaseDC member function must be called to release the context after painting. Since only five common device contexts are available at any given time, failure to release a device context can prevent other applications from accessing a device context

原创粉丝点击