wxWidgets获取的操作系统版本号

wxWidgets库识别的操作系统包括:wxOS_MAC_OS、wxOS_MAC_OSX_DARWIN、wxOS_WINDOWS系列、wxOS_UNIX系列等。这些枚举值可组合成标志,用于检查操作系统家族。wxGetOsVersion()和wxPlatformInfo::GetOSMajorVersion()等方法可获取更详细的版本信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

enum wxOperatingSystemId

The following are the operating systems which are recognized by wxWidgets and whose version can be detected at run-time.

The values of the constants are chosen so that they can be combined as flags; this allows checking for operating system families like e.g. wxOS_MAC and wxOS_UNIX.

Note that you can obtain more detailed information about the current OS version in use by checking the major and minor version numbers returned by wxGetOsVersion() or by wxPlatformInfo::GetOSMajorVersion()wxPlatformInfo::GetOSMinorVersion().

Enumerator
wxOS_UNKNOWN 

returned on error

wxOS_MAC_OS 

Apple Mac OS 8/9/X with Mac paths.

wxOS_MAC_OSX_DARWIN 

Apple Mac OS X with Unix paths.

wxOS_MAC 

A combination of all wxOS_MAC_* values previously listed.

wxOS_WINDOWS_9X 

Windows 9x family (95/98/ME)

wxOS_WINDOWS_NT 

Windows NT family (NT/2000/XP/Vista/7)

wxOS_WINDOWS_MICRO 

MicroWindows.

wxOS_WINDOWS_CE 

Windows CE (Window Mobile)

wxOS_WINDOWS 

A combination of all wxOS_WINDOWS_* values previously listed.

wxOS_UNIX_LINUX 

Linux.

wxOS_UNIX_FREEBSD 

FreeBSD.

wxOS_UNIX_OPENBSD 

OpenBSD.

wxOS_UNIX_NETBSD 

NetBSD.

wxOS_UNIX_SOLARIS 

SunOS.

wxOS_UNIX_AIX 

AIX.

wxOS_UNIX_HPUX 

HP/UX.

wxOS_UNIX 

A combination of all wxOS_UNIX_* values previously listed.

wxOS_DOS 

Microsoft DOS.

wxOS_OS2 

OS/2.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值