In Visual Studio 2017, OnInitDialog isn't called for a a class derived from CPrintDialog if the default selected printer is "Microsoft print to PDF"

  • Thread starter Thread starter VVO
  • Start date Start date
V

VVO

Guest
Hi there,

Create a simple MFC project made with Visual Studio 2017. Insert a brakpoint in CDialog::OnInitDialog in file dlgcore.cpp ( "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\atlmfc\src\mfc\dlgcore.cpp)

Run the application, go to File/Print Setup, the breakpoint will be hit; press go and select as current printer "Microsoft print to PDF" from the ComboBox and press ok. Go again to File?Print Setup, the print setup dialog is displayed but the the breakpoint will not be hit.


Best regards,

Sfetan Virgil Voinea

Continue reading...
 
Back
Top