Commit Graph

409 Commits

Author SHA1 Message Date
Alexandre Julliard a2b2456b99 Revert SPI_SETMOUSEBUTTONSWAP changes. 2005-06-30 18:14:14 +00:00
Alexandre Julliard 92fec7b67a Keep track of the windows and hooks used by a thread to properly
refuse to change the thread desktop when it's in use.
2005-06-28 19:37:52 +00:00
Stefan Huehner ffe53258aa Fix some -Wstrict-prototypes warnings. 2005-06-27 09:57:28 +00:00
Michael Kaufmann 41a9757654 - Remove the old margins from the format rectangle before adding the
new margins.
- Adjust the format rectangle and repaint the control after the
  margins have been set.
- New tests.
2005-06-25 18:32:07 +00:00
Stefan Huehner 863a4b1488 Fix some more -Wstrict-prototypes warnings. 2005-06-21 20:53:13 +00:00
Vitaly Lipatov 0624e17e7e Fix returned value for SPI_SETMOUSEBUTTONSWAP. 2005-06-20 15:36:17 +00:00
Stefan Huehner ac6f562b52 Fix more -Wstrict-prototypes warnings. 2005-06-20 14:18:03 +00:00
Rein Klazes 75d88907ff Owner drawn menu item size calculation fixes:
- Correct width calculation of owner drawn menu items;
- Set the height value in the MEASUREITEM struct to the same value as
  Windows (NT/2k/XP) does (problem debugged by Felix Nawothnig);
- Add tests for the fixes above;
- Also add tests for menu bars with owner drawn items.
2005-06-20 14:12:39 +00:00
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
Alexandre Julliard 548c973457 Allow the client rectangle to be of arbitrary size and dimensions,
regardless of the window rectangle.
2005-02-22 19:41:43 +00:00
Alexandre Julliard 9b0b45563b Cosmetic fixes. 2005-02-22 16:02:58 +00:00
Rein Klazes dfa4354134 DefWindowProc's WM_NCCALC handler must not subtract space for
scrollbars if there is not enough space for it anyway. With tests to
confirm the behavior.
2005-02-22 15:46:36 +00:00
Stefan Leichter 2d133baa3b Make user32_crosstest.exe loadable on NT 3.51. 2005-02-22 15:43:54 +00:00
Alexandre Julliard fa5c982698 DispatchMessage needs to repaint the non-client area if the WM_PAINT
handler didn't do it.
2005-02-22 14:58:52 +00:00
Jason Edmeades e4c2d6ba8c Make RegisterClassExA check that reserved bytes is a valid value.
Tests to confirm this behaviour.
2005-02-22 14:56:28 +00:00
Justin Chevrier 564aceddca - Implement SPI_{GET,SET}POWEROFFACTIVE and SPI_SETLOWPOWERACTIVE.
- Corrected SPI_GETLOWPOWERACTIVE to use an index (instead of its SPI
  value) to avoid an out of bounds condition.
- Created unit tests for SPI_{GET,SET}POWEROFFACTIVE and
  SPI_{GET,SET)SETLOWPOWERACTIVE.
