Commit Graph

706 Commits

Author SHA1 Message Date
Dimitrie O. Paun
4c90609067 Audit and document button code.
Change [GS]etWindowLong{,Ptr}A to [GS]etWindowLong{,Ptr}W.
Change WM_GETDLGCODE as per the MSDN documentation.
2004-10-05 04:11:13 +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
James Hawkins
336d84583c Limit scrolling of the edit control to the last line of text. 2004-09-29 21:04:18 +00:00
Richard Cohen
52373b2df3 MenuItemFromPoint shouldn't crash if there's no menu. 2004-09-24 00:22:13 +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
Robert Shearman
bbdac5e475 GetWindowLong -> GetWindowLongPtr. 2004-09-22 19:14:08 +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
2abf2c7aa5 Make menu code cope with WM_SYSKEY*/WM_SYSCHAR messages.
Unblock menu loop if a window being destroyed owns a tracked menu.
2004-09-20 21:45:45 +00:00
Ulrich Czekalla
4543c27822 Handle painting the border if WS_EX_CLIENTEDGE is not set. 2004-09-16 20:28:10 +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
Dmitry Timoshkov
30db053f2a Accept WM_SYSCHAR message for processsing in TranslateAcceleratorW. 2004-09-16 19:09:30 +00:00
Dimitrie O. Paun
630dc0f5a9 Use the W version of the function were we can. 2004-09-15 18:04:07 +00:00
Steven Edwards
4d563e0195 Added stub for SwitchDesktop. 2004-09-14 19:29:11 +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
Michael Kaufmann
53374683c8 Make the menus of Delphi applications work. 2004-09-10 22:29:32 +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
Ulrich Czekalla
322cd5de80 Allow copying selection when control is read only. 2004-09-09 19:18:40 +00:00
Alexandre Julliard
92acc58af6 Get rid of the WIN_SetRectangles export from user32. 2004-09-09 00:30:29 +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
Dmitry Timoshkov
5344d70c16 Reset BUTTON_HASFOCUS state in WM_KILLFOCUS handler before calling
ReleaseCapture.
2004-09-07 19:33:11 +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
Alexandre Julliard
80bba3bd61 Moved keyboard.c to dlls/user/kbd16.c.
Keyboard, mouse and display drivers are 16-bit only.
2004-09-01 22:47:48 +00:00
Alexandre Julliard
f56c6fb9b2 Moved some window painting functions to uitools.c. 2004-09-01 18:26:40 +00:00
Alexandre Julliard
2ceb42dd43 Moved all files from the controls/ directory to dlls/user. 2004-08-31 01:10:08 +00:00
Alexandre Julliard
3c39a9912e Get rid of the non-standard CONV_POINT and CONV_RECT functions. 2004-08-31 00:02:02 +00:00
Alexandre Julliard
97f4e4ef7d Removed struct32.[ch]. 2004-08-30 19:32:08 +00:00
Alexandre Julliard
c158550998 Moved a couple of 16-bit functions to user16.c. 2004-08-30 18:42:17 +00:00
Mike McCormack
9386cb2228 Use Heap functions instead of malloc/free. 2004-08-30 18:40:47 +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
0ba0d7a119 GetUpdateRgn should clip the returned region to the client area.
Changed GetUpdateRect and ExcludeUpdateRgn to call GetUpdateRgn.
Moved these 3 functions to dlls/user/painting.c.
2004-08-26 00:46:11 +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
Alexandre Julliard
b459952144 Avoid some non-portable makefile constructs, and get rid of the
ALTNAMES variable.
2004-08-11 23:59:06 +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
Henning Gerhardt
68ade3b7ac Minor fixes and updates to the German resource files. 2004-07-22 20:35:07 +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
Eric Frias
0b072cb67a Fixed memory allocation bug. 2004-07-14 21:46:25 +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
Alexandre Julliard
218c478d24 Allocate the dialog info in DIALOG_CreateIndirect if this wasn't
already done by the dialog procedure.
2004-07-14 00:49:40 +00:00
Alexandre Julliard
503ffff9a5 Allow specifying multiple graphics drivers and use the first one that
loads successfully.
2004-07-13 03:53:55 +00:00
Mike McCormack
194450d8ff Add a regression test for accelerators. 2004-07-12 23:27:09 +00:00
Mike McCormack
e983f757a3 - Windows always strips the high bit (0x80) of the fVirt member in the
accelerator structure.
- If the FVIRTKEY bit of fVirt is set, the value of the key field is
  limited to the range of one byte.
- Remove annoying fixmes about accelerator table checking.  Windows
  appears to do no more checking than the above.
2004-07-12 23:26:05 +00:00
Mike McCormack
9243c96e01 - CopyAcceleratorTable can cause a buffer overflow because it uses an
incorrect comparison between the number of accelerator entries
  available and the number of accelerator entries in the output buffer.
- My tests show that CopyAcceleratorTable always strips the high bit
  of the fVirt member of the accel struct.
- Calling DestroyAcceleratorTable with a NULL accelerator should
  return FALSE.
2004-07-12 20:42:30 +00:00
Mike McCormack
126884f030 Stop PrivateExtractIcons from crashing given an invalid icon index. 2004-07-12 19:53:36 +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
Ulrich Czekalla
06a60621ab ScrollDC should take into account overlapped windows. With this change
ScrollWindowEx can be moved out of X11drv.
2004-06-15 17:04:02 +00:00
Huw Davies
e937e469b1 Fix 'pointers are not permitted as case values' compile error. 2004-06-14 19:35:14 +00:00
Dmitry Timoshkov
752de682c9 Set last DDE error in XTYP_EXECUTE handler according to the value
returned by an application.
2004-06-14 16:58:19 +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
Ivan Leo Puoti
3e42f6953e Changed my name, so update copyright info. 2004-05-27 02:25:13 +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
Eric Pouech
df93f2eeee GetModuleFileName[AW] doesn't terminate the string if the buffer is
too small.
2004-05-19 03:22:55 +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
Ilya Korniyko
4943881d28 Encoding fixes in Ukrainian translation. 2004-05-10 19:54:10 +00:00
Dmitry Timoshkov
80422fb830 Make WM_GETMINMAXINFO default behaviour more like the Windows one. 2004-05-07 00:41:32 +00:00
Andrey Panov
f4a535d61e In get_buffer_space() function, HeapReAlloc() will not allocate memory
if passed *buffer value is NULL.
2004-05-06 23:41:15 +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