flat assembler
Message board for the users of flat assembler.
Index
> Windows > How to get avaible area of the desktop? |
Author |
|
decard 26 Oct 2003, 14:24
Does anybody have an idea how do do it? By avaible area I mean coordinates (a RECT?) of the desktop area without the taskbar.
|
|||
26 Oct 2003, 14:24 |
|
comrade 26 Oct 2003, 17:12
GetSystemMetrics, SM_CXFULLSCREEN, SM_CYFULLSCREEN
|
|||
26 Oct 2003, 17:12 |
|
Vortex 26 Oct 2003, 19:36
Code: invoke GetSystemMetrics,SM_CXSCREEN invoke GetSystemMetrics,SM_CYSCREEN _________________ Code it... That's all... |
|||
26 Oct 2003, 19:36 |
|
decard 26 Oct 2003, 20:21
No, they return screen resolution, not the workarea size. And with SystemParametersInfo I can even handle the cases when user has his taskbar on top of the screen
|
|||
26 Oct 2003, 20:21 |
|
scientica 27 Oct 2003, 11:39
Here is the documentation (excerpts actually) in win32.hlp under GetSystemMetrics:
Quote: SM_CXFULLSCREEN, SM_CYFULLSCREEN And here's some parts from the SystemParametersInfo section: Quote: SPI_GETWORKAREA _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
27 Oct 2003, 11:39 |
|
decard 27 Oct 2003, 12:52
So all in all, SPI_GETWORKAREA is what I need.
|
|||
27 Oct 2003, 12:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.