zoukankan      html  css  js  c++  java
  • 获取鼠标点窗口句柄

    /* The GetCursorPos function retrieves the cursor's position, in screen coordinates. */
          BOOL GetCursorPos(
                       LPPOINT &point
                        );

    /* The WindowFromPoint function retrieves a handle to the window that contains the specified point. */
          HWND WindowFromPoint(
                               POINT point
                              );

    /*The GetWindow function retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window. */
          HWND GetWindow(
                         HWND hWnd,
                         UINT    uCmd                    //通过把uCmd代码设置为GW_HWNDNEXT来获取兄弟窗口的句柄
                        );    

    /*
    *
    * Copyright (c) 2011 Ubunoon.
    * All rights reserved.
    *
    * email: netubu#gmail.com replace '#' to '@'
    * http://www.cnblogs.com/ubunoon
    * 欢迎来邮件定制各类验证码识别,条码识别,图像处理等软件
    * 推荐不错的珍珠饰品,欢迎订购 * 宜臣珍珠(淡水好珍珠) */
  • 相关阅读:
    MySQL5.7初始密码查看及重置
    ps top kill
    Linux基础知识[2]【延迟及定时机制】
    大数加减运算
    字符串分隔
    打印NxN的矩阵
    交叉排序
    去除重复字符并排序
    大数求差——(华为实习招聘机试题)
    图解TCP-IP协议
  • 原文地址:https://www.cnblogs.com/ubunoon/p/2058926.html
Copyright © 2011-2022 走看看