@@ -252,7 +252,7 @@ class CEditToolbarDlg: public CEditCustomItemDlg
252252
253253LRESULT CEditToolbarDlg::OnInitDialog ( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled )
254254{
255- m_Style=GetWinVersion ()>=WIN_VER_WIN8 ?SETTINGS_STYLE_WIN8:SETTINGS_STYLE_WIN7;
255+ m_Style=GetWinVersion ()>=_WIN32_WINNT_WIN8 ?SETTINGS_STYLE_WIN8:SETTINGS_STYLE_WIN7;
256256 CWindow commands=GetDlgItem (IDC_COMBOCOMMAND);
257257 CWindow links=GetDlgItem (IDC_COMBOLINK);
258258 InitDialog (commands,g_StdCommands,m_Style,SETTINGS_STYLE_MASK,links,g_CommonLinks);
@@ -428,7 +428,7 @@ LRESULT CEditToolbarDlg::OnReset( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL
428428class CCustomToolbarDlg : public CCustomTreeDlg
429429{
430430public:
431- CCustomToolbarDlg ( void ): CCustomTreeDlg(false ,g_StdCommands,GetWinVersion()>=WIN_VER_WIN8 ?SETTINGS_STYLE_WIN8:SETTINGS_STYLE_WIN7,SETTINGS_STYLE_MASK) {}
431+ CCustomToolbarDlg ( void ): CCustomTreeDlg(false ,g_StdCommands,GetWinVersion()>=_WIN32_WINNT_WIN8 ?SETTINGS_STYLE_WIN8:SETTINGS_STYLE_WIN7,SETTINGS_STYLE_MASK) {}
432432
433433protected:
434434 virtual void ParseTreeItemExtra ( CTreeItem *pItem, CSettingsParser &parser );
@@ -604,7 +604,7 @@ void UpdateSettings( void )
604604 UpdateSetting (L" UpIconSize" ,CComVariant ((dpi>=120 )?36 :30 ),false );
605605 FindSetting (L" UpHotkey2" )->pLinkTo =FindSetting (L" UpHotkey" );
606606
607- if (GetWinVersion ()>=WIN_VER_WIN8 )
607+ if (GetWinVersion ()>=_WIN32_WINNT_WIN8 )
608608 {
609609 // Windows 8
610610 HideSettingGroup (L" StatusBar" ,true );
@@ -624,7 +624,7 @@ void UpdateSettings( void )
624624 UpdateSetting (L" FixFolderScroll" ,CComVariant (0 ),false );
625625 UpdateSetting (L" ToolbarItems" ,CComVariant (g_DefaultToolbar2),false );
626626
627- if (GetWinVersion ()>=WIN_VER_WIN10 )
627+ if (GetWinVersion ()>=_WIN32_WINNT_WIN10 )
628628 {
629629 FindSetting (L" TreeStyle" )[1 ].flags |=CSetting::FLAG_HIDDEN;
630630 }
@@ -657,14 +657,14 @@ static bool g_bCopyHook0; // initial state of the copy hook before the settings
657657void InitSettings ( void )
658658{
659659 InitSettings (g_Settings,COMPONENT_EXPLORER,NULL );
660- g_bCopyHook0=GetWinVersion ()<WIN_VER_WIN8 && (GetSettingBool (L" ReplaceFileUI" ) || GetSettingBool (L" ReplaceFolderUI" ) || GetSettingBool (L" EnableMore" ));
660+ g_bCopyHook0=GetWinVersion ()< _WIN32_WINNT_WIN8 && (GetSettingBool (L" ReplaceFileUI" ) || GetSettingBool (L" ReplaceFolderUI" ) || GetSettingBool (L" EnableMore" ));
661661}
662662
663663void ClosingSettings ( HWND hWnd, int flags, int command )
664664{
665665 if (command==IDOK)
666666 {
667- bool bCopyHook=GetWinVersion ()<WIN_VER_WIN8 && (GetSettingBool (L" ReplaceFileUI" ) || GetSettingBool (L" ReplaceFolderUI" ) || GetSettingBool (L" EnableMore" ));
667+ bool bCopyHook=GetWinVersion ()< _WIN32_WINNT_WIN8 && (GetSettingBool (L" ReplaceFileUI" ) || GetSettingBool (L" ReplaceFolderUI" ) || GetSettingBool (L" EnableMore" ));
668668
669669 if ((flags&CSetting::FLAG_COLD) || (bCopyHook && !g_bCopyHook0))
670670 MessageBox (hWnd,LoadStringEx (IDS_NEW_SETTINGS2),LoadStringEx (IDS_APP_TITLE),MB_OK|MB_ICONWARNING);
0 commit comments