Home > Software engineering >  MFC print preview
MFC print preview

Time:12-19

Dialog box procedure call print preview appear such problems, in the debug mode to normal print, but to release below, will go wrong, wrong in dlgcore. 404 lines of CPP
 if (pOccManager!=NULL) 
{
POccManager - & gt; PostCreateDialog (& amp; OccDialogInfo);

If (hWnd!=NULL)
{
SetOccDialogInfo (NULL);
}
}

Breakpoint here, the debug will not enter here, will release to come in, what's the situation, to ask you
I call the print preview method is by joining CPrinter, CPrintFrame CPrintView this three classes, and then the following methods to open the
 
CPrintFrame * frame=new CPrintFrame ();
Frame - & gt; Create (_T (" print preview "), and this, TRUE);


CodePudding user response:

Don't call AfxEnableControlContainer (); ?

  • Related