The difference between GetDC and GetWindowDC
来源:互联网 发布:生死时速打字游戏mac 编辑:程序博客网 时间:2024/04/28 08:16
GetDC
The GetDC function retrieves a handle of a display device context (DC) for the client area of the specified window. The display device context can be used in subsequent GDI functions to draw in the client area of the window.
This function retrieves a common, class, or private device context depending on the class style specified for the specified window. For common device contexts, GetDC assigns default attributes to the device context each time it is retrieved. For class and private device contexts, GetDC leaves the previously assigned attributes unchanged.
HDC GetDC(
HWND hWnd // handle of window
);
Parameters
hWnd
Identifies the window whose device context is to be retrieved.
GetWindowDC
The GetWindowDC function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. A window device context permits painting anywhere in a window, because the origin of the device context is the upper-left corner of the window instead of the client area.
GetWindowDC assigns default attributes to the window device context each time it retrieves the device context. Previous attributes are lost.
HDC GetWindowDC(
HWND hWnd // handle of window
);
Parameters
hWnd
Identifies the window with a device context that is to be retrieved.
- The difference between GetDC and GetWindowDC
- The difference between (()) and ().
- the difference between "./" and "sh"
- the difference between the SOURCELIBS and TARGETLIBS
- The difference between Const and ReadOnly
- The difference between Failure and Success
- The difference between Process and Procedure
- The difference between Chinese and American
- The difference between J2ee and Ruby
- The difference between SendMessage and PostMessage
- The difference between lint and gcc
- The difference between sizeof and strlen
- The Difference Between Internet, Intranet, and Extranet
- The difference between CLOCK_MONOTONIC and CLOCK_REALTIME
- The difference between UTF8 and AL32UTF8
- Learn the difference between SCSI and IDE
- the difference between substr and substrb
- The difference between NAS and SAN
- 关于新技术的一点看法
- POSTSQL
- 在VC6的工程中加入播放xm音乐的功能
- 教你27招,让你在社交,职场上人人对你刮目相看
- Asp.net中Split函数的应用及注意事项。
- The difference between GetDC and GetWindowDC
- Flex 2 扩展DataGrid实现行与列的自动合计
- Flash cs3 第二天
- sql2000的游标
- 评“最牛B”程序员招聘广告与“大学生搓澡工”两事件
- 系统盘垃圾清理(XP版)
- Web Service: UDDI之JUDDI配置
- 正则表达式
- 读 有感