GetDC 与 释放DC
2008-11-06 09:23
162 查看
{
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
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
相关文章推荐
- GetDC 与 释放DC
- 用getDC(0)获得屏幕DC后,如何释放. 得到电脑屏幕的宽和高
- 【MFC学习】显示DC不释放导致出现异常
- DC释放的问题
- GetDC()没有释放造成的后果
- VC++ - 各种DC及DC资源释放
- 在DC操作中SelectObject后要注意释放内存
- 获取桌面DC: GetDC(GetDesktopWindow())与GetDC(NULL)
- 释放二维数组
- 防止handle忘记关闭,或者被关闭多次,以及防止内存忘记释放,或者释放多次
- 程序崩溃--内存访问及申请释放
- linux下删除文件不释放空间怎么办?
- 请手动释放你的资源
- 时间管理之释放大脑
- Oracle表卡、表锁、空间不释放解决方法
- oracle killed会话不释放的问题。
- <整理>:进程动态请求和释放内存(待)
- C++:删除map元素,当value值为指针时,如何释放内存。
- LINUX释放内存
- C# 释放excel 杀掉excel 而其它Excel进程则相安无事