Menu

Diff of /trunk/src/DiffViewer.cpp [r97] .. [r98]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/src/DiffViewer.cpp
+++ b/trunk/src/DiffViewer.cpp
@@ -223,6 +223,15 @@
 	return true;
 }
 
+void CDiffViewer::SetTitle(LPCTSTR title)
+{
+	int len = _tcslen(title);
+	TCHAR * pBuf = new TCHAR[len+40];
+	_stprintf_s(pBuf, len+40, _T("%s - CMDiff"), title);
+	SetWindowTitle(wstring(pBuf));
+	delete [] pBuf;
+}
+
 void CDiffViewer::SetAStyle(int style, COLORREF fore, COLORREF back, int size, const char *face) 
 {
 	SendEditor(SCI_STYLESETFORE, style, fore);