| 791 | }; |
| 792 | |
| 793 | static void UpdateRecordDialog(HWND hwndDlg) |
| 794 | { |
| 795 | int enable=0; |
| 796 | |
| 797 | std::string fn=GetRecordPath(hwndDlg); |
| 798 | |
| 799 | if(fn!="") |
| 800 | { |
| 801 | if(access(fn.c_str(), F_OK) || |
| 802 | !access(fn.c_str(), W_OK)) |
| 803 | { |
| 804 | LONG lCount = SendDlgItemMessage(hwndDlg, IDC_COMBO_RECORDFROM, CB_GETCOUNT, 0, 0); |
| 805 | LONG lIndex = SendDlgItemMessage(hwndDlg, IDC_COMBO_RECORDFROM, CB_GETCURSEL, 0, 0); |
| 806 | if(lIndex != lCount-1) |
| 807 | { |
| 808 | enable=1; |
| 809 | } |
| 810 | } |
| 811 | |
| 812 | } |
| 813 | |
| 814 | EnableWindow(GetDlgItem(hwndDlg,IDOK),enable ? TRUE : FALSE); |
| 815 | } |
| 816 | |
| 817 | static void UpdateRecordDialogPath(HWND hwndDlg, const std::string &fname) |
| 818 | { |
no test coverage detected