1 /////////////////////////////////////////////////////////////////////////////
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
20 #include "wx/gdicmn.h"
23 #include "wx/settings.h"
24 #include "wx/window.h"
25 #include "wx/os2/private.h"
27 // TODO: see ::SystemParametersInfo for all sorts of Windows settings.
28 // Different args are required depending on the id. How does this differ
29 // from GetSystemMetric, and should it? Perhaps call it GetSystemParameter
30 // and pass an optional void* arg to get further info.
31 // Should also have SetSystemParameter.
32 // Also implement WM_WININICHANGE (NT) / WM_SETTINGCHANGE (Win95)
33 wxColour
wxSystemSettings::GetSystemColour(int index
)
39 wxFont
wxSystemSettings::GetSystemFont(int index
)
44 case wxSYS_DEVICE_DEFAULT_FONT
:
48 case wxSYS_DEFAULT_PALETTE
:
52 case wxSYS_SYSTEM_FIXED_FONT
:
56 case wxSYS_SYSTEM_FONT
:
61 case wxSYS_DEFAULT_GUI_FONT
:
70 // Get a system metric, e.g. scrollbar size
71 int wxSystemSettings::GetSystemMetric(int index
)
75 case wxSYS_MOUSE_BUTTONS
:
108 case wxSYS_HSCROLL_ARROW_X
:
111 case wxSYS_HSCROLL_ARROW_Y
:
123 case wxSYS_ICONSPACING_X
:
126 case wxSYS_ICONSPACING_Y
:
129 case wxSYS_WINDOWMIN_X
:
132 case wxSYS_WINDOWMIN_Y
:
141 case wxSYS_FRAMESIZE_X
:
144 case wxSYS_FRAMESIZE_Y
:
147 case wxSYS_SMALLICON_X
:
150 case wxSYS_SMALLICON_Y
:
153 case wxSYS_HSCROLL_Y
:
156 case wxSYS_VSCROLL_X
:
159 case wxSYS_VSCROLL_ARROW_X
:
162 case wxSYS_VSCROLL_ARROW_Y
:
168 case wxSYS_CAPTION_Y
:
174 case wxSYS_NETWORK_PRESENT
:
177 case wxSYS_PENWINDOWS_PRESENT
:
180 case wxSYS_SHOW_SOUNDS
:
183 case wxSYS_SWAP_BUTTONS
: