Thread: CDialog
View Single Post
Old Jun 5th, 2005, 5:22 AM   #13
Nellie
Programmer
 
Nellie's Avatar
 
Join Date: Jun 2005
Location: Kent (old) England
Posts: 34
Rep Power: 0 Nellie is on a distinguished road
I make a new class when i put the dialog in, the class manager (or whatever its called?) comes up and asks if i want to make a new class for it.

How exactly do i make a pointer?
(i have herd about them, but never (knowingly :o ) used one.)
is the CView* the pointer?

The only bit that i can read through in my mind without thinking 'what the...' is the last bit of code (except the '->')
if(!m_pModelessDlg)
	{
		// Create the dialog.
		m_pModelessDlg = new CModelessDlg(this);
		m_pModelessDlg->Create();
	}
	else
		// Set the dialog active.
		m_pModelessDlg->SetActiveWindow();

thanks
__________________
I use MSVC6.0, on XP Pro

Happy Programming :D

http://www.danasoft.com/sig/NelliesSig.jpg

Last edited by Nellie; Jun 5th, 2005 at 5:26 AM.
Nellie is offline   Reply With Quote