MCPcopy Create free account
hub / github.com/WheretIB/nullc / CloseTabWithFile

Function CloseTabWithFile

SuperCalc.cpp:657–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657void CloseTabWithFile(TabbedFiles::TabInfo &info)
658{
659 if(info.dirty && info.last[0] != '?' && MessageBox(hWnd, "File was changed. Save changes?", "Warning", MB_YESNO) == IDYES)
660 {
661 SaveFileFromTab(info.name, RichTextarea::GetAreaText(info.window), info.window);
662 }
663 DestroyWindow(info.window);
664 for(unsigned int i = 0; i < richEdits.size(); i++)
665 {
666 if(richEdits[i] == info.window)
667 {
668 richEdits.erase(richEdits.begin() + i);
669 break;
670 }
671 }
672}
673
674void TextareaToggleBreakpoint(HWND area, RichTextarea::LineIterator it)
675{

Callers

nothing calls this directly

Calls 3

SaveFileFromTabFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected