惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
IT之家
IT之家
D
DataBreaches.Net
Y
Y Combinator Blog
B
Blog RSS Feed
F
Fortinet All Blogs
GbyAI
GbyAI
V
Visual Studio Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
美团技术团队
L
LangChain Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog

博客园 - apple0809

推箱子 directshow DirectShow 65 410 画图 VARIANT - apple0809 - 博客园 wince 注册 com组件 - apple0809 wince5.0 光标 hdc - apple0809 - 博客园 VS2005 WTL add ATL error! Solution..... 启动exe - apple0809 - 博客园 文件系统 兴趣 兴趣 兴趣。 兴趣 期望
得到dialog的hdc
apple0809 · 2009-11-16 · via 博客园 - apple0809

1.

HDC m_hdc= this->GetDC()->GetSafeHdc(); //this 是当前CDialog的指针,在Initial里面可以用.

2.

CPaintDC dc(this);

dc.GetSafeHdc();//在paint里面可以用这个,dc.GetSafeHdc()既为hdc.