2005-02-21 20:40:44 +00:00
Dmitry Timoshkov 600086372a Take Shift key state into account while processing an accelerator.
Add a couple of test cases.
2005-02-21 18:33:27 +00:00
Dmitry Timoshkov 53ccd49c58 - Always unlink children before sending WM_NCDESTROY message.
- Fix order of WM_DESTROY messages for the children's recursion.
- DestroyWindow should hide only visible windows.
- Add a test case for the above fixes.
2005-02-18 20:01:41 +00:00
Rein Klazes 8417d41a24 Calling ValidateRect or ValidateRgn on a windows also validates the
children. Add a test to show the behavior.
2005-02-16 17:52:01 +00:00
Francois Gouget a370f3fc0b ES_COMBO is not defined in the Windows headers. So define it if
necessary so the test can be compiled on Windows.
2005-02-14 11:02:06 +00:00
Rein Klazes 312f09b88a ScrollWindowEx when called with the SW_ERASE flag does not send a
WM_ERASEBKGND message, it just sets the erase flag. With some tests
that show this behavior.
2005-02-08 14:27:39 +00:00
Paul Vriens e3e89294d9 Extra tracing for SPI_GETICONTITLEWRAP. 2005-02-08 12:09:07 +00:00
Dmitry Timoshkov 6dba0a7718 Add support for winevent hooks. 2005-02-03 16:40:20 +00:00
Lauri Tulmin 31b894d07c Add test for LB_SELITEMRANGE and make it pass. 2005-02-02 19:10:59 +00:00
Dmitry Timoshkov 032d6aa234 Use the idFirstChild specified in the MDIClient's CLIENTCREATESTRUCT
when creating MDI children. Add a test case for the desired
behaviour.
2005-02-02 09:33:58 +00:00
Dmitry Timoshkov ed04d36b5d Add more tests for old style hooks and winevent hooks, make them pass
under Wine.
2005-01-27 11:14:19 +00:00
Paul Vriens 0cdfbd7669 Check for availability of SPI_GETICONTITLEWRAP. 2005-01-27 11:11:10 +00:00
Alexandre Julliard 0b39860580 Added a couple of SetWindowPos tests. 2005-01-25 11:31:52 +00:00
Rein Klazes 3ee5db6e17 Make ShowWindow(...,SW_SHOWNA) also work on already visible windows
with some conformance tests.
2005-01-25 11:21:20 +00:00
Alexandre Julliard 5ae51c47dd Tweak SetWindowPos flags handling to make a few more of the messaging
tests pass.
2005-01-21 17:06:07 +00:00
Justin Chevrier 3582a175c5 - Implemented SPI_SETICONMETRICS.
- Fixed SPI_GETICONTITLELOGFONT to only return values retrieved from
  win.ini on first call and return a cached version in subsequent
  calls.
- Created unit test for SPI_{GET,SET}ICONMETRICS.
2005-01-20 20:43:02 +00:00
Justin Chevrier f44d0692f1 Created unit test for SPI_{GET,SET}MINIMIZEDMETRICS. 2005-01-14 16:49:33 +00:00
Dmitry Timoshkov d2512860ac Fix WmCreateCustomDialogSeq message sequence for 256 color mode. 2005-01-11 15:45:32 +00:00
Dmitry Timoshkov b44b2cc880 Add more tests for keyboard/menu activation behaviour, make the tests
pass under Wine.
2005-01-11 10:38:31 +00:00
Lauri Tulmin d3cc4dcd05 Fixes to the handling of LBS_EXTENDEDSEL style, with tests. 2005-01-10 16:22:33 +00:00
Dmitry Timoshkov 830b58c02b Add a windows events hook to the message test. 2005-01-06 20:43:34 +00:00
Dimitrie O. Paun d6cf14d7b6 Add test for the listbox item height. 2005-01-03 14:40:13 +00:00
Rein Klazes 3714a39867 Correct cases where arguments of ok() calls depend on the order in
which they are evaluated.
2004-12-27 17:26:37 +00:00
Ulrich Czekalla 5415686935 If a dialog with the DS_CONTROL style is not visible then ignore
default focus assignment.
2004-12-21 16:01:50 +00:00
Rein Klazes c0b189b3b6 You can make an invisible window the active window. 2004-12-21 14:36:32 +00:00
Rein Klazes b681cd1818 - make sure that tests marked as todo_wine and actually succeed under
wine will be counted as failures
- remove todo_wine from a bunch of tests
- log the line numbers of the actual tests, not those of a helper
  function.
2004-12-20 16:59:26 +00:00
Dmitry Timoshkov 99fda0a1de Add a mouse input test case, make the test pass under Wine. 2004-12-17 18:49:24 +00:00
Francois Gouget eb3f078c75 Add trailing '\n's to ok() calls. 2004-12-14 11:41:24 +00:00
Alexandre Julliard 4bfeb2840a Added a bunch of tests for various behaviors of RedrawWindow. 2004-12-07 17:34:19 +00:00
Dmitry Timoshkov 12f49fb9b1 ShowWindow activates only a being maximized child window, add a couple
of message tests for MDI child activation.
2004-12-06 16:38:19 +00:00
Robert Shearman cba8763c33 Remove unnecessary WNDPROC casts. 2004-12-06 11:51:29 +00:00
Mike McCormack 174ae13752 Added some tests for timer functions. 2004-11-29 18:21:14 +00:00
Ge van Geldorp c33c2da87d - Fix vertical position of text in single-line edit controls.
- Add tests for this.
2004-11-28 14:55:42 +00:00
Alexandre Julliard c329cc4f9c Fixed handling of NULL pointer in PeekMessageW, with test (reported by
Eric Frias).
2004-11-23 17:39:13 +00:00
Vitaliy Margolen d1e44d0763 - return "want all keys" for WM_GETDLGCODE when multi-line
- single-line edit control does not want all messages
- additional style combinations are possible for both multi-line and
  single-line edit controls
