diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 6cd7fc0328..abba5ac998 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -920,7 +920,8 @@ inline wxString wxGetFullModuleName() // 0x0502 Windows XP SP2, 2003 SP1 // 0x0600 Windows Vista, 2008 // 0x0601 Windows 7 -// 0x0602 Windows 8 (currently also returned for 8.1) +// 0x0602 Windows 8 (currently also returned for 8.1 if program does not have a manifest indicating 8.1 support) +// 0x0603 Windows 8.1 (currently only returned for 8.1 if program has a manifest indicating 8.1 support) // // for the other Windows versions 0 is currently returned enum wxWinVersion @@ -950,7 +951,8 @@ enum wxWinVersion wxWinVersion_7 = 0x601, - wxWinVersion_8 = 0x602 + wxWinVersion_8 = 0x602, + wxWinVersion_8_1 = 0x603 }; WXDLLIMPEXP_BASE wxWinVersion wxGetWinVersion(); diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 71f8cae2a4..49ded076cc 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -1361,6 +1361,9 @@ wxWinVersion wxGetWinVersion() case 2: return wxWinVersion_8; + + case 3: + return wxWinVersion_8_1; } break; }