+ CRect rect,rect1;\r
+ this->GetWindowRect(&rect1);\r
+ rect.left=m_blamewidth;\r
+ rect.right=rect.Width();\r
+ rect.top=0;\r
+ rect.bottom=rect.Height();\r
+ BOOL b=m_TextView.Create(_T("Scintilla"),_T("source"),0,rect,this,0,0);\r
+ m_TextView.Init(0);\r
+ m_TextView.ShowWindow( SW_SHOW);\r
+ //m_TextView.InsertText(_T("Abdadfasdf"));\r
+ \r
+ return CView::OnCreate(lpcs);\r
+}\r
+\r
+void CTortoiseGitBlameView::OnSize(UINT nType,int cx, int cy)\r
+{\r
+\r
+ CRect rect;\r
+ rect.left=m_blamewidth;\r
+ rect.right=cx;\r
+ rect.top=0;\r
+ rect.bottom=cy;\r
+\r
+ m_TextView.MoveWindow(&rect);\r
+\r
+}\r