wine
14 years agooleaut32/tests: Add some tests.
André Hentschel [Wed, 24 Feb 2010 18:09:22 +0000 (19:09 +0100)] 
oleaut32/tests: Add some tests.

14 years agoinclude: Don't accidentally redefine a member in struct _IRP (LLVM/Clang).
Charles Davis [Wed, 24 Feb 2010 16:50:03 +0000 (09:50 -0700)] 
include: Don't accidentally redefine a member in struct _IRP (LLVM/Clang).

14 years agotests: The ok() macro shouldn't return a value.
Alexandre Julliard [Wed, 24 Feb 2010 15:48:07 +0000 (16:48 +0100)] 
tests: The ok() macro shouldn't return a value.

14 years agokernel32/tests: Fix broken usage of the ok() macro return value.
Alexandre Julliard [Wed, 24 Feb 2010 15:47:48 +0000 (16:47 +0100)] 
kernel32/tests: Fix broken usage of the ok() macro return value.

Spotted by Yann Droneaud.

14 years agontdll/tests: Fix a crash on some Vista boxes.
Paul Vriens [Wed, 24 Feb 2010 14:33:01 +0000 (15:33 +0100)] 
ntdll/tests: Fix a crash on some Vista boxes.

14 years agocomctl32/tests: Fix broken check of the ok() macro return value.
Alexandre Julliard [Wed, 24 Feb 2010 15:04:18 +0000 (16:04 +0100)] 
comctl32/tests: Fix broken check of the ok() macro return value.

Spotted by Yann Droneaud.

14 years agouser32/tests: Fix broken check of the ok() macro return value.
Alexandre Julliard [Wed, 24 Feb 2010 15:04:11 +0000 (16:04 +0100)] 
user32/tests: Fix broken check of the ok() macro return value.

Spotted by Yann Droneaud.

14 years agoshell32/tests: Fix broken check of the ok() macro return value.
Alexandre Julliard [Wed, 24 Feb 2010 15:04:05 +0000 (16:04 +0100)] 
shell32/tests: Fix broken check of the ok() macro return value.

Spotted by Yann Droneaud.

14 years agoshell32/tests: Don't use the return value of the ok macro.
Alexandre Julliard [Wed, 24 Feb 2010 15:03:15 +0000 (16:03 +0100)] 
shell32/tests: Don't use the return value of the ok macro.

14 years agouser32: DeleteDC() should allow to delete a DC returned by GetDC().
Dmitry Timoshkov [Wed, 24 Feb 2010 14:44:41 +0000 (22:44 +0800)] 
user32: DeleteDC() should allow to delete a DC returned by GetDC().

14 years agouser32: Use whole window rectangle for UpdateLayeredWindow.
Nikolay Sivov [Wed, 24 Feb 2010 14:30:48 +0000 (17:30 +0300)] 
user32: Use whole window rectangle for UpdateLayeredWindow.

14 years agooleaut32: Added implementation of ITypeInfo2_GetRefTypeOfImplType.
Piotr Caban [Wed, 24 Feb 2010 13:28:09 +0000 (14:28 +0100)] 
oleaut32: Added implementation of ITypeInfo2_GetRefTypeOfImplType.

14 years agooleaut32: Added implementation of ITypeInfo2_GetImplTypeFlags.
Piotr Caban [Wed, 24 Feb 2010 13:27:46 +0000 (14:27 +0100)] 
oleaut32: Added implementation of ITypeInfo2_GetImplTypeFlags.

14 years agooleaut32/tests: Remove incorrect test.
Piotr Caban [Wed, 24 Feb 2010 13:26:57 +0000 (14:26 +0100)] 
oleaut32/tests: Remove incorrect test.

This test is crashing on some systems.

14 years agooleaut32: Improve TKIND_COCLASS handling while creating typelib.
Piotr Caban [Wed, 24 Feb 2010 13:26:32 +0000 (14:26 +0100)] 
oleaut32: Improve TKIND_COCLASS handling while creating typelib.

14 years agooleaut32: Fix importfile searching in ctl2_alloc_importinfo.
Piotr Caban [Wed, 24 Feb 2010 13:25:55 +0000 (14:25 +0100)] 
oleaut32: Fix importfile searching in ctl2_alloc_importinfo.

