@@ -252,7 +252,7 @@ class CEditToolbarDlg: public CEditCustomItemDlg
252
252
253
253
LRESULT CEditToolbarDlg::OnInitDialog ( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled )
254
254
{
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;
256
256
CWindow commands=GetDlgItem (IDC_COMBOCOMMAND);
257
257
CWindow links=GetDlgItem (IDC_COMBOLINK);
258
258
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
428
428
class CCustomToolbarDlg : public CCustomTreeDlg
429
429
{
430
430
public:
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) {}
432
432
433
433
protected:
434
434
virtual void ParseTreeItemExtra ( CTreeItem *pItem, CSettingsParser &parser );
@@ -604,7 +604,7 @@ void UpdateSettings( void )
604
604
UpdateSetting (L" UpIconSize" ,CComVariant ((dpi>=120 )?36 :30 ),false );
605
605
FindSetting (L" UpHotkey2" )->pLinkTo =FindSetting (L" UpHotkey" );
606
606
607
- if (GetWinVersion ()>=WIN_VER_WIN8 )
607
+ if (GetWinVersion ()>=_WIN32_WINNT_WIN8 )
608
608
{
609
609
// Windows 8
610
610
HideSettingGroup (L" StatusBar" ,true );
@@ -624,7 +624,7 @@ void UpdateSettings( void )
624
624
UpdateSetting (L" FixFolderScroll" ,CComVariant (0 ),false );
625
625
UpdateSetting (L" ToolbarItems" ,CComVariant (g_DefaultToolbar2),false );
626
626
627
- if (GetWinVersion ()>=WIN_VER_WIN10 )
627
+ if (GetWinVersion ()>=_WIN32_WINNT_WIN10 )
628
628
{
629
629
FindSetting (L" TreeStyle" )[1 ].flags |=CSetting::FLAG_HIDDEN;
630
630
}
@@ -657,14 +657,14 @@ static bool g_bCopyHook0; // initial state of the copy hook before the settings
657
657
void InitSettings ( void )
658
658
{
659
659
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" ));
661
661
}
662
662
663
663
void ClosingSettings ( HWND hWnd, int flags, int command )
664
664
{
665
665
if (command==IDOK)
666
666
{
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" ));
668
668
669
669
if ((flags&CSetting::FLAG_COLD) || (bCopyHook && !g_bCopyHook0))
670
670
MessageBox (hWnd,LoadStringEx (IDS_NEW_SETTINGS2),LoadStringEx (IDS_APP_TITLE),MB_OK|MB_ICONWARNING);
0 commit comments