Hi Jordi,
> * gr_Win32Graphics.cpp
>
> Checking what is the default printer was taking 0.18s (done 5 times at
> startup) when the default printer value is no really used.
The printer DC is needed to achieve a WYSIWYG layout. If you remove the
initialization, the document will be laid out using the screen font
metrics, and when you print it, the printed layout will be significantly
different, as it used to be in the old days. (Not sure what made you
think this value is not used, as it is used immediately on the next
line, and throughout the class, as well as in the derived USP class).
Some time could be saved by having a static member s_defaultPrinterDC
which would be initialised only once and used to initialize the
m_printHDC member (btw, any idea why retrieving the default printer is
taking so long ?).
Tomas
Received on Thu May 17 16:15:59 2007
This archive was generated by hypermail 2.1.8 : Thu May 17 2007 - 16:16:00 CEST