Cosmetics

This commit is contained in:
Birunthan Mohanathas 2012-06-23 22:22:35 +03:00
parent 34b59f9f6e
commit aa583958d8
2 changed files with 7 additions and 7 deletions

View File

@ -569,7 +569,7 @@ INT_PTR CALLBACK CDialogPackage::SelectFolderDlgProc(HWND hWnd, UINT uMsg, WPARA
item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_CUSTOMBROWSE_BUTTON); item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_CUSTOMBROWSE_BUTTON);
EnableWindow(item, FALSE); EnableWindow(item, FALSE);
item = GetDlgItem(hWnd, IDCANCEL); item = GetDlgItem(hWnd, IDOK);
EnableWindow(item, sel != -1); EnableWindow(item, sel != -1);
} }
break; break;
@ -597,7 +597,7 @@ INT_PTR CALLBACK CDialogPackage::SelectFolderDlgProc(HWND hWnd, UINT uMsg, WPARA
DWORD attributes = GetFileAttributes(buffer); DWORD attributes = GetFileAttributes(buffer);
BOOL state = (attributes != INVALID_FILE_ATTRIBUTES && BOOL state = (attributes != INVALID_FILE_ATTRIBUTES &&
attributes & FILE_ATTRIBUTE_DIRECTORY); attributes & FILE_ATTRIBUTE_DIRECTORY);
EnableWindow(GetDlgItem(hWnd, IDCANCEL), state); EnableWindow(GetDlgItem(hWnd, IDOK), state);
} }
break; break;
@ -618,7 +618,7 @@ INT_PTR CALLBACK CDialogPackage::SelectFolderDlgProc(HWND hWnd, UINT uMsg, WPARA
} }
break; break;
case IDCANCEL: case IDOK:
{ {
WCHAR buffer[MAX_PATH]; WCHAR buffer[MAX_PATH];
HWND item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_EXISTING_RADIO); 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()) if (!plugins->first.empty() && !plugins->second.empty())
{ {
// Enable Add button if both plugins have been selected // Enable Add button if both plugins have been selected
EnableWindow(GetDlgItem(hWnd, IDCANCEL), TRUE); EnableWindow(GetDlgItem(hWnd, IDOK), TRUE);
} }
break; break;
} }
@ -739,7 +739,7 @@ INT_PTR CALLBACK CDialogPackage::SelectPluginDlgProc(HWND hWnd, UINT uMsg, WPARA
} }
break; break;
case IDCANCEL: case IDOK:
EndDialog(hWnd, 1); EndDialog(hWnd, 1);
break; break;
} }

View File

@ -148,7 +148,7 @@ FONT 8, "MS Shell Dlg 2"
AUTORADIOBUTTON "Add custom folder:", IDC_PACKAGESELECTFOLDER_CUSTOM_RADIO, 6, 40, 220, 9, WS_TABSTOP 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 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 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 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 LTEXT "64-bit DLL:", IDC_STATIC, 6, 40, 220, 9
EDITTEXT IDC_PACKAGESELECTPLUGIN_64BIT_EDIT, 16, 53, 149, 14, ES_READONLY | WS_BORDER EDITTEXT IDC_PACKAGESELECTPLUGIN_64BIT_EDIT, 16, 53, 149, 14, ES_READONLY | WS_BORDER
PUSHBUTTON "...", IDC_PACKAGESELECTPLUGIN_64BITBROWSE_BUTTON, 170, 53, 25, 14, WS_TABSTOP 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 IDD_INSTALL_DIALOG DIALOGEX 0, 0, 266, 250