Commit graph

397 commits

Author SHA1 Message Date
Nikolay Sivov
ee1f96ebfb wordpad: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Eric Pouech
e7dda902a0 wordpad: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-07 11:00:20 +01:00
Alexandre Julliard
f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Zhiyi Zhang
b8578a8ba9 wordpad: Add system DPI awareness settings to the application manifest.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-08 08:55:04 +02:00
Zhiyi Zhang
766388c552 wordpad: Use large icons for toolbar when DPI is greater than 120.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:44:12 +02:00
Zhiyi Zhang
b564414e9b wordpad: Enable visual styles.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-11 10:55:03 +02:00
Alexandre Julliard
04f0729d94 wordpad: Make qsort callback function cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-18 22:46:36 +01:00
Nikolay Sivov
a600d7ece1 wordpad: Fill font selection combobox with fully processed font list.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46478
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-13 13:13:37 +01:00
Serge Gautherie
7770e26f2d include: Remove now useless forced _WIN32_IE defines.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-20 19:38:38 +01:00
Alexandre Julliard
a58f4abc08 makefiles: Allow using EXTRADLLFLAGS instead of APPMODE.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-24 11:27:39 +02:00
Zebediah Figura
dcd9376ae7 wordpad: Use GetSysColorBrush().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-19 12:02:01 +02:00
Alexandre Julliard
9b63daca51 include: Default to the standards-compliant version of swprintf().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-11 16:46:41 +02:00
Alexandre Julliard
83c99c0219 wordpad: Use C runtime wchar functions instead of wine/unicode.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-01 12:42:05 +02:00
Isira Seneviratne
7e686bb05d wordpad: Update STRING_TEXT_FILES_UNICODE_TXT string to plural format.
Change "document" in "Unicode text document (*.txt)" to "documents" to
match the other file selection strings.

Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-18 16:14:29 +01:00
Michael Stefaniuc
e4f68323fc wordpad: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:44:12 +02:00
Alexandre Julliard
86aad73177 wordpad: Specify cursor hotspots separately for each size.
This is supported in icoutils as of version 0.32.0.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-17 16:26:37 +02:00
Alexandre Julliard
756fdd029c wordpad: New high resolution cursor generated from SVG.
Based on a cursor set published by Ludvig Hummel under the X11 license.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-14 13:30:21 +02:00
Akihiro Sagawa
2532b1476a wordpad: Avoid using isspace() for WCHARs.
Found with Coccinelle.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 16:11:24 +02:00
Huw Davies
8d22b60c80 wordpad: Scale the comboboxes with font size and correctly set the rebar band height.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 15:38:48 +02:00
Henri Verbeet
ff0a34e9c9 wordpad: Fall back to the default position if the saved position is off-screen.
This condition is particularly easy to trigger when switching from a
multi-head setup to a virtual desktop. Inspired by some fairly similar
code in notepad.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 10:01:47 +01:00
Nikolay Sivov
e492a0d68b wordpad: Clean up IRichEditOleCallback implementation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 18:50:11 +01:00
Michael Stefaniuc
a1a48e87a3 wordpad: Avoid a TRUE : FALSE conditional expression.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 21:38:54 +01:00
Carlo Bramini
0f4891ff53 wordpad: Use return value of LoadStringW() instead of calling lstrlenW().
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:09 -06:00
Carlo Bramini
d38c0c3b7c wordpad: Fix syntax error in resource files (native Windows build).
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-01 20:32:57 +01:00
Huw Davies
9a1cc45edd wordpad: Keep the list indentation aligned when the margins are changed.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-11 16:59:31 +02:00
Huw Davies
6d263cd490 wordpad: Add a dropdown menu to the bullet button.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-11 16:59:30 +02:00
Huw Davies
6ac0dd0352 wordpad: Remove BTNS_BUTTON from the toolbar style - it's a button style.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-11 16:54:33 +02:00
Huw Davies
2878d1e341 wordpad: Switch the main menu to MENUEX so that the list menu can be given an id.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-11 16:54:26 +02:00
Huw Davies
c11d931ea3 wordpad: Add list labelling menu.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:11:11 +02:00
Huw Davies
c8d96b96da wordpad: Improve the indentation of bulleted lists.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 13:12:17 +02:00
Huw Davies
9b701eb7eb wordpad: Only read up to the maximum number of recent files from the menu.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-23 20:48:18 +09:00
Michael Stefaniuc
0a3700e051 wordpad: Use InflateRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-10 11:07:38 +09:00
Michael Stefaniuc
098adff646 wordpad: Use InflateRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 11:02:56 +09:00
Michael Stefaniuc
8e05ddb1f8 wordpad: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 11:02:50 +09:00
Thomas Faber
f07a25467f wordpad: Remove superfluous check in registry_set_filelist.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:12:51 +09:00
Michael Stefaniuc
dc525e8c40 wordpad: Use OffsetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-06 18:48:34 +09:00
Nikolay Sivov
fde563b0d4 wordpad: Use correct buffer size when calling SHGetFolderPathW() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-14 13:14:10 +09:00
André Hentschel
b5c3408a5e wordpad: Copy the correct amount of data with lstrcpynW (Coverity). 2015-07-20 06:32:47 +02:00
Michael Stefaniuc
9e7135e00c wordpad: Simplify code that happened to work by chance (PVS-Studio). 2015-03-06 20:32:03 +09:00
Gerald Pfeifer
c7482ad1c1 wordpad: Avoid an out-of-bounds array access in registry_set_filelist. 2014-12-31 21:12:46 +01:00
Gerald Pfeifer
1994140f3d wordpad: Check for array index before using it in registry_set_filelist. 2014-12-01 11:00:15 +01:00
Alexandre Julliard
3e40fea9d6 makefiles: Automatically add the necessary msvcrt flags to the generated rules. 2014-01-08 14:34:15 +01:00
Alexandre Julliard
86b1f94d28 makefiles: Get rid of the MAKE_PROG_RULES variable. 2014-01-02 12:12:57 +01:00
Alexandre Julliard
4f3d71cef3 makefiles: Get rid of the no longer used PO_SRCS variables. 2013-12-15 10:23:04 +01:00
Huw Davies
39538f91f5 wordpad: Pass the correct window to the font size list validator. 2013-12-06 17:51:31 +01:00
Alexandre Julliard
5756ee09f3 makefiles: Add makedep pragmas for rc files that contain translations. 2013-11-05 20:38:19 +01:00
Frédéric Delanoy
4ef76cd75c wordpad: Use BOOL type where appropriate. 2013-11-04 11:03:46 +01:00
Frédéric Delanoy
682c89ced3 wordpad: Use BOOL type where appropriate. 2013-10-17 10:45:31 +02:00
Alexandre Julliard
fb6b0f93c2 wordpad: Don't offer vertical fonts in the font dialog. 2013-06-25 18:12:11 +02:00