14 years agooleaut32: Added implementation of ITypeInfo2_fnGetTypeAttr.
Piotr Caban [Wed, 24 Feb 2010 13:24:12 +0000 (14:24 +0100)] 
oleaut32: Added implementation of ITypeInfo2_fnGetTypeAttr.

14 years agowinex11.drv: Add a new debug channel for XIM.
Kusanagi Kouichi [Wed, 24 Feb 2010 11:04:14 +0000 (20:04 +0900)] 
winex11.drv: Add a new debug channel for XIM.

14 years agowinex11.drv: There seems to be nothing to be done for IMN_SETOPENSTATUS.
Kusanagi Kouichi [Wed, 24 Feb 2010 11:04:01 +0000 (20:04 +0900)] 
winex11.drv: There seems to be nothing to be done for IMN_SETOPENSTATUS.

14 years agowinex11.drv: Generate IME messages as needed.
Kusanagi Kouichi [Wed, 24 Feb 2010 11:03:44 +0000 (20:03 +0900)] 
winex11.drv: Generate IME messages as needed.

14 years agogdi32: Dump GDI objects in the case of running out of GDI handles.
Dmitry Timoshkov [Wed, 24 Feb 2010 09:11:32 +0000 (17:11 +0800)] 
gdi32: Dump GDI objects in the case of running out of GDI handles.

14 years agowinmm/tests: Fix transient notification error: messages may arrive late.
Jörg Höhle [Tue, 23 Feb 2010 18:19:12 +0000 (19:19 +0100)] 
winmm/tests: Fix transient notification error: messages may arrive late.

14 years agowordpad: Number of preview pages to show when unzoomed is persistent.
Dylan Smith [Wed, 24 Feb 2010 07:29:02 +0000 (02:29 -0500)] 
wordpad: Number of preview pages to show when unzoomed is persistent.

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.

14 years agowordpad: Added zoom cursor for print preview.
Dylan Smith [Wed, 24 Feb 2010 07:28:57 +0000 (02:28 -0500)] 
wordpad: Added zoom cursor for print preview.

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.

14 years agomsvcrt: Implement _mbctombb.
David Hedberg [Wed, 24 Feb 2010 03:52:52 +0000 (04:52 +0100)] 
msvcrt: Implement _mbctombb.

14 years agomakefiles: Remove makedep only after everything else has been cleaned.
Alexandre Julliard [Wed, 24 Feb 2010 11:26:11 +0000 (12:26 +0100)] 
makefiles: Remove makedep only after everything else has been cleaned.

14 years agontdll: Mac: Fix leak of send right for Mach thread port.
Ken Thomases [Wed, 24 Feb 2010 06:52:13 +0000 (00:52 -0600)] 
ntdll: Mac: Fix leak of send right for Mach thread port.

The leaked send right kept the port alive for threads that are gone.  For
processes which create a lot of threads, this can cause performance problems.

14 years agouser32: Intersect with passed dirty rectangle while blitting.
Nikolay Sivov [Tue, 23 Feb 2010 21:20:12 +0000 (00:20 +0300)] 
user32: Intersect with passed dirty rectangle while blitting.

14 years agouser32/tests: Test to show that caption added for WS_EX_LAYERED as well.
Nikolay Sivov [Tue, 23 Feb 2010 18:18:26 +0000 (13:18 -0500)] 
user32/tests: Test to show that caption added for WS_EX_LAYERED as well.

14 years agoquartz: Do not assert() the existence of a media format of an input pin.
Paul Chitescu [Tue, 23 Feb 2010 20:37:40 +0000 (22:37 +0200)] 
quartz: Do not assert() the existence of a media format of an input pin.

14 years agoextrac32: Implement /C mode.
Andrey Turkin [Tue, 23 Feb 2010 15:41:47 +0000 (18:41 +0300)] 
extrac32: Implement /C mode.

14 years agokernel32: Use TEB-based buffer in CreateMutexExA.
Andrey Turkin [Tue, 23 Feb 2010 15:41:27 +0000 (18:41 +0300)] 
kernel32: Use TEB-based buffer in CreateMutexExA.

14 years agoshell32: Allow copy operation to overwrite an existing write protected file + tests.
Christian Costa [Tue, 23 Feb 2010 08:53:23 +0000 (09:53 +0100)] 
shell32: Allow copy operation to overwrite an existing write protected file + tests.

