Click here to Skip to main content
15,921,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ON_WM_CREATE question Pin
Alvaro Mendez10-Jan-03 5:52
Alvaro Mendez10-Jan-03 5:52 
GeneralRe: ON_WM_CREATE question Pin
ns10-Jan-03 5:57
ns10-Jan-03 5:57 
GeneralRe: ON_WM_CREATE question Pin
ns10-Jan-03 6:08
ns10-Jan-03 6:08 
GeneralRe: ON_WM_CREATE question Pin
Tim Smith10-Jan-03 6:09
Tim Smith10-Jan-03 6:09 
GeneralRe: ON_WM_CREATE question Pin
John M. Drescher10-Jan-03 6:16
John M. Drescher10-Jan-03 6:16 
GeneralRe: ON_WM_CREATE question Pin
AlexO10-Jan-03 7:12
AlexO10-Jan-03 7:12 
GeneralModeless dialog and Create() Pin
ns10-Jan-03 5:11
ns10-Jan-03 5:11 
GeneralRe: Modeless dialog and Create() Pin
ns10-Jan-03 5:21
ns10-Jan-03 5:21 
The code I'm looking at has:


BOOL CZoom::Create(UINT nID, CWnd *pWnd, int index)
{

	m_imageMapIndex = index;

	m_imagePtr = imageMap[index].GetImagePointer();
	m_imageSize = imageMap[index].GetImageSize();

	imageMap[index].IncrementPointerCount();

	imageMap[index].pZoomSet.insert(this);

	return CDialog::Create( nID,pWnd);
}


and

void CResizeSonarViewBoxView::OnCreateviewbox() 
{
//spawn a modeless viewbox here. 
			// TODO: Add your control notification handler code here
	CImageDisplay* pdlg;	// TODO: Add your control notification handler code here
	pdlg = new CImageDisplay();

	if(pdlg != NULL)
	{
	BOOL ret = pdlg->Create(IDD_DIALOGIMAGEDISPLAY, this);
		if(!ret)  //Create failed.
      AfxMessageBox("Error creating Dialog");
}


so I guess my question is that did they just go and add a Create() function by hand or did they get it through he classWizard by trapping WM_CREATE and modify it?


In yet another book I see that they dont add a Create function by hand, but just call it in the constructor like so:

Create(IDD,pPArent);


Where did this function come from? Its not in their code......

Can I infer that if I want my create() to do more stuff, I can modify it, but then I have to write my own Create()?

Again is Create() associated with WM_CREATE?

Thanks



Appreciate your help,
ns
GeneralRe: Modeless dialog and Create() Pin
Alvaro Mendez10-Jan-03 5:41
Alvaro Mendez10-Jan-03 5:41 
GeneralRe: Modeless dialog and Create() Pin
ns10-Jan-03 5:46
ns10-Jan-03 5:46 
GeneralRe: Modeless dialog and Create() Pin
Alvaro Mendez10-Jan-03 6:05
Alvaro Mendez10-Jan-03 6:05 
GeneralThanks Pin
ns10-Jan-03 6:10
ns10-Jan-03 6:10 
GeneralRe: Thanks Pin
Alvaro Mendez10-Jan-03 6:43
Alvaro Mendez10-Jan-03 6:43 
Questiondialog to take over full screen??? Pin
joshfl10-Jan-03 5:03
joshfl10-Jan-03 5:03 
AnswerRe: dialog to take over full screen??? Pin
jmkhael10-Jan-03 5:21
jmkhael10-Jan-03 5:21 
AnswerRe: dialog to take over full screen??? Pin
joshfl10-Jan-03 5:25
joshfl10-Jan-03 5:25 
GeneralRe: dialog to take over full screen??? Pin
jmkhael10-Jan-03 5:53
jmkhael10-Jan-03 5:53 
GeneralRe: dialog to take over full screen??? Pin
joshfl10-Jan-03 7:11
joshfl10-Jan-03 7:11 
GeneralMaking the MDI framework be on top... Pin
ns10-Jan-03 4:46
ns10-Jan-03 4:46 
Generalresizing a CEDit Pin
ns10-Jan-03 4:42
ns10-Jan-03 4:42 
Generalsaving location, size, number info on exit Pin
ns10-Jan-03 4:39
ns10-Jan-03 4:39 
GeneralRe: saving location, size, number info on exit Pin
AlexO10-Jan-03 5:36
AlexO10-Jan-03 5:36 
GeneralRe: saving location, size, number info on exit Pin
ns10-Jan-03 5:44
ns10-Jan-03 5:44 
GeneralRe: saving location, size, number info on exit Pin
AlexO10-Jan-03 6:00
AlexO10-Jan-03 6:00 
GeneralMFC extension dll Pin
BORICUA10-Jan-03 4:27
BORICUA10-Jan-03 4:27 

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.