- tests to confirm it
2004-11-08 22:10:05 +00:00
Dmitry Timoshkov dd138e3176 Clean up user32/input.c test, remove the wrong assumption that a
window always receives input focus upon creation.
2004-10-29 21:27:04 +00:00
Dmitry Timoshkov 1945e6b7ba Flush pending messages before testing painting message sequences. 2004-10-27 21:18:01 +00:00
Dmitry Timoshkov e898c53f2c Make button return exactly the same dialog codes as Windows does.
Add a test case.
2004-10-26 21:18:10 +00:00
Alexandre Julliard d3c0cb77d9 VK_0-9 and VK_A-Z are not defined in the Windows headers, removed them
(spotted by Francois Gouget).
2004-10-22 20:29:10 +00:00
Dmitry Timoshkov c3cecc5d57 - WM_MDISETMENU handler should update new frame menu only if an active
and maximized MDI child is visible.
- Add a test case for MDI child activation sequence.
2004-10-11 19:55:28 +00:00
Dmitry Timoshkov 132470a2b1 Properly handle the case when last MDI child is being destroyed. 2004-10-08 23:36:18 +00:00
Dmitry Timoshkov 0c48fbc624 Skip interthread message test under win9x, it causes a crash there. 2004-10-06 18:51:27 +00:00
Dmitry Timoshkov b0c45123e5 Add a test case for accelerators, make the test pass on Wine. 2004-10-05 23:45:35 +00:00
Dmitry Timoshkov 7c7693f8d0 Added a test case for inter-thread DispatchMessage. 2004-10-05 22:35:00 +00:00
Jon Griffiths 7a9e800566 Draw background of the empty selected item in empty lists.
Don't draw a focus rect if we dont have the focus.
Don't select items on key up/down in multi-select lists.
Handle LBS_NOSEL correctly, fix remaining todo_wine tests.
2004-10-05 22:31:00 +00:00
Dmitry Timoshkov 01a88ff01e If there no MDI child to activate set hwndActiveChild to 0 in
WM_MDIDESTROY hander, add a test case.
2004-10-05 02:10:04 +00:00
Dmitry Timoshkov 11d550dfa8 Add more message conversion tests, make the tests pass under Wine. 2004-10-04 20:39:00 +00:00
Robert Shearman 85a707e378 Add tests for conversion of message parameters. 2004-10-04 19:10:37 +00:00
Dmitry Timoshkov 64d69b60c9 - Skip shell window test on Win9x and restore its functionality on NT
platforms.
- Use keybd_event instead of SendInput in order to perform keyboard
  input test on Win95 as well.
