Size of a window
-
HWND hWnd; After that declaration, please, how can I find the total outside size of the current window including the window's frames and menu and any scroll bars etc, not only the window's available area for writing text and images in?
-
HWND hWnd; After that declaration, please, how can I find the total outside size of the current window including the window's frames and menu and any scroll bars etc, not only the window's available area for writing text and images in?
Once you have the window handle, you just call GetWindowRect[^]
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
HWND hWnd; After that declaration, please, how can I find the total outside size of the current window including the window's frames and menu and any scroll bars etc, not only the window's available area for writing text and images in?
There are some window functions you can use: [Window Functions (Windows)](https://msdn.microsoft.com/en-us/library/windows/desktop/ff468919(v=vs.85).aspx)
-
There are some window functions you can use: [Window Functions (Windows)](https://msdn.microsoft.com/en-us/library/windows/desktop/ff468919(v=vs.85).aspx)
Thanks. SetWindowPos() sets up a window, and needs the desired total window size including borders and scroll bars etc. Can I find easily the values of the needed total window size (say xj and yj) needed to set up a window whose image-and-text area (= client area) is xi * yi)?
-
Thanks. SetWindowPos() sets up a window, and needs the desired total window size including borders and scroll bars etc. Can I find easily the values of the needed total window size (say xj and yj) needed to set up a window whose image-and-text area (= client area) is xi * yi)?