已知一窗口的句柄,问可以通过哪些api函数得到该窗口的哪些属性特征?(100分)

  • 主题发起人 主题发起人 benbenma
  • 开始时间 开始时间
B

benbenma

Unregistered / Unconfirmed
GUEST, unregistred user!
每得到一个属性10分,多多益善,送完为止
 
LONG GetWindowLong(<br><br>&nbsp; &nbsp; HWND hWnd, // handle of window<br>&nbsp; &nbsp; int nIndex // offset of value to retrieve<br>&nbsp; &nbsp;); <br>&nbsp;<br>BOOL GetWindowRect(<br><br>&nbsp; &nbsp; HWND hWnd, // handle of window<br>&nbsp; &nbsp; LPRECT lpRect // address of structure for window coordinates<br>&nbsp; &nbsp;); <br>&nbsp;<br>BOOL GetWindowPlacement(<br><br>&nbsp; &nbsp; HWND hWnd, // handle of window<br>&nbsp; &nbsp; WINDOWPLACEMENT *lpwndpl // address of structure for position data<br>&nbsp; &nbsp;);<br>
 
1. &nbsp;GetWindowRect(Form1.Handle, WinRect); 得到窗口位置<br><br>2. &nbsp;GetWindowText(Form1.Handle,TheText,TextLen+1); 得到窗口TITLE<br><br>3. &nbsp;GetWindowText(TheParent, TheText, 255); 得到窗口它爹<br><br>4. &nbsp;IsWindowVisible(YourHandle); 得到窗口是否visible<br><br>5. &nbsp;IsZoomed(Form1.Handle); 窗口是否最大化<br><br>6. &nbsp;(IsWindowEnabled(YourHandle); 窗口是否EMABLED<br><br>7. &nbsp;给别人剩点分<br><br><br>
 
The following functions are used to create and manage windows. <br><br>AdjustWindowRect<br>AdjustWindowRectEx<br>ArrangeIconicWindows<br>BeginDeferWindowPos<br>BringWindowToTop<br>CascadeWindows<br>ChildWindowFromPoint<br>ChildWindowFromPointEx<br>CloseWindow<br>CreateWindow<br>CreateWindowEx<br>DeferWindowPos<br>DestroyWindow<br>EnableWindow<br>EndDeferWindowPos<br>EnumChildProc<br>EnumChildWindows<br>EnumThreadWindows<br>EnumThreadWndProc<br>EnumWindows<br>EnumWindowsProc<br>FindWindow<br>FindWindowEx<br>GetClientRect<br>GetDesktopWindow<br>GetForegroundWindow<br>GetLastActivePopup<br>GetNextWindow<br>GetParent<br>GetTopWindow<br>GetWindow<br>GetWindowPlacement<br>GetWindowRect<br>GetWindowText<br>GetWindowTextLength<br>GetWindowThreadProcessId<br>IsChild<br>IsIconic<br>IsWindow<br>IsWindowUnicode<br>IsWindowVisible<br>IsZoomed<br>MoveWindow<br>OpenIcon<br>SetForegroundWindow<br>SetParent<br>SetWindowLong<br>SetWindowPlacement<br>SetWindowPos<br>SetWindowText<br>ShowOwnedPopups<br>ShowWindow<br>ShowWindowAsync<br>TileWindows<br>WindowFromPoint<br><br>够不够?
 
o*o,喔噢……这分你也抢,太失身了吧?:)<br><br>由此往下,在跟贴也没分啦!<br>===============FINISH==========
 
呵呵,歪兄,我还真想失一回身哪。
 
不给歪歪,气死他.....哈哈......(开玩笑,别介意)
 
不是开玩笑,是真的不要给它啊
 
多人接受答案了。
 
啊,真的错了,把y9y的给Pipi.了 &nbsp; :(
 
能不能得到状态栏的内容<br>
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部