Skip to content

Commit

Permalink
Update the text of IDC_BUTTON_OUTPUT_FILE on WM_INITDIALOG
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Jan 13, 2018
1 parent d72106f commit 227265b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interface/w32g_pref.c
Original file line number Diff line number Diff line change
Expand Up @@ -4164,7 +4164,8 @@ PrefTiMidity3DialogProc(HWND hwnd, UINT uMess, WPARAM wParam, LPARAM lParam)
else
SetDlgItemText(hwnd,IDC_EDIT_OUTPUT_FILE,TEXT(st_temp->OutputName));
} else
SetDlgItemText(hwnd,IDC_EDIT_OUTPUT_FILE,st_temp->OutputDirName);
SetDlgItemText(hwnd,IDC_EDIT_OUTPUT_FILE,st_temp->OutputDirName);
PostMessage(hwnd, WM_COMMAND, IDC_COMBO_OUTPUT_MODE, 0); // force updating IDC_BUTTON_OUTPUT_FILE text
#endif
opt = st_temp->opt_playmode + 1;
if(strchr(opt, 'U')){
Expand Down Expand Up @@ -4592,7 +4593,7 @@ PrefTiMidity3DialogProc(HWND hwnd, UINT uMess, WPARAM wParam, LPARAM lParam)
}
} else {
if(st_temp->auto_output_mode>0){
SendDlgItemMessage(hwnd,IDC_BUTTON_OUTPUT_FILE,WM_SETTEXT,0,(LPARAM)"Output File");
SendDlgItemMessage(hwnd,IDC_BUTTON_OUTPUT_FILE,WM_SETTEXT,0,(LPARAM)"Output Dir");
SetDlgItemText(hwnd,IDC_EDIT_OUTPUT_FILE,st_temp->OutputDirName);
} else {
SendDlgItemMessage(hwnd,IDC_BUTTON_OUTPUT_FILE,WM_SETTEXT,0,(LPARAM)"Output File");
Expand Down

0 comments on commit 227265b

Please sign in to comment.