|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
tera t
|
Jul 19, 2007 - 12:12 AM
|
Hi
I sent the following email Were you able to understand bug contents?
>When I carry out printing >DoModal of Dialog-A becomes invalid. >I can operate Window of bottom of Dialog.
|
|
Technical Support
|
Jul 19, 2007 - 3:53 AM
|
We failed to compile your project. The following "include" is not found in the StdAfx.h file: #include <BaseTsdEx.h> The following "include"s are not found in the ChildView.h, MuPrintGridPrPage.h and MuPrintGrid.h files: #include "MTBASE\MtTempl.h"
#include "MTBASE\MtDefine.h" As a result, many things like DECLARE_SMART_PTR cannot be compiled.
|
|
tera t
|
Jul 22, 2007 - 11:18 PM
|
Hi
Because I revised a program, please try to test it with a thing of this place.
ttp://profuis0.tripod.com/20070723/SimpleGrids.lzh
------------------------------------------------------------------------
When I carry out printing DoModal of Dialog-A becomes invalid. I can operate Window of bottom of Dialog.
ttp://profuis0.tripod.com/20070723/image01.jpg
|
|
Technical Support
|
Jul 23, 2007 - 5:26 AM
|
We compiled and run your test project successfully. The dialog with a grid in print preview mode becomes displayed over the main frame window and occupies the same position on the desktop. But the real problem is that these both dialogs are children (descendent) of the main frame window and you are trying to let both of them to run the modal message loop. You should destroy the first dialog before displaying the dialog with the grid window in the print preview mode. Please update the source code for the following method: void Dialog2::OnOK()
{
CDialog::OnOK();
m_PrtPreviewDlg = new CPrtPreviewDlg ;
m_PrtPreviewDlg->Create ( CPrtPreviewDlg::IDD , ::AfxGetMainWnd() );
m_PrtPreviewDlg->GoPrint( 0 );
}
|
|
tera t
|
Jul 23, 2007 - 6:20 PM
|
Hello
I do not want to destroy Dialog2(Print setting dialogue). Is not there another technique?
|
|
Technical Support
|
Jul 25, 2007 - 4:12 AM
|
If you don’t want to destroy it, you should hide it before displaying the print-preview dialog and show it when the print preview dialog is closed. This is completely possible because the print preview dialog is modal.
|
|