Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General2 CDialog questions Pin
raner25-Feb-03 0:22
raner25-Feb-03 0:22 
GeneralRe: 2 CDialog questions Pin
Joaquín M López Muñoz25-Feb-03 0:32
Joaquín M López Muñoz25-Feb-03 0:32 
GeneralRe: 2 CDialog questions Pin
Joan M25-Feb-03 0:36
professionalJoan M25-Feb-03 0:36 
GeneralRe: 2 CDialog questions Pin
raner25-Feb-03 2:01
raner25-Feb-03 2:01 
GeneralRe: 2 CDialog questions Pin
Joan M25-Feb-03 3:04
professionalJoan M25-Feb-03 3:04 
GeneralNew problem Pin
raner25-Feb-03 2:46
raner25-Feb-03 2:46 
GeneralRe: New problem Pin
Joan M25-Feb-03 3:06
professionalJoan M25-Feb-03 3:06 
GeneralRe: New problem Pin
raner25-Feb-03 3:53
raner25-Feb-03 3:53 
thks for your previous reply about creating multiple instances Smile | :) ..it's exactly what i was looking for!...(and i find your english very clear actually)

as for the code, below are just some of the codes.i don't know if it's sufficient for you to find out what's going on.Actually if you don't mind emailing me your email address, i cant send you a more complete source code.

in my CView class..

dlgGraph[i]=new CGrapDlg(this);
dlgGraph[i]->SetLink(i);
if (dlgGraph[i]->GetSafeHwnd()==0){
  dlgGraph[i]->Create(); //displays dialog window
}
dlgGraph[i]->ModifyStyle(0,WS_VISIBLE);


in my CGrapDlg...

CGrapDlg::CGrapDlg(CView *pView) //modeless constructor
	:CDialog()
{
	m_pView=pView;
}

BOOL CGrapDlg::Create()
{
	return CDialog::Create(CGrapDlg::IDD);
}

void CGrapDlg::OnPaint() 
{
	CWnd* graphFrame = (CWnd*)GetDlgItem(IDC_GRAPH_FRAME);
	CDC* pDC = graphFrame->GetDC();
	
	try{
		plotGraph.Plot(pDC,link);} //plotGraph is a CObject-derived class
	catch(...)
	{
		AfxMessageBox("Error plotting graph.Has files been opened?");
	}

	ReleaseDC(pDC);
}



Thanks alot, really.
GeneralRe: New problem Pin
Joan M25-Feb-03 4:33
professionalJoan M25-Feb-03 4:33 
GeneralRe: New problem Pin
raner25-Feb-03 5:28
raner25-Feb-03 5:28 
GeneralRe: New problem Pin
Joan M25-Feb-03 6:23
professionalJoan M25-Feb-03 6:23 
GeneralRe: New problem Pin
raner27-Feb-03 5:42
raner27-Feb-03 5:42 
GeneralRe: New problem Pin
Joan M27-Feb-03 7:02
professionalJoan M27-Feb-03 7:02 
GeneralRe: New problem Pin
raner27-Feb-03 17:06
raner27-Feb-03 17:06 
GeneralRe: New problem Pin
Joan M27-Feb-03 20:00
professionalJoan M27-Feb-03 20:00 
GeneralRe: 2 CDialog questions Pin
xxhimanshu25-Feb-03 0:37
xxhimanshu25-Feb-03 0:37 
GeneralCListView Pin
ROK_RShadow25-Feb-03 0:15
ROK_RShadow25-Feb-03 0:15 
GeneralRe: CListView Pin
João Paulo Figueira25-Feb-03 0:37
professionalJoão Paulo Figueira25-Feb-03 0:37 
GeneralCalculating duration of internet connections Pin
Captain Kirk24-Feb-03 23:47
Captain Kirk24-Feb-03 23:47 
GeneralOverlapped IO with WriteFile Pin
zecodela24-Feb-03 23:28
zecodela24-Feb-03 23:28 
GeneralCHtmlView Problems!!! Pin
arunbooboo24-Feb-03 23:15
arunbooboo24-Feb-03 23:15 
GeneralRe: CHtmlView Problems!!! Pin
Big Art25-Feb-03 6:16
Big Art25-Feb-03 6:16 
GeneralRe: CHtmlView Problems!!! Pin
arunbooboo25-Feb-03 17:16
arunbooboo25-Feb-03 17:16 
GeneralRe: CHtmlView Problems!!! Pin
Big Art26-Feb-03 13:42
Big Art26-Feb-03 13:42 
GeneralRe: CHtmlView Problems!!! Pin
arunbooboo26-Feb-03 16:04
arunbooboo26-Feb-03 16:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.