2004-09-23 22:52:26 +00:00
Hans Leidekker 719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
Dmitry Timoshkov a1ccb921bd Make message flow for MDI creation/activation/destruction more like in
Windows. Add a bunch of MDI message tests.
2004-09-21 00:24:22 +00:00
Dmitry Timoshkov 9c2dcb255e Add a test case for WM_KEY* to WM_SYSKEY* message conversion. 2004-09-16 19:09:44 +00:00
Alexandre Julliard 9f53add86c Stop testing a sequence upon the first expected error, to avoid
spurious errors later on.
2004-09-14 00:46:03 +00:00
Dmitry Timoshkov 914231e87b Add support for HCBT_SYSCOMMAND hook, add logging for HCBT_SYSCOMMAND
in the message test.
2004-09-13 19:32:59 +00:00
Dmitry Timoshkov 18651f778e Add a bunch of new MDI tests. 2004-09-13 19:16:31 +00:00
Dmitry Timoshkov d304e4f80d Log flags for WM_WINDOWPOSCHANGING/WM_WINDOWPOSCHANGED messages, make
the tests pass on Win95/Win98/Win2000, fix some test failures under
Wine.
2004-09-13 18:03:09 +00:00
Zach Gorman 9358f3e9a1 The initial dialog focus should be established by the default handler
for SetFocus(), not in the dialog creation code.
2004-09-10 22:29:02 +00:00
Zach Gorman 5c8ceb497e Modal dialogs should not be shown via ShowWindow until the message
queue first runs empty. This allows all initialization to complete
before a default focus is assigned.
2004-09-10 21:27:02 +00:00
Zach Gorman 9b5c0ff375 Added tests for default focus assignment in dialogs. 2004-09-10 21:14:43 +00:00
Alexandre Julliard 371662faca Fixed some message sequences to succeed on XP.
Added some tests for showing/hiding a child window with an invisible
parent.
2004-09-08 22:02:23 +00:00
Francois Gouget 5512ae2685 Disable MSVC warning 4116 to avoid the 'unnamed type definition in
parentheses' warning caused by TYPE_ALIGNMENT().
2004-09-06 20:29:53 +00:00
Alexandre Julliard 28a8cacaf5 GetUpdateRect should return TRUE even if only the non-client area is
invalid (reported by Rein Klazes).
2004-09-02 20:13:19 +00:00
Francois Gouget 6825ed811d Added missing trailing '\n's to ok() calls. 2004-09-02 20:09:37 +00:00
Dmitry Timoshkov 58fe866d01 Button should do ReleaseCapture() on WM_KILLFOCUS if it's in a pressed
state.
Add a comprehensive test case for capture behaviour.
2004-08-26 18:33:40 +00:00
Dmitry Timoshkov 93dd39a37c Button should send BM_SETSTATE message after it has changed its
internal state.
2004-08-26 18:31:56 +00:00
Dmitry Timoshkov 58e93d5e14 Fix msg test failures when run under win2k. 2004-08-26 18:21:56 +00:00
Alexandre Julliard 009ae91f34 Added some tests for paint messages and update regions. 2004-08-26 00:49:06 +00:00
Alexandre Julliard f466c651ae Allow enabling or disabling todo_wine for each message sequence so
that we can properly test the sequences that are already correct.
2004-08-25 17:35:06 +00:00
Francois Gouget 20b8b56d5f Enable the disabled tests in tests.data or add a comment describing
why the type cannot be tested.
Update the generated files, they compile and run successfully both on
Windows (with the Windows headers) and in Wine.
2004-08-25 00:42:50 +00:00
Huw Davies 174e6a5d28 Change dialogs to use MS Shell Dlg rather than Helv or MS Sans Serif. 2004-08-24 18:33:01 +00:00
Ferenc Wagner 1b53ecba89 The desktop process is not automatically restarted under Win95, so
stop killing it.
2004-08-16 23:19:02 +00:00
Francois Gouget e69f38551e Add the CCHILDREN_TITLEBAR+1 and NUM_POINTS macros.
Add a couple base types that winapi_test does not know how to parse.
Fix a bug so that 'signed' and 'unsigned' are recognised as valid
types.
2004-08-16 19:46:09 +00:00
Alexandre Julliard 87115b23c2 WM_NEXTDLGCTL should not change the default button ID (based on a
patch by Krishna Murthy).
2004-08-14 00:44:08 +00:00
Francois Gouget 9806c99033 Define _WIN32_WINNT otherwise we are missing some definitions with the
Windows headers.
2004-08-11 18:50:40 +00:00
Dmitry Timoshkov d134ca1ea8 Fix button behaviour on WM_SETFOCUS/WM_KILLFOCUS with a test case. 2004-08-09 23:38:40 +00:00
Hans Leidekker dbb3e14748 Fix signed/unsigned comparison warnings. 2004-08-09 18:52:18 +00:00
Zach Gorman 4bb95f3915 Add test to demonstrate DrawText() with DT_CALCRECT incorrect behavior
in MM_HIENGLISH mapping mode.
2004-07-20 22:09:14 +00:00
Krishna Murthy d84de2c4a1 Added regression test for WM_NEXTDLGCTL and default button ID
behavior.
2004-07-16 23:22:49 +00:00
Sami Aario 00f1b61c82 Added tests for registering a dialog box created by using the CLASS
directive in a resource file, then creating the dialog using
CreateDialogParam.
2004-07-14 00:52:55 +00:00
Mike McCormack 194450d8ff Add a regression test for accelerators. 2004-07-12 23:27:09 +00:00
Dmitry Timoshkov a98beddcce Add a test case for scroll APIs, fix a few bugs spotted by it. 2004-07-09 19:25:26 +00:00
Dmitry Timoshkov 81fa85cdb8 Add more MDI message tests. 2004-06-30 18:16:08 +00:00
Dmitry Timoshkov b3569e7015 Add a test case for clipboard functionality and fix some bugs revealed
by it.
2004-06-25 02:55:37 +00:00
Dmitry Timoshkov fdc295db0b Add a prototype for MDI message tests. 2004-06-23 20:51:21 +00:00
Dmitry Timoshkov cbbb887d35 Add tests for child activation by ShowWindow/SetWindowPos. 2004-06-18 19:33:55 +00:00
Dmitry Timoshkov 4000d1d268 Make user/tests/win.c tests pass under Windows98. 2004-06-17 23:00:40 +00:00
Dmitry Timoshkov 4ad5ccfb58 Add a test for client/nonclient window dimensions calculation. 2004-06-15 18:27:06 +00:00
Dimitrie O. Paun 6d53c65048 Win 2000, XP, etc. fail the sysparams tests when run
non-interactively, so avoid running the tests in that case.
2004-06-04 19:36:43 +00:00
Mike Hearn eff34efcf8 Ignore attempts to hide an already invisible window. Add a test case
for this behaviour, passes on Wine and Windows 2000.
2004-06-03 23:26:35 +00:00
Ulrich Czekalla e32e1f0598 EnableWindow should not remove the focus of child windows. 2004-06-03 00:08:55 +00:00
Dmitry Timoshkov 4f9ebc471f Test whether we can destroy a menu assigned to a window. 2004-06-01 19:46:23 +00:00
Dmitry Timoshkov 5079a41ed8 Add dialog class name to the list of classes handled by hook, add hook
messages to the modal dialog message test.
2004-06-01 19:39:26 +00:00
Dmitry Timoshkov cdeeb84822 Add a test for accessing classes from another thread.
Fix UnregisterClass behaviour with NULL hInstance.
2004-05-28 19:27:17 +00:00
Kevin Koltzau 0a5ad9eb0f Remove part of test that crashes win95. 2004-05-27 01:56:04 +00:00
Dmitry Timoshkov 97ea6fffde Add message test for DrawMenuBar. 2004-05-24 19:08:54 +00:00
Dmitry Timoshkov 9df137b84a Add a test for focus change on ShowWindow(child, SW_HIDE). 2004-05-24 19:08:41 +00:00
Dmitry Timoshkov e4dfaab29e Add a test for window's hinstance. 2004-05-21 20:50:55 +00:00
Dmitry Timoshkov d8e990c1e4 - Make new tests pass on win2k SP4 and win95 OSR2.
- Add logging of some useful messages in the parent window.
- Add logging of wparam for WM_IME_SETCONTEXT.
2004-05-20 01:17:28 +00:00
Alexandre Julliard 47a1df45b2 Added some optional messages to make all tests succeed on XP.
Added tests for EndDialog and a simple modal dialog.
2004-05-18 20:44:23 +00:00
Alexandre Julliard 447e647716 Added a couple of tests for SetActiveWindow. 2004-05-18 00:48:09 +00:00
Dmitry Timoshkov f74516843f - Add a test for GetWindowInfo, it should not check cbSize member of
the WINDOWINFO structure.
- Add tests for window state at the time the system calls
  HCBT_CREATEWND (failing under Wine at the moment).