14 years agomakefiles: Add some shell function helpers to generate the makefile rules.
Alexandre Julliard [Tue, 23 Feb 2010 13:24:57 +0000 (14:24 +0100)] 
makefiles: Add some shell function helpers to generate the makefile rules.

14 years agomakefiles: Always build dependencies by default and get rid of the auto-depend rules.
Alexandre Julliard [Tue, 23 Feb 2010 12:44:55 +0000 (13:44 +0100)] 
makefiles: Always build dependencies by default and get rid of the auto-depend rules.

14 years agomakefiles: Always generate the subdirs makefiles from the main makefile.
Alexandre Julliard [Tue, 23 Feb 2010 12:33:52 +0000 (13:33 +0100)] 
makefiles: Always generate the subdirs makefiles from the main makefile.

14 years agowininet: Fix a memory leak.
Hans Leidekker [Tue, 23 Feb 2010 12:03:37 +0000 (13:03 +0100)] 
wininet: Fix a memory leak.

Found by Valgrind.

14 years agomsi: Add tests for creating and removing duplicate files.
Hans Leidekker [Tue, 23 Feb 2010 12:00:18 +0000 (13:00 +0100)] 
msi: Add tests for creating and removing duplicate files.

14 years agomsi: Implement the RemoveDuplicateFiles standard action.
Hans Leidekker [Tue, 23 Feb 2010 11:59:52 +0000 (12:59 +0100)] 
msi: Implement the RemoveDuplicateFiles standard action.

14 years agokrnl386.exe: Add an explicit name check to allow importing user.exe and gdi.exe even...
Alexandre Julliard [Tue, 23 Feb 2010 12:30:52 +0000 (13:30 +0100)] 
krnl386.exe: Add an explicit name check to allow importing user.exe and gdi.exe even if not loaded already.

14 years agowinex11: Switch owner window to managed when displaying one of its popups.
Alexandre Julliard [Tue, 23 Feb 2010 11:35:10 +0000 (12:35 +0100)] 
winex11: Switch owner window to managed when displaying one of its popups.

14 years agowinex11: Windows that own popups should be managed.
Alexandre Julliard [Tue, 23 Feb 2010 11:34:19 +0000 (12:34 +0100)] 
winex11: Windows that own popups should be managed.

14 years agowinex11: Make sure that the owner window exists when setting the transient for attribute.
Alexandre Julliard [Tue, 23 Feb 2010 11:33:01 +0000 (12:33 +0100)] 
winex11: Make sure that the owner window exists when setting the transient for attribute.

14 years agoshlwapi/tests: Skip SHCreateStreamOnFileA/W configurations not supported on Win98 SE.
Reece Dunn [Tue, 23 Feb 2010 07:39:05 +0000 (07:39 +0000)] 
shlwapi/tests: Skip SHCreateStreamOnFileA/W configurations not supported on Win98 SE.

14 years agouser32/tests: Fix a failure message trace.
Andrew Nguyen [Tue, 23 Feb 2010 07:16:26 +0000 (01:16 -0600)] 
user32/tests: Fix a failure message trace.

14 years agouser32: Ensure that WM_INITDIALOG passes the first tabstop control handle to the...
Andrew Nguyen [Tue, 23 Feb 2010 07:16:18 +0000 (01:16 -0600)] 
user32: Ensure that WM_INITDIALOG passes the first tabstop control handle to the dialog procedure.

14 years agomsvcrt: Implement _ismbclegal.
David Hedberg [Tue, 23 Feb 2010 06:05:44 +0000 (07:05 +0100)] 
msvcrt: Implement _ismbclegal.

14 years agomsvcrt: Add trail bytes info for codepage 1361.
David Hedberg [Tue, 23 Feb 2010 05:43:12 +0000 (06:43 +0100)] 
msvcrt: Add trail bytes info for codepage 1361.

14 years agoserver: Check create_event return value in console creation.
XueFeng Chang [Tue, 23 Feb 2010 03:54:28 +0000 (11:54 +0800)] 
server: Check create_event return value in console creation.

14 years agooleaut32/tests: Added more typelib creation tests.
Piotr Caban [Mon, 22 Feb 2010 22:16:19 +0000 (23:16 +0100)] 
oleaut32/tests: Added more typelib creation tests.

