| 1067 | extern BOOL bResetFileWatching; |
| 1068 | |
| 1069 | INT_PTR CALLBACK ChangeNotifyDlgProc ( HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam ) |
| 1070 | { |
| 1071 | switch ( umsg ) { |
| 1072 | case WM_INITDIALOG: |
| 1073 | CheckRadioButton ( hwnd, 100, 102, 100 + iFileWatchingMode ); |
| 1074 | if ( bResetFileWatching ) { |
| 1075 | CheckDlgButton ( hwnd, 103, BST_CHECKED ); |
| 1076 | } |
| 1077 | CenterDlgInParent ( hwnd ); |
| 1078 | return TRUE; |
| 1079 | case WM_COMMAND: |
| 1080 | switch ( LOWORD ( wParam ) ) { |
| 1081 | case IDOK: |
| 1082 | if ( IsDlgButtonChecked ( hwnd, 100 ) == BST_CHECKED ) { |
| 1083 | iFileWatchingMode = 0; |
| 1084 | } else if ( IsDlgButtonChecked ( hwnd, 101 ) == BST_CHECKED ) { |
| 1085 | iFileWatchingMode = 1; |
| 1086 | } else { |
| 1087 | iFileWatchingMode = 2; |
| 1088 | } |
| 1089 | bResetFileWatching = ( IsDlgButtonChecked ( hwnd, 103 ) == BST_CHECKED ) ? TRUE : FALSE; |
| 1090 | EndDialog ( hwnd, IDOK ); |
| 1091 | break; |
| 1092 | case IDCANCEL: |
| 1093 | EndDialog ( hwnd, IDCANCEL ); |
| 1094 | break; |
| 1095 | } |
| 1096 | return TRUE; |
| 1097 | } |
| 1098 | return FALSE; |
| 1099 | } |
| 1100 | |
| 1101 | |
| 1102 | //============================================================================= |
nothing calls this directly
no test coverage detected