mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Cosmetics
This commit is contained in:
parent
34b59f9f6e
commit
aa583958d8
@ -569,7 +569,7 @@ INT_PTR CALLBACK CDialogPackage::SelectFolderDlgProc(HWND hWnd, UINT uMsg, WPARA
|
||||
item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_CUSTOMBROWSE_BUTTON);
|
||||
EnableWindow(item, FALSE);
|
||||
|
||||
item = GetDlgItem(hWnd, IDCANCEL);
|
||||
item = GetDlgItem(hWnd, IDOK);
|
||||
EnableWindow(item, sel != -1);
|
||||
}
|
||||
break;
|
||||
@ -597,7 +597,7 @@ INT_PTR CALLBACK CDialogPackage::SelectFolderDlgProc(HWND hWnd, UINT uMsg, WPARA
|
||||
DWORD attributes = GetFileAttributes(buffer);
|
||||
BOOL state = (attributes != INVALID_FILE_ATTRIBUTES &&
|
||||
attributes & FILE_ATTRIBUTE_DIRECTORY);
|
||||
EnableWindow(GetDlgItem(hWnd, IDCANCEL), state);
|
||||
EnableWindow(GetDlgItem(hWnd, IDOK), state);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -618,7 +618,7 @@ INT_PTR CALLBACK CDialogPackage::SelectFolderDlgProc(HWND hWnd, UINT uMsg, WPARA
|
||||
}
|
||||
break;
|
||||
|
||||
case IDCANCEL:
|
||||
case IDOK:
|
||||
{
|
||||
WCHAR buffer[MAX_PATH];
|
||||
HWND item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_EXISTING_RADIO);
|
||||
@ -729,7 +729,7 @@ INT_PTR CALLBACK CDialogPackage::SelectPluginDlgProc(HWND hWnd, UINT uMsg, WPARA
|
||||
if (!plugins->first.empty() && !plugins->second.empty())
|
||||
{
|
||||
// Enable Add button if both plugins have been selected
|
||||
EnableWindow(GetDlgItem(hWnd, IDCANCEL), TRUE);
|
||||
EnableWindow(GetDlgItem(hWnd, IDOK), TRUE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -739,7 +739,7 @@ INT_PTR CALLBACK CDialogPackage::SelectPluginDlgProc(HWND hWnd, UINT uMsg, WPARA
|
||||
}
|
||||
break;
|
||||
|
||||
case IDCANCEL:
|
||||
case IDOK:
|
||||
EndDialog(hWnd, 1);
|
||||
break;
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ FONT 8, "MS Shell Dlg 2"
|
||||
AUTORADIOBUTTON "Add custom folder:", IDC_PACKAGESELECTFOLDER_CUSTOM_RADIO, 6, 40, 220, 9, WS_TABSTOP
|
||||
EDITTEXT IDC_PACKAGESELECTFOLDER_CUSTOM_EDIT, 16, 53, 149, 14, WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL | WS_DISABLED
|
||||
PUSHBUTTON "...", IDC_PACKAGESELECTFOLDER_CUSTOMBROWSE_BUTTON, 170, 53, 25, 14, WS_TABSTOP | WS_DISABLED
|
||||
DEFPUSHBUTTON "Add", IDCANCEL, 146, 82, 50, 14
|
||||
DEFPUSHBUTTON "Add", IDOK, 146, 82, 50, 14
|
||||
}
|
||||
|
||||
IDD_PACKAGESELECTPLUGIN_DIALOG DIALOGEX 0, 0, 200, 100
|
||||
@ -163,7 +163,7 @@ FONT 8, "MS Shell Dlg 2"
|
||||
LTEXT "64-bit DLL:", IDC_STATIC, 6, 40, 220, 9
|
||||
EDITTEXT IDC_PACKAGESELECTPLUGIN_64BIT_EDIT, 16, 53, 149, 14, ES_READONLY | WS_BORDER
|
||||
PUSHBUTTON "...", IDC_PACKAGESELECTPLUGIN_64BITBROWSE_BUTTON, 170, 53, 25, 14, WS_TABSTOP
|
||||
DEFPUSHBUTTON "Add", IDCANCEL, 146, 82, 50, 14, WS_DISABLED
|
||||
DEFPUSHBUTTON "Add", IDOK, 146, 82, 50, 14, WS_DISABLED
|
||||
}
|
||||
|
||||
IDD_INSTALL_DIALOG DIALOGEX 0, 0, 266, 250
|
||||
|
Loading…
Reference in New Issue
Block a user