Commit Graph

251 Commits

Author SHA1 Message Date
Vitaliy Margolen fb99124f94 Deactivate active window in ShowWindow(,SW_HIDE). 2005-06-17 21:05:16 +00:00
Stefan Huehner 03cc8c4181 Remove some -Wstrict-prototypes warnings. 2005-06-17 10:11:37 +00:00
Dmitry Timoshkov f85535c6f4 Add a test case for WM_[L|R|M|X]BUTTONDBLCLK generation behaviour. 2005-06-15 18:07:33 +00:00
Mike McCormack f674f1f71b Fix declarations. 2005-06-15 10:20:53 +00:00
Lauri Tulmin f124878918 - EM_CHARFROMPOS should return the closest char (clicking on the first
half of a character should return current char and clicking on the
  second half should return next char)
- EM_POSFROMCHAR should return -1 if character index is greater or
  equal to text length
2005-06-14 12:24:48 +00:00
Lauri Tulmin c40562307c Add more tests for text placement in single and multiline edit
controls. Some of the tests are marked as todo.
2005-06-09 20:32:32 +00:00
Alexandre Julliard b9b1ea9c9f Added a close_handle method to the object operations, and use it to
implement registry notifications and the strange behavior of
CloseHandle on winstation/desktop handles.
2005-06-09 15:39:52 +00:00
Alexandre Julliard 78a3e63377 The desktop of a new thread should be set from the process initial
desktop, not from the parent thread.
Fixed a couple of bugs in the desktop name handling.
2005-06-09 12:07:12 +00:00
Dmitry Timoshkov 17408ba751 Added a couple of CloseHandle calls. 2005-06-09 09:46:06 +00:00
Alexandre Julliard 1bf96e09a9 Beginnings of support for window stations and desktops. 2005-06-08 18:44:50 +00:00
Dmitry Timoshkov ef53e7a2f1 Add a test for window state when a window receives WM_ENABLE message. 2005-06-07 20:29:09 +00:00
Lauri Tulmin a810802235 Don't truncate text on WM_SETTEXT and send EN_MAXTEXT. 2005-06-05 19:19:11 +00:00
Jason Edmeades ca52392bf1 Added test case for infinite loops on RDW_REDRAWNOW. 2005-05-31 13:39:24 +00:00
Richard Cohen fbb3ba488f Fix off-by-one in menu height calculation (& therefore
AdjustWindowRect) + test.
2005-05-24 09:51:20 +00:00
Paul Vriens 4cc3b97ec1 Check for a NULL pointer in GetWindowTextA/W. 2005-05-14 18:49:19 +00:00
Rein Klazes 1c5671df07 Multi column popup menus have 4 pixel space between the columns. With
conformance test.
2005-05-10 13:17:33 +00:00
Ulrich Czekalla a800dfe52e SetParent should not remove menu from non-child windows. 2005-04-26 08:16:17 +00:00
Francois Gouget 3b36eee083 Add trailing '\n's to ok() calls. 2005-04-19 09:48:44 +00:00
Robert Shearman 95ebdc63c6 Add a test for a menu problem I found. 2005-04-14 13:57:27 +00:00
Rein Klazes 8db7b53359 In ScrollWindowEx, if the window already has an update region then add
this to hrgnUpdate. With a conformance test.
2005-04-11 12:47:01 +00:00
Rein Klazes 7308f16b32 Fix some incorrect uses of the ok macro where the result depends on
the evaluation order of its arguments.
2005-03-31 19:07:08 +00:00
Rein Klazes 7c342b4ce3 If ScrollWindowEx do not use the DCX_USESTYLE to get a DC. Instead
calculate DCX_CLIPSIBLINGS, DCX_PARENTCLIP and DCX_CLIPCHILDREN. The
DCX_CLIPCHILDREN is not used when ScrollWindowEx is called with a
SW_SCROLLCHILDREN flag. With a couple of regression tests.
2005-03-31 15:30:25 +00:00
Paul Vriens b6ab64e44d Use textlen instead of len.
Use textheight as the return value of DrawTextA.
2005-03-31 10:07:26 +00:00
Dmitry Timoshkov 9640918917 - Make GetSystemMenu respect CS_NOCLOSE.
- EnableMenuItem should not generate WM_WINDOWPOSCHANGING message.
- Make nonclient code check for presence of SC_CLOSE, not CS_NOCLOSE
  window class style.
- Add a test case.
2005-03-30 18:59:27 +00:00
Alexandre Julliard eea706948a The update region passed in WM_NCPAINT and the clipping region passed
to GetDCEx have to be in screen coordinates.
2005-03-30 17:11:46 +00:00
Alexandre Julliard d99df2b757 Only reset the clip region in GetDC() if a new region is specified.
Don't release the clip region for window DCs in ReleaseDC(), except
when called from EndPaint().
Added a bunch of tests.
2005-03-30 10:28:58 +00:00
Alexandre Julliard 026a4b0d0d Only restore the DC attributes on the next GetDC, and add support for
the DCX_NORESETATTRS flag.
Get rid of the DCE flags, simplify the code a bit.
Add some test cases.
2005-03-29 18:59:02 +00:00
Rein Klazes a4ae750a87 ScrollWindow should call ScrollWindowEx with the SW_ERASE flag
set. With conformance test.
2005-03-29 13:06:32 +00:00
Rein Klazes 607bb11a86 - GetScrollRange should return an empty range, both upper and lower
limit zero, if the window has no scrollbars (msdn).
- GetScrollInfo's return value is TRUE is nBar is SB_CTL or if
  anything is filled in the SCROLLINFO structure, otherwise the return
  value is FALSE.
