GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Dec 18, 2014 11:07 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: screen system metrics
PostPosted: Fri May 18, 2007 4:18 am 
Offline
Familiar Face

Joined: Tue Mar 27, 2007 8:56 am
Posts: 26
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group