// Author: Julian Smart
// Modified by:
// Created: 04/01/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/msw/printdlg.h"
#include "wx/msw/dcprint.h"
#include "wx/paper.h"
+#include "wx/modalhook.h"
#include <stdlib.h>
// From MSDN: How To Modify Printer Settings with the DocumentProperties() Function
// The purpose of this is to fill the DEVMODE with privdata from printer driver.
- // If we have a printer name and OpenPrinter sucessfully returns
+ // If we have a printer name and OpenPrinter successfully returns
// this replaces the PrintDlg function which creates the DEVMODE filled only with data from default printer.
if ( !m_devMode && !printerName.IsEmpty() )
{
int wxWindowsPrintDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
ConvertToNative( m_printDialogData );
PRINTDLG *pd = (PRINTDLG*) m_printDlg;
int wxWindowsPageSetupDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
ConvertToNative( m_pageSetupData );
PAGESETUPDLG *pd = (PAGESETUPDLG *) m_pageDlg;