2005-03-29 11:29:50 +00:00
Ulrich Czekalla e64b875311 Child windows with the WS_POPUP style are allowed to have a menu. 2005-03-25 20:47:32 +00:00
Rein Klazes a807c5efce ScrollDC and X11DRV_SCROLLDC should scroll only pixels coming from
within the visible region, clipped to the clipping region if that
exists. Add the destination of pixels coming from the outside of this
region to the update region. With tests that depend on this.
2005-03-25 17:11:04 +00:00
Francois Gouget 93416cdaf7 Assorted spelling fixes. 2005-03-23 13:15:18 +00:00
Robert Shearman caec6026e7 - Window styles passed to CreateWindowEx must the same as passed in
CREATESTRUCT for WM_CREATE/WM_NCCREATE.
- Fix cases where WS_EX_WINDOWEDGE style is applied.
- Tests for the above.
2005-03-23 10:26:15 +00:00
Dmitry Timoshkov e842676194 If an MDI child becomes active restore previously maximized MDI
child.
2005-03-22 16:45:31 +00:00
C. Scott Ananian aa6367400a EDIT_EM_SetSel: Old/new selection range ordering code would break when
old_end < start < end < old_start.
Reset EF_UPDATE flag after we've sent the update.
2005-03-22 16:40:36 +00:00
Dmitry Timoshkov 12bbaa7baf Actually print dwExStyle in case of a mismatch. 2005-03-16 11:30:51 +00:00
Dmitry Timoshkov 72a4df9459 Do not release capture before sending WM_NCDESTROY message, update the
tests to reflect that.
2005-03-14 17:15:33 +00:00
Dmitry Timoshkov a2e24748b1 Fix some msg.c and win.c failures running on NT4 and XP. 2005-03-14 10:05:50 +00:00
Marcus Meissner af54602c7a Use 512 byte buffer for buffer of LB_GETTEXT and CB_GETLBTEXT.
Added testcase with > 256 byte string in listbox.
2005-03-10 17:17:22 +00:00
Alexandre Julliard 9bcdd7ca19 Authors: Justin Chevrier <jchevrier@nexicom.net>, Paul Vriens <Paul.Vriens@xs4all.nl>
- Consolidate error message handling.
- Add error checking to all initial SystemParametersInfoA calls in
  each parameter test to make sure that if a given parameter isn't
  supported or has failed in some other way that we return and don't
  continue on with the test.
- SetLastError before calling test_error_msg.
- SPI_{GET,SET}ICONTITLEWRAP is supported on Win98.
2005-03-07 19:23:32 +00:00
Dmitry Timoshkov 16ba0255e7 - Call SetCursorPos for an injected mouse message only if we really
need to move mouse pointer.
- Add a test case for mouse click handling.
2005-03-07 17:13:07 +00:00
Paul Vriens ae5e9edef7 LastError is not set on failure for *MOUSEHOVER* on Win98. 2005-03-05 10:47:30 +00:00
Justin Chevrier dd170db028 Expand conformance registry entry test to handle registry entries that
differ both in Key and Value from the norm.
Take advantage of expanded registry test to allow
SPI_{GET,SET}SCREENREADER and SPI_{GET,SET}KEYBOARDPREFERENCE to pass
on Win9x.
2005-03-04 12:31:09 +00:00
Paul Vriens 726df300ad Better way of handling non-existent SystemParametersInfoW.
SetLastError if GetLastError is checked after a call.
2005-03-04 10:46:22 +00:00
Francois Gouget fbb3343547 Assorted spelling fixes. 2005-03-02 13:53:50 +00:00
Dmitry Timoshkov 8f0984c2a3 Protect SetParent from creating circular window dependencies.
Add a test case.
2005-03-02 10:11:06 +00:00
Justin Chevrier 74b36359f1 - Created SPI_{GET,SET}KEYBOARDPREF and SPI_{GET,SET}SCREENREADER unit
tests.
- Removed a trace that shouldn't have been there.
- Add return checking to SPI_{GET,SET}WHEELSCROLLLINES and
  SPI_{GET,SET}MENUSHOWDELAY unit tests so they no longer run on
  Windows 95 where they aren't supported.
- Changed minimum hovertime in SPI_{GET,SET}MOUSEHOVERTIME to 10 as
  Windows XP defaults to 10 any value below that.
2005-03-01 11:46:11 +00:00
Alexandre Julliard 1aad2a50ce Authors: Mike McCormack <mike@codeweavers.com>, Dmitry Timoshkov <dmitry@codeweavers.com>
Release capture before sending WM_NCDESTROY message, do not send
WM_CAPTURECHANGED in that case. Add a test case for that behaviour.
2005-02-24 17:03:51 +00:00
Dmitry Timoshkov d4fd584082 GetWindowRect and GetClientRect do not change RECT contents if the
passed window handle is invalid.
2005-02-24 17:03:01 +00:00
Dmitry Timoshkov 16875ac3b2 - Pass original wParam to CallNextHookEx.
- Avoid playing games with focus in a newly created thread, that leads
  to all kinds of misbehaviours and failures in window activation
  under Windows.
2005-02-23 12:44:06 +00:00