VC++ GetClientRect
来源:互联网 发布:versapro编程软件下载 编辑:程序博客网 时间:2024/06/14 05:58
The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).
Syntax
BOOL GetClientRect(
HWND hWnd, LPRECT lpRect);
Parameters
- hWnd
- [in] Handle to the window whose client coordinates are to be retrieved.
- lpRect
- [out] Pointer to a RECT structure that receives the client coordinates. The left and top members are zero. The right and bottom members contain the width and height of the window.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
In conformance with conventions for the RECT structure, the bottom-right coordinates of the returned rectangle are exclusive. In other words, the pixel at (right, bottom) lies immediately outside the rectangle.
Example
For example, see Creating, Enumerating, and Sizing Child Windows.
- VC++ GetClientRect
- GetClientRect
- GetClientRect
- VC++中的GetWindowRect,GetClientRect,ScreenToClient , ClientToScreen();
- VC|MFC学习笔记十一:GetWindowRect()和GetClientRect();OnPaint()和OnDraw()等
- mfc vc vs 一个控件贴到另一个控件的位置上,GetWindowRect,GetClientRect
- GetClientRect 函数
- GetClientRect, GetWindowRect
- GetWindowRect,GetClientRect
- GetWindowRect GetClientRect
- GetClientRect / ClientToScreen
- GetWindowRect & GetClientRect
- ::GetWindowRect ::GetClientRect
- GetWindowRect GetClientRect
- ScreenToClient GetClientRect
- GetClientRect用法
- GetClientRect & GetWindowRect 区别
- GetClientRect,ClientToScreen,ClipCursor
- 我要自救
- VC++ SetForegroundWindow
- 推荐一个好的文献查阅网站,速度很快,可以赚金币,比较好玩
- VC++ CreateWindowEx
- VC++ EnumChildWindows
- VC++ GetClientRect
- VC++ ShowWindow
- VC++ ShowOwnedPopups
- VC++ STARTUPINFO Structure
- VC++ AnimateWindow
- Windows 端口
- VC++ Window Styles
- VC++ UpdateLayeredWindowIndirect
- VC++ SendInput