14 years agooleaut32: Improved implementation of ICreateTypeInfo2_fnAddImplType.
Piotr Caban [Mon, 22 Feb 2010 22:15:42 +0000 (23:15 +0100)] 
oleaut32: Improved implementation of ICreateTypeInfo2_fnAddImplType.

14 years agooleaut: Added ITypeInfo2_fnGetRefTypeInfo implementation.
Piotr Caban [Mon, 22 Feb 2010 22:15:09 +0000 (23:15 +0100)] 
oleaut: Added ITypeInfo2_fnGetRefTypeInfo implementation.

14 years agooleaut32: Improved ICreateTypeInfo2_AddRefTypeInfo implementation.
Piotr Caban [Mon, 22 Feb 2010 22:14:40 +0000 (23:14 +0100)] 
oleaut32: Improved ICreateTypeInfo2_AddRefTypeInfo implementation.

14 years agooleaut32/tests: Added VT_PTR tests in function arguments.
Piotr Caban [Mon, 22 Feb 2010 22:14:12 +0000 (23:14 +0100)] 
oleaut32/tests: Added VT_PTR tests in function arguments.

14 years agooleaut32: Improved ICreateTypeInfo2_SetFuncAndParamNames implementation.
Piotr Caban [Mon, 22 Feb 2010 22:13:42 +0000 (23:13 +0100)] 
oleaut32: Improved ICreateTypeInfo2_SetFuncAndParamNames implementation.

14 years agooleaut32: Added VT_BSTR handling to ctl2_add_default_value.
Piotr Caban [Mon, 22 Feb 2010 22:13:14 +0000 (23:13 +0100)] 
oleaut32: Added VT_BSTR handling to ctl2_add_default_value.

14 years agooleaut32: Added more arguments with default values handling.
Piotr Caban [Mon, 22 Feb 2010 22:12:45 +0000 (23:12 +0100)] 
oleaut32: Added more arguments with default values handling.

14 years agooleaut32: Added partial ICreateTypeInfo2_AddFuncDesc arguments with default values...
Piotr Caban [Mon, 22 Feb 2010 22:11:57 +0000 (23:11 +0100)] 
oleaut32: Added partial ICreateTypeInfo2_AddFuncDesc arguments with default values handling.

14 years agontdll/tests: Test NtCreateFile with an invalid filename.
Stefan Leichter [Mon, 22 Feb 2010 21:37:04 +0000 (22:37 +0100)] 
ntdll/tests: Test NtCreateFile with an invalid filename.

14 years agowined3d: Escape shader comments.
Henri Verbeet [Mon, 22 Feb 2010 20:37:20 +0000 (21:37 +0100)] 
wined3d: Escape shader comments.

14 years agowined3d: Properly report shader comment sizes.
Henri Verbeet [Mon, 22 Feb 2010 20:37:19 +0000 (21:37 +0100)] 
wined3d: Properly report shader comment sizes.

14 years agocmd: Fix a memory leak (Valgrind).
Paul Vriens [Mon, 22 Feb 2010 20:29:18 +0000 (21:29 +0100)] 
cmd: Fix a memory leak (Valgrind).

14 years agontdll: Notify valgrind for stack management while in exception.
Eric Pouech [Mon, 22 Feb 2010 20:03:35 +0000 (21:03 +0100)] 
ntdll: Notify valgrind for stack management while in exception.

14 years agooleaut32: Reorder some code to make it easier to read and look like the block above.
André Hentschel [Mon, 22 Feb 2010 17:52:37 +0000 (18:52 +0100)] 
oleaut32: Reorder some code to make it easier to read and look like the block above.

14 years agomshtml: Silence IStdMarshalInfo in htmldoc_qi FIXME.
Vitaly Perov [Mon, 22 Feb 2010 16:19:31 +0000 (19:19 +0300)] 
mshtml: Silence IStdMarshalInfo in htmldoc_qi FIXME.

14 years agomlang/tests: Add another possible failure for Win2k.
Alexandre Julliard [Tue, 23 Feb 2010 10:26:32 +0000 (11:26 +0100)] 
mlang/tests: Add another possible failure for Win2k.

14 years agokernel32/tests: Add a couple of last error codes for Win7.
Alexandre Julliard [Tue, 23 Feb 2010 10:24:08 +0000 (11:24 +0100)] 
kernel32/tests: Add a couple of last error codes for Win7.

