## wxSystemOptions

wxSystemOptions stores option/value pairs that wxWindows itself or applications can use to alter behaviour at run-time. It can be used to optimize behaviour that doesn't deserve a distinct API, but is still important to be able to configure.

These options are currently recognised by wxWindows:

Option | Value
no-maskblt | 1 to never use WIN32's MaskBlt function, 0 to allow it to be used where possible. Default: 0. In some circumstances the MaskBlt function can be slower than using the fallback code, especially if using DC cacheing. By default, MaskBlt will be used where it is implemented by the operating system and driver.

The compile-time option to include or exclude this functionality is wxUSE_SYSTEM_OPTIONS.

Derived from

wxObject

Include files

<wx/sysopt.h>

Members

wxSystemOptions::wxSystemOptions
wxSystemOptions::GetOption
wxSystemOptions::GetOptionInt
wxSystemOptions::HasOption
wxSystemOptions::SetOption

### wxSystemOptions::wxSystemOptions

wxSystemOptions()

Default constructor. You don't need to create an instance of wxSystemOptions since all of its functions are static.

### wxSystemOptions::GetOption

wxString GetOption(const wxString& name) const

Gets an option. The function is case-insensitive to name.

See also

wxSystemOptions::SetOption, wxSystemOptions::GetOptionInt, wxSystemOptions::HasOption

### wxSystemOptions::GetOptionInt

int GetOptionInt(const wxString& name) const

Gets an option as an integer. The function is case-insensitive to name.

See also

wxSystemOptions::SetOption, wxSystemOptions::GetOption, wxSystemOptions::HasOption

### wxSystemOptions::HasOption

bool HasOption(const wxString& name) const

Returns TRUE if the given option is present. The function is case-insensitive to name.

See also

wxSystemOptions::SetOption, wxSystemOptions::GetOption, wxSystemOptions::GetOptionInt

### wxSystemOptions::SetOption

void SetOption(const wxString& name, const wxString& value)

void SetOption(const wxString& name, int value)

Sets an option. The function is case-insensitive to name.

See also

wxSystemOptions::GetOption, wxSystemOptions::GetOptionInt, wxSystemOptions::HasOption