- 20 Jul, 2010 3 commits
-
-
Dylan Smith authored
This reduces the amount of flicker seen from redrawing the window.
-
Dylan Smith authored
This extra buffer only saves the result of the StretchBlt operatation, which isn't worth doing since a BitBlt will still be needed from the buffer to the screen. This causes noticable delay on resizing since a new sized bitmap needs to be created, the old bitmap needs to be destroyed, and then both a StretchBlt and a Bitblt is needed to actually repaint the window.
-
Dylan Smith authored
-
- 24 Jun, 2010 1 commit
-
-
Francois Gouget authored
-
- 26 May, 2010 1 commit
-
-
Gerald Pfeifer authored
-
- 20 Apr, 2010 1 commit
-
-
Gerald Pfeifer authored
-
- 25 Feb, 2010 1 commit
-
-
Dylan Smith authored
-
- 24 Feb, 2010 2 commits
-
-
Dylan Smith authored
Either one or two pages may be shown in print preview when zoomed out. This value is stored in the registry in native wordpad, and preserved while opening and closing the print preview. Zooming in will only show one page, but the pages shown value must be saved because it will return to the preview pages shown value after unzooming completely. If two pages should be shown when there is only one page of text, then a second blank page is shown.
-
Dylan Smith authored
In print preview you can zoom in by left clicking on one of the pages. The zoom cursor is displayed whenever the mouse is over the page to indicate to the user that they can zoom in. When fully zoomed in it will zoom out when this is done again. When clicking on the second page, it will zoom into that page.
-
- 22 Feb, 2010 8 commits
-
-
Dylan Smith authored
-
Dylan Smith authored
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.
-
Dylan Smith authored
-
Dylan Smith authored
-
Dylan Smith authored
This avoids having to delete the device context and the bitmap selected into it just to update the bitmap, since it was setting preview.hdc to NULL to indicate that these bitmaps needed to be updated. This patch also helps make WM_PAINT messages get processed faster by moving this out of the code for handling WM_PAINT.
-
Dylan Smith authored
Previously hdc2 needed to be deleted and set to NULL to indicate that only one page should be shown. I have avoided this using a new variable for the preview structure. The device context were also being deleted without deleting the bitmaps created for them and selected into them, so this patch also gets these bitmaps and deletes them with their device context.
-
Dylan Smith authored
Rather than making seperate calls to EM_FORMATRANGE to get the number of pages and the character boundaries, it would be easiest to get both together. The time to process EM_FORMATRANGE seems like it would take a lot longer than the time needed to cache the character page boundaries.
-
Dylan Smith authored
-
- 18 Feb, 2010 1 commit
-
-
Dylan Smith authored
Previewly monochrome bitmaps were being created by CreateCompatibleBitmap because the hdc passed into that call came from CreateCompatibleDC which is initialized with a single pixel monochrome bitmap.
-
- 10 Feb, 2010 1 commit
-
-
Dylan Smith authored
-
- 29 Jan, 2010 2 commits
-
-
Dylan Smith authored
The preview is now drawn onto it's own window rather directly onto the client area of the top level window. This is done to allow for scrollbars, since the page won't usually fit in the window when zoomed in. Refactoring was needed as a result of this, and in order to provide more granularity for updates to avoid EM_FORMATRANGE messages being sent when the page the same page is being displayed.
-
Dylan Smith authored
-
- 27 Jan, 2010 2 commits
-
-
Dylan Smith authored
EM_FORMATRANGE will render the text if wParam is non-zero, and there is no reason to actually render the text when just getting the number of pages.
-
Dylan Smith authored
EM_FORMATRANGE will set rc.bottom within the FORMATRANGE struct to be the bottom of the area actually printed to, so this must be reset between calls to make sure that the page boundaries are consistent between the pages.
-
- 28 Dec, 2009 1 commit
-
-
Alexandre Julliard authored
-
- 17 Aug, 2009 1 commit
-
-
Dylan Smith authored
The cbSize field for the REBARBANDINFOW structure was previously set to the sizeof(REBARBANDINFOW), however, new fields were added to this structure for newer version of windows. Testing in Windows XP (or with comctl32.dll from Windows XP) I found this larger size was rejected causing the rebar to not be displayed in wordpad.
-
- 07 Apr, 2009 1 commit
-
-
Michael Stefaniuc authored
-
- 19 Jan, 2009 1 commit
-
-
Michael Stefaniuc authored
-
- 14 Oct, 2008 1 commit
-
-
Dylan Smith authored
-
- 13 Oct, 2008 1 commit
-
-
Andrey Turkin authored
-
- 10 Oct, 2008 1 commit
-
-
Andrey Turkin authored
-
- 23 Jul, 2008 1 commit
-
-
Gerald Pfeifer authored
-
- 14 Apr, 2008 1 commit
-
-
Alexandre Julliard authored
-
- 09 Apr, 2008 1 commit
-
-
Dmitry Timoshkov authored
-
- 27 Mar, 2008 2 commits
-
-
Michael Stefaniuc authored
-
Alexander Nicolaysen Sørnes authored
-
- 14 Jan, 2008 2 commits
-
-
Alexander Nicolaysen Sørnes authored
-
Alexander Nicolaysen Sørnes authored
-
- 08 Jan, 2008 1 commit
-
-
Alexander Nicolaysen Sørnes authored
-
- 20 Nov, 2007 1 commit
-
-
Alexander Nicolaysen Sørnes authored
-