1 // OCC_3dDoc.cpp: implementation of the OCC_3dDoc class.
3 //////////////////////////////////////////////////////////////////////
8 //////////////////////////////////////////////////////////////////////
9 // Construction/Destruction
10 //////////////////////////////////////////////////////////////////////
12 OCC_3dDoc::OCC_3dDoc()
15 myCResultDialog.Create(CResultDialog::IDD,NULL);
18 myCResultDialog.GetWindowRect(&dlgrect);
19 LONG width = dlgrect.right-dlgrect.left;
20 LONG height = dlgrect.bottom-dlgrect.top;
23 AfxGetApp()->m_pMainWnd->GetWindowRect(&MainWndRect);
24 LONG left = MainWndRect.left+3;
25 LONG top = MainWndRect.top + 112;
27 myCResultDialog.MoveWindow(left,top,width,height);
31 OCC_3dDoc::~OCC_3dDoc()
36 void OCC_3dDoc::PocessTextInDialog (CString theTitle,
39 // aMessage+= "-------------------------------- END ----------------------------------------\n";
40 myCResultDialog.SetTitle (theTitle);
41 myCResultDialog.SetText (theMessage);
45 void OCC_3dDoc::ClearDialog()
47 myCResultDialog.Empty();
50 void OCC_3dDoc::AddTextInDialog(TCollection_AsciiString& aMessage)
52 CString TextToAdd(aMessage.ToCString());
54 myCResultDialog.GetText(CurrentText);
57 Text = TextToAdd + CurrentText;
59 myCResultDialog.SetText(Text);
63 CString OCC_3dDoc::GetDialogText()
66 myCResultDialog.GetText(CurrentText);
72 void OCC_3dDoc::SetDialogTitle(TCollection_AsciiString theTitle)
74 myCResultDialog.SetTitle(theTitle.ToCString());