2004-05-11 22:17:19 +00:00
Dmitry Timoshkov 683ea2f2b7 Add more ShowWindow/SetWindowPos tests. 2004-05-10 19:59:20 +00:00
Dmitry Timoshkov 80422fb830 Make WM_GETMINMAXINFO default behaviour more like the Windows one. 2004-05-07 00:41:32 +00:00
Alexandre Julliard 900492a69c A couple of changes to avoid some failures on XP. 2004-05-05 22:01:49 +00:00
Francois Gouget bc8007fb1a Add trailing '\n's to ok() calls. 2004-05-05 01:35:37 +00:00
Jakob Eriksson 9e19e3f81e Prevent Windows 95 from blocking on linking issue. 2004-05-05 01:07:04 +00:00
Alexandre Julliard 319fa1c31e Some more tests for focus behavior when hiding/showing windows. 2004-05-04 04:18:29 +00:00
Francois Gouget cfc3943c5f Make our ascii strings static const.
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Alexandre Julliard a11b2bbafb Updated the auto-generated tests. 2004-05-04 00:41:11 +00:00
Dmitry Timoshkov c5524e1e6b Replace wParam values for WM_PARENTNOTIFY message by appropriate
symbolic names.
2004-04-30 04:15:13 +00:00
Dmitry Timoshkov 9634233407 Add a test for creation of a maximized child window. 2004-04-29 20:00:40 +00:00
Alexandre Julliard 57b0cbff26 Added test for setting focus to an invisible window. 2004-04-28 03:52:27 +00:00
Dmitry Timoshkov 61daaf8bd3 Fix a bug in ShellExecute which called DdeCreateStringHandleW with a
wrong parameter. Revert previous erroneous fix.
2004-04-23 21:32:17 +00:00
Dmitry Timoshkov f04b9d0b07 Add a message test for custom dialog initialization. 2004-04-20 04:02:50 +00:00
Francois Gouget 52c0832161 Make Unicode strings static const. 2004-04-20 01:12:17 +00:00
Dmitry Timoshkov 6ba0d27e45 Add a test for GW_HWNDLAST. 2004-04-13 21:15:51 +00:00
Dmitry Timoshkov 7104df5d0d Add WM_QUERYNEWPALETTE in appropriate places of the message test. 2004-04-12 23:13:14 +00:00
Dmitry Timoshkov e1d413da84 Add a test case for children Z ordering at window creation time. 2004-04-12 22:05:53 +00:00
Dmitry Timoshkov b53f87865c Add WM_SETREDRAW test. 2004-04-08 19:07:06 +00:00
Dmitry Timoshkov a6b405d6f4 Make use of the 'defwinproc' flag in the message test. 2004-04-06 20:09:59 +00:00
Dmitry Timoshkov 2d91357831 Add new tests for various window creation/positioning behaviours. 2004-04-02 20:22:53 +00:00
Dmitry Timoshkov c7d9f75eeb Workaround a msvcrt.realloc bug under Win9x by using Win32 APIs instead.
Take into account that HeapRealloc may move the allocated memory block.
2004-03-27 20:41:43 +00:00
Dmitry Timoshkov f38a07b205 Add a procedure for logging WM_PARENTNOTIFY messages. 2004-03-26 02:28:28 +00:00
Dmitry Timoshkov d5a1e761ee Make DestroyWindow() not mess with a window focus, this should be
taken care of by ShowWindow(SW_HIDE).
Add a test for DestroyWindow() on a focused child.
2004-03-26 01:06:15 +00:00
Dmitry Timoshkov 6a203fb885 Add 'hook' flag for messages. Add a test for CBT hook messages. 2004-03-26 00:18:20 +00:00
Dmitry Timoshkov bb1df89a2f Add 'optional' flag for messages, make the test run under win2k. 2004-03-25 23:35:52 +00:00
Dmitry Timoshkov 946cd3c117 Add a test case which confirms that SetMenu implementation in Wine is
correct.
2004-03-19 19:14:45 +00:00
Justin Chevrier 7e997ef081 Implemented SPI{GET,SET}MOUSEHOVERWIDTH, SPI{GET,SET}MOUSEHOVERHEIGHT,
SPI{GET,SET}MOUSEHOVERTIME, SPI{GET,SET}MOUSESCROLLLINES,
SPI{GET,SET}MENUSHOWDELAY.
2004-03-19 01:16:12 +00:00
Dmitry Timoshkov 4edbbbd8ea Windows truncates windows coordinates at 16 bits when moving or
resizing a window.
2004-03-11 03:51:46 +00:00
Alexandre Julliard 589e115233 We no longer use the .exe.spec.c files. 2004-03-02 21:16:37 +00:00
Huw Davies 14743a0f3b SetMenu should always call SetWindowPos whether the window is visible
or not. However we shouldn't call SWP from CreateWindowEx.
Added a test for this behaviour.
2004-02-17 20:29:05 +00:00
Bill Medland df0916b494 Added the automatic tabbing in IsDialogMessage.
Added corrections to GetNextTab/GroupItem.
Included tests.
2004-02-12 02:16:33 +00:00
Dmitry Timoshkov 9b24af8acb Add a test case and a fix for the window styles state at the window
creation time.
2004-02-06 05:18:56 +00:00
Francois Gouget 47e116225a Add trailing '\n's to ok() calls. 2004-01-23 20:50:35 +00:00
Francois Gouget 7494b5b980 Add trailing '\n's to ok() calls.
Check whether _MSC_VER is defined.
2004-01-23 02:11:12 +00:00
Dmitry Timoshkov dc70553cae Merge the MDI and common window creation code. Change the way MDI
children are managed in MDIClient.
Add support for MDICREATESTRUCT A<->W conversions.
Add support for WM_MDIREFRESHMENU.
2004-01-20 04:29:20 +00:00