14 years agoadvapi32/tests: Fix a test failure on Wow64.
Alexandre Julliard [Tue, 23 Feb 2010 10:07:02 +0000 (11:07 +0100)] 
advapi32/tests: Fix a test failure on Wow64.

14 years agommdevapi: Add todo_wine in dependency test.
Maarten Lankhorst [Sun, 21 Feb 2010 10:53:38 +0000 (11:53 +0100)] 
mmdevapi: Add todo_wine in dependency test.

14 years agommdevapi: Add tests for renderclient.
Maarten Lankhorst [Sun, 21 Feb 2010 10:53:11 +0000 (11:53 +0100)] 
mmdevapi: Add tests for renderclient.

14 years agorpcrt4: Add support for FC_FLOAT and FC_DOUBLE in complex structures.
Huw Davies [Mon, 22 Feb 2010 11:49:19 +0000 (11:49 +0000)] 
rpcrt4: Add support for FC_FLOAT and FC_DOUBLE in complex structures.

14 years agowinmm/tests: MIDIHDR tests.
Jörg Höhle [Tue, 16 Feb 2010 23:36:56 +0000 (00:36 +0100)] 
winmm/tests: MIDIHDR tests.

14 years agowinmm: Accept the ancient, smaller MIDIHDR.
Jörg Höhle [Tue, 16 Feb 2010 08:32:53 +0000 (09:32 +0100)] 
winmm: Accept the ancient, smaller MIDIHDR.

14 years agowinmm: MIDIHDR.dwOffset is set with MEVT_F_CALLBACK only.
Jörg Höhle [Tue, 16 Feb 2010 09:31:05 +0000 (10:31 +0100)] 
winmm: MIDIHDR.dwOffset is set with MEVT_F_CALLBACK only.

At the same time, the change to the player loop prevents a buffer
overshoot and a (perhaps unlikely) program trace where a sequence
Suspend; Stop; midiStreamOut could send MOM_DONE twice and access
memory possibly released within a MOM_DONE DCB_FUNCTION callback.

14 years agowinmm: Do not access MIDIHDR past MOM_DONE DriverCallback.
Jörg Höhle [Tue, 16 Feb 2010 21:10:03 +0000 (22:10 +0100)] 
winmm: Do not access MIDIHDR past MOM_DONE DriverCallback.

14 years agomidimap: Have GetDevCaps error out when no MIDI device is present.
Jörg Höhle [Thu, 18 Feb 2010 16:37:25 +0000 (17:37 +0100)] 
midimap: Have GetDevCaps error out when no MIDI device is present.

14 years agowinealsa: Do not access WAVEHDR past DriverCallback.
Jörg Höhle [Sat, 20 Feb 2010 16:27:50 +0000 (17:27 +0100)] 
winealsa: Do not access WAVEHDR past DriverCallback.

14 years agowineoss: Do not access WAVEHDR past DriverCallback.
Jörg Höhle [Sat, 20 Feb 2010 15:34:59 +0000 (16:34 +0100)] 
wineoss: Do not access WAVEHDR past DriverCallback.

14 years agouser32: Sync vkey codes with winuser.h.
Jörg Höhle [Tue, 16 Feb 2010 08:04:07 +0000 (09:04 +0100)] 
user32: Sync vkey codes with winuser.h.

14 years agowininet: Fix handling of a response without headers.
Hans Leidekker [Mon, 22 Feb 2010 11:28:03 +0000 (12:28 +0100)] 
wininet: Fix handling of a response without headers.

14 years agowinhttp: Add support for resolve timeouts.
Hans Leidekker [Mon, 22 Feb 2010 11:27:30 +0000 (12:27 +0100)] 
winhttp: Add support for resolve timeouts.

14 years agokernel32/tests: Fix a thread handle leak.
Hans Leidekker [Mon, 22 Feb 2010 11:27:01 +0000 (12:27 +0100)] 
kernel32/tests: Fix a thread handle leak.

14 years agofusion: Add a stub implementation of CreateApplicationContext.
Hans Leidekker [Mon, 22 Feb 2010 11:26:34 +0000 (12:26 +0100)] 
fusion: Add a stub implementation of CreateApplicationContext.

