bil Familiar Face
Joined: 27 Mar 2007 Posts: 26
|
Posted: Fri May 18, 2007 4:18 am Post subject: screen system metrics |
|
|
I want to emulate win32 GetSystemMetrics for the followings,
screen width, screen height,
x logical unit, y logical unit,
cxborder, cyborder, [window border width and height
cxfixedframe, cyfixedframe, [bold border width and height
cxframe, cyframe, [border width and height
cycaption, cymenu, [height of window caption and menu
desktop x, desktop y, [origin of desktop
desktop w, desktop h [ exclude taskbar
[screen width, screen height] is OK now
[x logical unit, y logical unit] ignore for now
others are pixel width or height , eg on my 800x600 screen,
screen width, screen height, => 800 600
x logical unit, y logical unit, => 8 16
cxborder, cyborder, => 1 1
cxfixedframe, cyfixedframe, => 3 3
cxframe, cyframe, => 4 4
cycaption, cymenu, => 19 19
desktop x, desktop y, => 0 0
desktop w, desktop h => 800 570
detail please refer to http://msdn2.microsoft.com/en-us/library/ms724385.aspx
any idea how to do it in gtk? |
|