陕西电信iptv账号密码:请问HWND窗口句柄到底是什么?

来源:百度文库 编辑:神马品牌网 时间:2024/05/09 06:54:13
请问HWND窗口句柄到底是什么?

Usually, the main information of a handle is an integer index into an internal table. But this is not always true. GDI handles have extra information like object type and a re-use count. Some handles are actually pointers.

There are three major groups of handles:

1) kernel handles, exposed by KERNEL32.DLL. Files, thread, process, ..
2) user handles, exposed by USER32.DLL. Icons, menus, windows, cursors, ...
3) GDI handles, exposed by GDI32.DLL. DC, font, region, DDB, DIB section, pen, brush.

HWND窗体句柄
是指对象的句柄,如在调用windows 的 API 函数 MessageBox时就需要传递一个参数,用于指明是哪个窗口调用了这个函数,一般这时会用 Handle(即当前窗口的句柄)来调用.