wordpad: Don't waste time getting the number of preview pages.
authorDylan Smith <dylan.ah.smith@gmail.com>
Mon, 22 Feb 2010 08:18:35 +0000 (03:18 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 22 Feb 2010 11:08:20 +0000 (12:08 +0100)
commit20dea9a8900a238a18f5e525b24bab837f71b8c0
tree8c579c47043cc1e2cb330b9ec9cf2e562e7cac2e
parentf235c48cae7cf27c5e5a44972856f1ce6caf2c8b
wordpad: Don't waste time getting the number of preview pages.

For print preview it will take more time to wait for the whole text to be
wrapped for EM_FORMATRANGE than to wait for just the first page.  Trying to
get the total number of pages will cause the whole test to be wrapped.
Instead all that is needed is to just determine if a page is the last page,
which can be determined by it's page end offset compared to the text length.
programs/wordpad/print.c