Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Getting size of root window

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Getting size of root window
#4981
Posted by: nicksteck 2004-08-13 03:18:39
Hello,

How do I go about getting the size of the root window (1024x768 for example)?



Thanks so much.
Message2. Re: Getting size of root window
#5016
Posted by: 2004-08-25 04:10:41
Hi nicksteck,

I'm not sure for linux systems, but in windoze you can use API calls such as GetDesktopWindow() etc.. alternative: GetSystemInfo with SPI_GETWORKAREA param, which would get you the work area without the taskbar.

good luck in the quest! (-:
Message3. Re: Getting size of root window
#5017
Posted by: guidance 2004-08-25 10:33:56
Try wxDisplay?
http://g.yi.org/f.php?f=8255
Message4. Re: Getting size of root window
#5023
Posted by: upCASE 2004-08-25 19:22:56
Hi!
Check wxSystemSettings::GetMetric() with wxSYS_SCREEN_X and wxSYS_SCREEN_Y options.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message5. Re: Getting size of root window
#5059
Posted by: nicksteck 2004-09-09 05:52:38
wxSystemSettings::GetMetric works great! Thanks so much.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,290.00 ·
 
 
¥918.00 ·
 
 
¥890.00 ·
 
 
¥294.00 ·
 
 
¥430.00 ·
 
 
¥1,380.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0