Hi,
I want to improve wineconsole a little, max hor and vert console window dimensions. To achieve this, I need to know maximum available size of window on the desktop. The simpliest way I found is to use GetMonitorInfo, but it does not take into account desktop panels. As the result, maximized window fills entire desktop, overlapping with KDE panel.
So the question: is there such function, smth like GetMaxWindowSizeWithoutDesktopPanels, which clips panels?
Thanks in advance
-- Kirill
P.S. Application which uses this - Far Manager
Kirill K. Smirnov wrote:
Hi,
I want to improve wineconsole a little, max hor and vert console window dimensions. To achieve this, I need to know maximum available size of window on the desktop. The simpliest way I found is to use GetMonitorInfo, but it does not take into account desktop panels. As the result, maximized window fills entire desktop, overlapping with KDE panel.
I think that will help you GetSystemMetrics() with SM_CXFULLSCREEN and SM_CYFULLSCREEN but I did not verify it. Sorry if I shall be not right.
So the question: is there such function, smth like GetMaxWindowSizeWithoutDesktopPanels, which clips panels?
Thanks in advance
-- Kirill
P.S. Application which uses this - Far Manager
I think that will help you GetSystemMetrics() with SM_CXFULLSCREEN and SM_CYFULLSCREEN but I did not verify it. Sorry if I shall be not right.
Or SystemParametersInfo() with SPI_GETWORKAREA will help you (http://msdn2.microsoft.com/en-us/library/ms724947.aspx)