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
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
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
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
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
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
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
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
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
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
Huw Davies
39538f91f5
wordpad: Pass the correct window to the font size list validator.
2013-12-06 17:51:31 +01:00
Frédéric Delanoy
4ef76cd75c
wordpad: Use BOOL type where appropriate.
2013-11-04 11:03:46 +01:00
Alexandre Julliard
fb6b0f93c2
wordpad: Don't offer vertical fonts in the font dialog.
2013-06-25 18:12:11 +02:00
Michael Stefaniuc
bf3e3d02d5
wordpad: Avoid TRUE:FALSE conditional expressions.
2012-08-13 17:30:17 +02:00
Huw Davies
965388465d
wordpad: Don't quit if the user cancels the save-as dialog when being prompted to save changes.
2012-04-11 18:19:40 +02:00
Alexandre Julliard
f2fe53d6ab
wordpad: Avoid Unicode macros.
2012-01-20 12:07:24 +01:00
Michael Stefaniuc
3e59606a3c
wordpad: Don't compare with TRUE.
2011-10-03 09:43:31 -05:00
Francois Gouget
c992ca277d
Assorted spelling fixes.
2011-08-24 19:07:46 +02:00
André Hentschel
347049bca8
wordpad: Replace obsolete styles.
2010-11-03 11:08:55 +01:00
Dylan Smith
d8a05c37d9
wordpad: Allow objects & images to be added with native riched20.
...
Native riched20.dll seems to need an IRichEditOleCallback object in
order to get a buffer to store the image (using the GetNewStorage
method).
2010-07-22 16:11:37 +02:00
Dylan Smith
c37cdce905
wordpad: Save and load word wrap registry options.
2010-07-20 13:13:04 +02:00
Dylan Smith
6c9edce1a8
wordpad: Reduce unnecessary flicker from extra background erasing.
2010-07-20 13:13:04 +02:00
Dylan Smith
dd789d50f2
wordpad: Search finished message box should be modal.
2010-07-20 13:13:04 +02:00
Dylan Smith
fbd30765f0
wordpad: Find dialogs intialize find field with selection.
...
If there is a selection that doesn't span multiple paragraphs, then the
selection text initializes the find field in native wordpad, otherwise the
last search is used to initialize the field. I added an extra buffer,
since closing the find dialog before doing a search will preserve the last
search state.
2010-07-20 13:13:04 +02:00
Dylan Smith
72f735b25e
wordpad: Fix behaviour of find/replace dialog.
...
Pressing replace should only replace a selected match, and afterwards it
should find the next match. Searches should always start from the start of
the selection, even if the selection is moved in between searches. Searches
wrap at the end of text, and should keep track of whether it has wrapped
from previous searches to determine if it reached the end position.
2010-07-20 13:13:04 +02:00
Dylan Smith
0c50285e3e
wordpad: Use correct resource ID for tab stops dialog.
...
Fixes regression from commit 55f024afe1
.
2010-06-25 10:25:38 +02:00
Dylan Smith
250855bfb0
wordpad: Fix failing GetDlgItem that forced screen repaint.
...
The rebar is the parent of the ruler, not the top level window, so
GetDlgItem was returning NULL when the window is resized. As a result the
screen was being invalidated and repainted instead of the ruler.
2010-06-15 18:29:07 +02:00
Dylan Smith
975dd904ef
wordpad: Provide buffer for replace with text.
2010-06-11 11:38:53 +02:00
Dylan Smith
d10ce5df26
wordpad: Native RegisterClassExW requires cbSize to be set.
2010-06-11 11:37:02 +02:00
Katayama Hirofumi MZ
c92691e1f5
wordpad: Add units (in/inch/pt).
2010-05-11 11:26:36 +02:00
Gerald Pfeifer
2488c8a545
wordpad: Remove variable i which is not really used from OnCommand.
2010-04-26 07:00:53 -05:00
Alexandre Julliard
b2e7e5c353
wordpad: Set the window small icon, and get rid of old icons.
2010-04-19 20:13:34 +02:00
Dylan Smith
bb58537e95
wordpad: Show page numbers in statusbar for print preview.
2010-02-25 12:11:13 +01:00
Dylan Smith
2397171cf3
wordpad: Added text colour toolbar button.
2010-02-18 12:42:46 +01:00
Dylan Smith
7aba35c608
wordpad: Fixed quick print so that it doesn't print blank pages.
2010-02-10 11:35:01 +01:00
Dylan Smith
0c46da86bf
wordpad: Implement zooming in for print preview.
...
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.
2010-01-29 14:59:02 +01:00
Alexandre Julliard
55f024afe1
wordpad: Use the main module instance instead of getting it from the window.
2009-12-28 14:20:37 +01:00
Michael Stefaniuc
cdaba88592
wordpad: Remove some explicit LPARAM/WPARAM casts.
2009-12-28 12:27:14 +01:00
Austin English
0b7903c46c
wordpad: Only allow one find/replace window.
2009-11-23 13:09:13 +01:00
Dylan Smith
19c6edd497
wordpad: Use smaller cbSize for REBARBANDINFOW for compatibility.
...
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.
2009-08-17 13:57:50 +02:00