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

 

    摘要: handle ddbtodib( hbitmap bitmap) { bitmap bm; bitmapinfoheader bi; lpbitmapinfoheader lpbi; dword dwlen; handle hdib; handle handle; hdc hdc; hpalette hpal; hpal =......
    摘要: 理论: getdesktopwindow是取得代表整个屏幕的窗口的句柄。 windowfrompoint是取得包含指定点的窗口的句柄。 要是把鼠标指针放在桌面,用getcursorpos取得鼠标的位置点,后用windowfrompoint取得此时 鼠标位置点的窗口的句柄。应该和getdesktopwindow取得的句柄应该是相同的。 测试: 在form1上放二个edit,一个button.......


如何判断自己程序的窗口是否是顶层窗口

同标题

NO.1   作者: JennyVenus

try   GetLevelWindow

NO.2   作者: maoxianwang

请发消息给板主吧  
   
  GetCurrentProcess看看是不是你的程序,如果是,呵呵

NO.3   作者: lightwell

HWND   GetForegroundWindow(VOID);  
 


 ·救火    »显示摘要«
    摘要: hbitmap hbmp; cfiledialog fileopen(true,null,null,ofn_hidereadonly|ofn_overwriteprompt,"*.bmp|*.bmp|*.jpg|*.jpg||",null); if(fileopen.domodal()) { cstring filename = fileopen.getpathnam......
» 本期热门文章:

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