14 years agomsi: Allocate sufficient memory in ITERATE_InstallODBCDriver and ITERATE_InstallODBCT...
Hans Leidekker [Mon, 22 Feb 2010 11:26:09 +0000 (12:26 +0100)] 
msi: Allocate sufficient memory in ITERATE_InstallODBCDriver and ITERATE_InstallODBCTranslator.

Found by Valgrind.

14 years agomsi/tests: Free exception information.
Hans Leidekker [Mon, 22 Feb 2010 11:25:45 +0000 (12:25 +0100)] 
msi/tests: Free exception information.

Found by Valgrind.

14 years agomsi: All stream names starting with 0x0005 are unencoded.
Hans Leidekker [Mon, 22 Feb 2010 11:25:21 +0000 (12:25 +0100)] 
msi: All stream names starting with 0x0005 are unencoded.

Fixes a regression caused by 1ff992314887d03abeb4098789701ff3bfd5d2d8.

14 years agomsi: Make msi_reset_folders static.
Hans Leidekker [Mon, 22 Feb 2010 11:24:45 +0000 (12:24 +0100)] 
msi: Make msi_reset_folders static.

14 years agod3dx9_36: Fix AddRef and Release macros and add IID for ID3DXConstantTable.
Christian Costa [Sun, 21 Feb 2010 21:30:33 +0000 (22:30 +0100)] 
d3dx9_36: Fix AddRef and Release macros and add IID for ID3DXConstantTable.

14 years agod3dx9_36: Add stub for D3DXGetShaderConstantTableEx. Implement D3DXGetShaderConstantT...
Christian Costa [Sun, 21 Feb 2010 21:30:27 +0000 (22:30 +0100)] 
d3dx9_36: Add stub for D3DXGetShaderConstantTableEx. Implement D3DXGetShaderConstantTable.

14 years agocomdlg32: Always use screen dpi in the font dialog, even with a printer dc.
Vincent Povirk [Fri, 19 Feb 2010 22:50:22 +0000 (16:50 -0600)] 
comdlg32: Always use screen dpi in the font dialog, even with a printer dc.

14 years agocomdlg32: Add a test showing the font dialog ignores printer dpi.
Vincent Povirk [Fri, 19 Feb 2010 22:45:07 +0000 (16:45 -0600)] 
comdlg32: Add a test showing the font dialog ignores printer dpi.

14 years agod3d8: Display FIXME only once in ValidatePixelShader and ValidateVertexShader.
Christian Costa [Fri, 19 Feb 2010 14:37:23 +0000 (15:37 +0100)] 
d3d8: Display FIXME only once in ValidatePixelShader and ValidateVertexShader.

14 years agocomctl32: Initialize item.mask before sending HDM_GETITEM message.
Dmitry Timoshkov [Mon, 22 Feb 2010 06:54:17 +0000 (14:54 +0800)] 
comctl32: Initialize item.mask before sending HDM_GETITEM message.

14 years agowordpad: Avoid forward declarations in print.c.
Dylan Smith [Mon, 22 Feb 2010 08:18:41 +0000 (03:18 -0500)] 
wordpad: Avoid forward declarations in print.c.

14 years agowordpad: Don't waste time getting the number of preview pages.
Dylan Smith [Mon, 22 Feb 2010 08:18:35 +0000 (03:18 -0500)] 
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.

14 years agowordpad: Avoid unnecessary deletion of hdcSized.
Dylan Smith [Mon, 22 Feb 2010 08:18:29 +0000 (03:18 -0500)] 
wordpad: Avoid unnecessary deletion of hdcSized.

14 years agowordpad: Cache text length.
Dylan Smith [Mon, 22 Feb 2010 08:18:23 +0000 (03:18 -0500)] 
wordpad: Cache text length.

14 years agowordpad: Update bitmaps outside of WM_PAINT.
Dylan Smith [Mon, 22 Feb 2010 08:18:18 +0000 (03:18 -0500)] 
wordpad: Update bitmaps outside of WM_PAINT.

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.

14 years agowordpad: Use pages_shown variables to indicate pages shown.
Dylan Smith [Mon, 22 Feb 2010 08:18:11 +0000 (03:18 -0500)] 
wordpad: Use pages_shown variables to indicate pages shown.

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.

14 years agowordpad: Get preview page character boundaries with number of pages.
Dylan Smith [Mon, 22 Feb 2010 08:18:06 +0000 (03:18 -0500)] 
wordpad: Get preview page character boundaries with number of pages.

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.