10.11.2005, 11:38
общий
это ответ
Здравствуйте, X3m!
Получение клиентской области окна
BOOL GetClientRect( HWND hWnd,
LPRECT lpRect
);
Она фактически определяет размеры клиентской области
Получение экранных координат окна
BOOL GetWindowRect( HWND hWnd,
LPRECT lpRect
);
Для того, чтобы определить ширину заголовка, необходимо от ширины окна отнять ширину клиентской области
Желаю удачи
Приложение:
BOOL GetClientRect( HWND hWnd, LPRECT lpRect);ParametershWnd[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. ------------------------------------------------------------------------------BOOL GetWindowRect( HWND hWnd, LPRECT lpRect);ParametershWnd[in] Handle to the window. lpRect[out] Pointer to a structure that receives the screen coordinates of the upper-left and lower-right corners of the window.