getcapture的使用

dfatfat 2011-07-26 11:41:12
如何使用这个函数能?
#include <stdio.h>
#include <windows.h>
int main ()
{
HWND h;
Sleep(3000);
h=GetCapture();
printf("%d",h);
getchar();
return 0;
}
假如 打开了记事本 为什么没有得到窗口句柄呢?
...全文
125 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dfatfat 2011-07-26
  • 打赏
  • 举报
回复
原来是这样谢谢
呔妖怪来嘛 2011-07-26
  • 打赏
  • 举报
回复
setcapture可不是setfoucus, 是捕捉(占用)鼠标(信息),这是一个操作, 你没做setcapture处理,自然GetCapture不到,而我们一般选中窗口,只是setfocus而已!
dfatfat 2011-07-26
  • 打赏
  • 举报
回复
没有捕捉的鼠标???
那么如何才能 捕捉到呢?
谢谢
呔妖怪来嘛 2011-07-26
  • 打赏
  • 举报
回复
A NULL return value does not mean no other thread or process in the system has captured the mouse; it just means the current thread has not captured the mouse.

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