| 291 | } |
| 292 | |
| 293 | DWORD CPluginAnsi::GetEditorModifiedState() |
| 294 | { |
| 295 | EditorInfo ei; |
| 296 | InfoA->EditorControl(ECTL_GETINFO, &ei); |
| 297 | #ifdef SHOW_DEBUG_EVENTS |
| 298 | char szDbg[255]; |
| 299 | wsprintfA(szDbg, "Editor:State=%i\n", ei.CurState); |
| 300 | OutputDebugStringA(szDbg); |
| 301 | #endif |
| 302 | // Если он сохранен, то уже НЕ модифицирован |
| 303 | DWORD currentModifiedState = ((ei.CurState & (ECSTATE_MODIFIED|ECSTATE_SAVED)) == ECSTATE_MODIFIED) ? 1 : 0; |
| 304 | return currentModifiedState; |
| 305 | } |
| 306 | |
| 307 | extern MSection *csTabs; |
| 308 |
no outgoing calls
no test coverage detected