MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / ChangeNotifyDlgProc

Function ChangeNotifyDlgProc

src/Dialogs.c:1069–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067extern BOOL bResetFileWatching;
1068
1069INT_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//=============================================================================

Callers

nothing calls this directly

Calls 1

CenterDlgInParentFunction · 0.85

Tested by

no test coverage detected