当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 还有一个文件打开问题,我这里下载啦一本书,我确定它肯定是把一个文件分成好多个小文件,问用什么软件把他们合并,并打开,例如10.001,10.002 ......
 ·双系统问题    »显示摘要«
    摘要: 请问装xp 到c:盘后,再装98到e:盘,然后进 xp 就进不去了,这时是不是应该用xp修复一下就可以了?? 还有, 我的98系统装好后,打开ie弹出对话框,说无法加载intertnet向导相关组件, 无法打开ie,将ie升级到5.5,不行,将98覆盖安装后,还不行!! 请问该如何解决??? ......


如何用程序控制鼠标进行操作,在线等,高分

现也有一个窗口的句柄和这个窗口的设备场景,  
  我想用鼠标在这个窗口的内部坐标XX,YY单击一次  
  在线等待,绝对在您回答完毕后马上给分,多谢

NO.1   作者: enjoyeagle

用mouse_event发送一个消息:  
  mouse_event   MOUSEEVENTF_ABSOLUTE+MOUSEEVENTF_LEFTDOWN,Dx,Dy,0,0  
  其中Dx表示鼠标指针沿x坐标轴方向的位置,Dy表示y方向位置。MOUSEEVENTF_ABSOLUTE指定了Dx和Dy为绝对的屏幕坐标。  
   
  你可以用ClientToScreen将客户区坐标转为绝对坐标。语法如下:  
  BOOL   ClientToScreen(  
      HWND   hWnd,               //   window   handle   for   source   coordinates  
      LPPOINT   lpPoint     //   pointer   to   structure   containing   screen   coordinates  
  );  
     
  Parameters  
  hWnd    
  Handle   to   the   window   whose   client   area   is   used   for   the   conversion.    
  lpPoint    
  Pointer   to   a   POINT   structure   that   contains   the   client   coordinates   to   be   converted.   The   new   screen   coordinates   are   copied   into   this   structure   if   the   function   succeeds.    
  Return   Values  
  If   the   function   succeeds,   the   return   value   is   nonzero.  
  If   the   function   fails,   the   return   value   is   zero  
   
  POINT结构语法:  
  typedef   struct   tagPOINT   {    
          LONG   x;    
          LONG   y;    
  }   POINT;    
   
  x    
  Specifies   the   x-coordinate   of   the   point.    
  y    
  Specifies   the   y-coordinate   of   the   point.  
 


    摘要: class a { public: int addition(int a, int b){ return a+b;} int subtration(int a, int b){ return a-b;} }; class b : private a { public: b(){ a=100; b=50;} int select(bool a) { //a* test = new a; i......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE