Commit Graph

1441 Commits

Author SHA1 Message Date
Alexandre Julliard 53ad4cbb57 user: Fixed PrivateExtractIcons to pass the tests when using native dlls. 2006-04-04 18:58:48 +02:00
Mike McCormack ba41900d49 user32: More informative message on failure to load x11drv. 2006-04-03 21:35:35 +02:00
Antonio Codazzi ee01bd0efb user32: Esperanto language update. 2006-04-03 11:47:57 +02:00
Alexandre Julliard 510a6f70a8 user/tests: Flush events before running the keyboard event test. 2006-03-31 12:51:54 +02:00
Alexandre Julliard 6280ab29e6 user: Only wait for sent messages in wait_message_reply. 2006-03-30 16:23:56 +02:00
Alexandre Julliard 4d3282a5fb user: Don't send WM_PARENTNOTIFY to the desktop window. 2006-03-30 13:22:27 +02:00
Mike McCormack 8398f6e9e9 user32: Fix SPI_GETLISTBOXSMOOTHSCROLLING, and implement SPI_SETLISTBOXSMOOTHSCROLLING. 2006-03-29 13:37:00 +02:00
Mike McCormack 964509df9c user32: Implement SPI_[GS]ETUIEFFECTS. 2006-03-29 13:36:48 +02:00
Mike McCormack fc9d36e4b7 user32: Implement SPI_[GS]ETTOOLTIPANIMATION and SPI_[GS]ETTOOLTIPFADE. 2006-03-29 13:36:29 +02:00
Mike McCormack 9d04454268 user32: Implement SPI_[GS]ETMENUANIMATION and SPI_[GS]ETSELECTIONFADE. 2006-03-29 13:36:18 +02:00
Mike McCormack 9786252186 user32: Implement SystemParametersInfo(SPI_[SG]ETCURSORSHADOW). 2006-03-29 13:36:07 +02:00
Mike McCormack 3244096d2e user32: Implement SystemParametersInfo(SPI_[GS]ETCOMBOBOXANIMATION). 2006-03-29 13:35:53 +02:00
Mike McCormack cd37125f7a user32: Implement SPI_[SG]ETCARETWIDTH. 2006-03-29 13:31:54 +02:00
Mike McCormack 4ce100aa64 user32: Send a fake mouse movement event after releasing capture. 2006-03-27 21:41:09 +02:00
Alexandre Julliard 90af5a0d17 server: Connect to the window station and desktop specified by startup info.
If window station and desktop aren't inherited from the parent, don't
connect to them from the server, but from the USER init code where we
can get the proper values from the startup info structure.
2006-03-27 12:57:17 +02:00
Alexandre Julliard 9873494ced server: Class and global atoms should not be local to a window station. 2006-03-22 22:13:40 +01:00
Huw Davies c4b44245fb user32: Only adjust the margins if the edit control is above a certain size. 2006-03-22 21:37:10 +01:00
Mike McCormack d5816d2202 Remove some unnecessary uses of windowsx.h 2006-03-18 18:04:51 +01:00
Alexandre Julliard d8568e90be user/tests: Try harder to flush X events before running tests. 2006-03-15 12:11:02 +01:00
Alexandre Julliard a32b3e86ec user: Support packing/unpacking the WM_DEVICECHANGE message. 2006-03-09 22:48:37 +01:00
Mike McCormack abf3a570af user: The height of a ListBox item can be no more than MAXBYTE. 2006-03-09 12:51:10 +01:00
Alexandre Julliard 1a4f6e579b user: Launch explorer to manage the desktop window. 2006-03-07 11:42:35 +01:00
Alexandre Julliard 4be3d4c12b server: Return real parent and owner in the create_window request.
Remove computing of parent and owner handles on the client side.
2006-03-06 15:00:37 +01:00
Alexandre Julliard f874d20f54 user: Allow creating windows of the desktop class. 2006-03-06 12:44:38 +01:00
Alexandre Julliard 70d42f9d43 user: Allow some Wine internal messages to act on the desktop window. 2006-03-06 12:37:13 +01:00
Byeong-Sik Jeon bd82e82993 user32: Fix the default height for CJK fonts. 2006-03-04 16:12:51 +01:00
Vitaly Lipatov e96f03a1d7 user: Fix uninitialized rectangle in menu arrow painting. 2006-03-02 15:50:07 +01:00
Rein Klazes cc5b5cea96 user32: Fix handling of '\b' right flush character in menus.
- do not add extra space; modify the tests to confirm this;
- right flush to the menu tab stop, not to the menu border;
- small fixes to the menu tab stop calculation.
2006-03-01 20:40:17 +01:00
Jason Edmeades 24dc3de4c9 user32: Ensure VK_UP displays the popup menu for the selected item if
the popup menu is not visible
2006-03-01 12:39:09 +01:00
Francois Gouget 4aa6418d51 Assorted spelling fixes. 2006-02-24 21:10:03 +01:00
Francois Gouget 29b5c987d5 user32: Handle WM_ENDSESSION in DefWinProc().
DefWinProc() should call PostQuitMessage() on WM_ENDSESSION if the
shutdown is proceeding.
2006-02-24 21:07:08 +01:00
Francois Gouget feb153c649 user32: 0 vs. INFINITE timeout.
It is 0 that denotes an infinite timeout for the wine server now, not
-1 (INFINITE).
Document put_message_in_queue()'s check for INFINITE (done for
backwards compatibility with Windows 9x).
2006-02-24 21:06:50 +01:00
Francois Gouget 6edd77228d user: Fix ExitWindows().
- Use 0 to get an infinite timeout with SendMessageTimeoutW().
- Use SendMessageTimeoutW() to send the WM_ENDSESSION messages too so
we don't get stuck if a process is hung.
- Only send WM_ENDSESSION to windows that received a
WM_QUERYENDSESSION message. Also better mimick the Windows behavior.
2006-02-24 21:06:23 +01:00
Francois Gouget 1f297893e5 user: Give meaningful names to the structures used to transfer
information to the test threads.
2006-02-24 11:22:28 +01:00
Rein Klazes 3a0b40fffb menu: Take the MF_DEFAULT flag in to account in MENU_CalcItemSize. 2006-02-20 20:32:02 +01:00
Rein Klazes 1d0ec411d4 user: Add conformance tests for menu item drawing. 2006-02-20 12:00:39 +01:00
Rein Klazes 00ca259872 user: Menu drawing fixes.
- check mark is drawn left of a bitmap;
- if a MNS_CHECKORBMP-style menu has a checkmark, do no draw any bitmap;
- space for the popup arrow is also reserved for non popup items;
- implement the MNS_NOCHECK style.
2006-02-20 11:58:54 +01:00
Rein Klazes 885f217022 user: Menu string width calculation fixes.
- Use DrawText in stead of GetTextExtendPoint32, to properly measure
  strings with ampersands like "&File";
- Fix mess with strings with an embedded tab;
- In case of a menu bar, two extra pixels are added if the item has
  both a bitmap and string.
2006-02-20 11:58:03 +01:00
Rein Klazes 2757532fee user: Menu drawing fixes.
Replace some #defined constants by values calculated from windows
metrics.
2006-02-20 11:57:07 +01:00
Rein Klazes 444a547135 user: Menu drawing fixes.
- Move sending WM_MEASUREITEM message for HBMMENU_CALLBACK bitmaps to
MENU_GetBitmapItemSize();
- Save the received bitmap size in the menu item structure as it will
need to be sent in the WM_DRAWITEM message;
-  Move sending WM_DRAWITEM message for HBMMENU_CALLBACK bitmaps to
MENU_DrawBitmapItem();
- This also means that HBMMENU_CALLBACK bitmaps are now supported in
menu bars.
2006-02-20 11:56:21 +01:00
Rein Klazes 672a1e4e4e user: Move drawing of pop menu arrows to a subroutine reduces nesting
level of some large if statements in the drawing code. Some updates to
the comments.
2006-02-20 11:54:28 +01:00
Michael Kaufmann 1f3afd4b47 user: Add the DS_NOIDLEMSG style to message boxes. 2006-02-20 11:12:26 +01:00
Phil Krylov dafa5bf464 user: Implement scrolling in popup menus. 2006-02-17 18:34:31 +01:00
Troy Rollo 8818880b43 user: Fix argument type of IsDlgButtonChecked. 2006-02-14 11:38:15 +01:00
Troy Rollo d07448dd3a user: Fix argument type for EnableScrollBar. 2006-02-14 11:37:57 +01:00
Troy Rollo 0fbd861bdd user: Fix argument types for CheckRadioButton. 2006-02-14 11:37:20 +01:00
Troy Rollo 99020f8001 user: Fix return type and argument type for GetDlgItemText{A,W}. 2006-02-14 11:36:49 +01:00
Petr Tesarik 3c4a0db3a5 user32: Czech language resources encoding fix. 2006-02-13 13:28:31 +01:00
Francois Gouget 379b62c04e Assorted spelling fixes. 2006-02-06 20:58:36 +01:00
Eric Pouech e66e227dbe Fixes for missing prototypes warnings. 2006-02-06 13:13:28 +01:00
Fatih Aşıcı f69c173983 user: Turkish translation. 2006-02-06 13:06:33 +01:00
Michael Kaufmann fd71ef1bfa user: Remove internal messages from the message queue before handling them. 2006-01-30 18:15:52 +01:00
Alexandre Julliard 6b76244bf4 Fixed creation of PS_ALTERNATE pens. 2006-01-30 15:02:53 +01:00
Vitaliy Margolen 70fcfa755c user: Remove duplicate code. 2006-01-30 14:56:25 +01:00
Vitaliy Margolen 6c64b74a7c user/tests: Add test for low level mouse hooks. 2006-01-30 14:56:17 +01:00
Rein Klazes d4c62162e9 user: Fix SPI_{G|S}ETFONTSMOOTHING with tests. 2006-01-27 19:19:19 +01:00
Huw Davies 1b89fe4976 user: Don't automatically add a bunch of styles in create_editcontrol. 2006-01-27 15:47:32 +01:00
Rein Klazes ec23fb3a92 user: Fix DrawTextExA/W on empty strings.
DrawTextExA/W should calculate a rectangle of zero height and width in
some cases of null or empty supplied strings. With conformance tests.
2006-01-27 15:47:15 +01:00
Dmitry Timoshkov ac4de71f85 user: Postpone resetting SCROLL_TrackingWin untill all notifications are sent. 2006-01-27 12:10:40 +01:00
Vitaliy Margolen dd57bbd1d2 user: Don't drop owned windows in WIN_EnumChildWindows.
Add a few tests for this.
2006-01-25 15:07:02 +01:00
Michael Kaufmann 1de825f746 static control: SS_CENTERIMAGE fixes.
- Stretch bitmaps and icons to the whole control size if
  SS_CENTERIMAGE is absent
- Draw the background of centered bitmaps and icons with the
  background brush (like Windows XP for applications with a manifest)
2006-01-25 13:14:44 +01:00
Dmitry Timoshkov 57a579ffcd Make more arrays const. 2006-01-24 14:00:32 +01:00
Alexandre Julliard b7b7f2b679 Avoid importing _strlwr/_strupr from ntdll. 2006-01-24 12:24:05 +01:00
Louis Lenders d782abff6b user32: Added stub for UpdateLayeredWindow. 2006-01-23 20:12:52 +01:00
Dmitry Timoshkov 9b1ea63bf9 user32: Make GetMenuItemInfo tests pass under Wine.
- Change menu item search algorithm to recurse into a submenu first.
- Fallback to a found submenu if nothing else was found.
2006-01-23 11:59:21 +01:00
Vitaliy Margolen e383143f18 user: Add missing WIN_ReleasePtr. 2006-01-23 11:24:16 +01:00
Detlef Riekenberg 191d62e7f9 user/tests: Added \n to a few ok() calls. 2006-01-20 16:16:43 +01:00
Ken Thomases d6865383a6 user: Fixed the lifetime of MDICREATESTRUCT variables. 2006-01-19 12:43:45 +01:00
Jason Edmeades 14889a618d user: Tests for when the menu is incorrect because of duplication of a
menu id and an hMenu.
2006-01-19 11:56:20 +01:00
Michael Kaufmann 73a23606a9 static control: Immediately repaint the control. 2006-01-17 16:09:32 +01:00
Michael Kaufmann 6ca3e6365a static control: Separate WM_NCCREATE and WM_SETTEXT.
- Separate WM_NCCREATE and WM_SETTEXT.
- WM_SETTEXT and WM_SETFONT are ignored for static controls that don't
  display text.
- WM_SETTEXT must not be used to change the icon/bitmap/metafile.
- Immediately repaint the control on all occasions.
2006-01-17 16:08:59 +01:00
Michael Kaufmann 97be4fa91d static control: Don't load OEM bitmaps. 2006-01-17 16:07:10 +01:00
Michael Kaufmann 2ddbc7b6e0 static control: STN_ENABLE and STN_DISABLE notifications. 2006-01-17 16:06:41 +01:00
Michael Kaufmann 2b8cda7162 static control: Better STM_GETIMAGE.
STM_GETIMAGE returns NULL if the given image type doesn't match the
control's style.
2006-01-17 16:05:25 +01:00
Michael Kaufmann 46d007cedb static control: Support SS_REALSIZEIMAGE.
- Support SS_REALSIZEIMAGE (this flag means "it's not necessary to
  load icons in the default icon size").
- SS_ICON: Ability to display cursors.
2006-01-17 16:04:40 +01:00
Michael Kaufmann 66b5020e02 static control: Support SS_REALSIZECONTROL.
- Support SS_REALSIZECONTROL (this flag means "don't resize the
  control to the size of the bitmap/icon").
- Always call GlobalUnlock16 after GlobalLock16.
2006-01-17 16:03:44 +01:00
Michael Kaufmann 910f4bb50e static control: Background of enhanced metafiles.
- Always paint the background of static controls displaying enhanced
  metafiles.
- Also paint the background if there's no metafile to display.
2006-01-17 16:01:40 +01:00
Michael Kaufmann 7effdb0b23 static control: Support text style flags.
- Support DT_END_ELLIPSIS, DT_PATH_ELLIPSIS and DT_WORD_ELLIPSIS.
- Paint simple text without prefixes (SS_SIMPLE | SS_NOPREFIX) with
  the ExtTextOut function like the native control does.
- Gray text color: Only for non-simple static controls.
2006-01-17 16:00:47 +01:00
Robert Shearman a40ce39340 user: Fix WM_QUIT message ordering from PostQuitMessage.
Added a new server call as PostQuitMessage should set a flag in the
message queue to return the WM_QUIT message when there are no other
pending messages, rather than posting a message to the thread queue as
it does at the moment.
2006-01-17 13:14:31 +01:00
Rein Klazes de9400262e user: Avoid buffer overflow in sysparams.c.
Increase buffer size to 12 for getting and setting integer parameters
from/to the registry.
2006-01-16 20:41:57 +01:00
Troy Rollo b7652d89db user: Fix return type of EnableMenuItem. 2006-01-10 12:08:48 +01:00
Michael Kaufmann 7ff2a68459 user: Improve the ownerdraw support of the static control. 2006-01-10 12:07:57 +01:00
Michael Kaufmann 37c68b47f4 user: The LoadImage resource string may be a numeric string. 2006-01-10 12:07:32 +01:00
Phil Krylov a2f883484f user: Fix dropdown combo creation when there is no space for an edit control. 2006-01-09 18:41:33 +01:00
Mike McCormack c83a5930b1 user32: Update the list of things to fix in the Combo control. 2006-01-09 17:16:14 +01:00
Rein Klazes 079912c679 user32: Prevent a crash in GetMenuStringA caused by calling strlenW on
a NULL pointer, with a test.
2006-01-09 17:13:44 +01:00
Raimonds Praude 860d682c2b user32: Limit text in the edit field of a combo box. 2006-01-06 21:16:52 +01:00
Michael Kaufmann e7322e5109 Static control: Support enhanced metafiles. 2006-01-06 21:07:07 +01:00
Rein Klazes 1d4b52c254 user32: Menu tracing improvements. 2006-01-04 14:48:07 +01:00
Rein Klazes b34868dffa user32: Separate menu bitmaps and strings.
Store bitmaps and bitmaps always in separate fields in the internal
menu structure.  Get rid of a lot of assumptions in the code that the
menu can have strings only when it is not some other type and that
bitmaps come in two flavors.
Add a lot of conformance tests, including some submitted by Jason
Edmeades.
2006-01-03 13:23:28 +01:00
Francois Gouget 8ca1f3fc14 Assorted spelling fixes 2006-01-03 12:10:50 +01:00
Vitaliy Margolen 9561d6e29c gdi: Device name returned from EnumDisplayDevices is valid for CreateDC. 2006-01-03 12:05:54 +01:00
Alexandre Julliard 0e6b4c43de user/tests: Remove todo_wine from a few tests that (usually) succeed. 2005-12-22 17:15:54 +01:00
Dmitry Timoshkov b61b82011e user32/tests: Add a PeekMessage test. 2005-12-22 13:58:11 +01:00
Aric Stewart 314f45dcdb user: Make the edit control IME aware and implement inline editing.
Makes for a significantly better user experience for CJK users.
2005-12-19 18:17:51 +01:00
Vitaliy Margolen a80d93c5e9 user: Fix LB_GETTEXT unmapping for A<->W. 2005-12-19 18:16:18 +01:00
Rein Klazes d076748e22 user: Fix hrgn leaks in win.c test. 2005-12-19 17:43:34 +01:00
Lauri Tulmin 86f45494b6 user32: Don't truncate text when creating edit control. 2005-12-19 09:53:19 +01:00
Rein Klazes 3df678a5af x11drv: Do not use the scroll rectangle for clipping in ScrollDC.
With a conformance test.
2005-12-19 09:53:04 +01:00
Dmitry Timoshkov 8d9fb6331e x11drv: ScrollDC should not clip output if a clipping rect is not specified.
Add a ScrollDC test with NULL clipping rect.
Add another set of ScrollDC tests written by Rein Klazes.
2005-12-17 12:24:37 +01:00
Alexandre Julliard ae964ac801 Take advantage of the __EXCEPT_PAGE_FAULT macro. 2005-12-16 17:17:57 +01:00
Alexandre Julliard db7920bb44 We no longer need to handle EXCEPTION_PRIV_INSTRUCTION on page faults. 2005-12-16 16:37:12 +01:00
Rein Klazes 13b9923165 user32: Implement saving and fix reading of nonclient metrics.
With conformance tests.
2005-12-16 12:38:06 +01:00
Rein Klazes 105450db4a user: Read/save minimized metrics from/to registry. 2005-12-14 12:27:39 +01:00
Aric Stewart c50fbab47f user: GetClipboardFormatNameA fix.
In the W->A translation make sure we have characters to translate
before doing the WideCharToMultiByte with -1.
2005-12-14 10:49:54 +01:00
Eric Pouech 28442721fd Const correctness fixes. 2005-12-12 11:55:49 +01:00
Vincent Béron 834385cad4 Add some missing includes which contain used prototypes. 2005-12-09 11:51:17 +01:00
Alexandre Julliard ef4dfd4b7a user: Fixed copy/paste bug in CURSORICON_GetResIconEntry. 2005-12-05 20:41:24 +01:00
Dmitry Timoshkov b43afeef89 Add a test for LB_SELITEMRANGE, make it pass under Wine. 2005-12-01 11:12:34 +01:00
Dmitry Timoshkov 7d86789758 Add a test for RedrawWindow with an empty region/rectangle, make it
pass under Wine.
2005-11-30 19:46:00 +01:00
Vitaliy Margolen 93b63566a5 ShowWindows(SW_SHOWMAXIMIZED) should ignore WS_MAXIMIZE window
state. Change tests accordingly.
2005-11-30 12:43:50 +01:00
Vitaliy Margolen b78784c3f2 New maximized visible window should be shown with
ShowWindow(SW_SHOW).
2005-11-30 12:37:47 +01:00
Vitaliy Margolen aae7632409 CreateWindow should not activate invisible minimized or maximized
windows.
Add several tests to show the correct behavior.
2005-11-30 12:32:22 +01:00
Vitaliy Margolen e95464a5cb EnumChildWindows should return result from the callback. 2005-11-29 10:40:58 +01:00
Ge van Geldorp 1a1583a364 Match PSDK STATUS_* definitions. 2005-11-28 17:32:54 +01:00
Dmitry Timoshkov b9212e2aba set_menu_item_text handles converting an empty menu item to a
separator on its own, give it a chance to do its work in the
MIIM_FTYPE case.
2005-11-28 11:53:20 +01:00
Alexandre Julliard 0ec7e1a591 Renamed all .cvsignore files to .gitignore. 2005-11-26 13:10:33 +01:00
Francois Gouget 6d442aeb34 Assorted spelling fixes. 2005-11-23 20:14:43 +01:00
Alexandre Julliard cc01e8ff05 Preserve 16-byte stack alignment in the various assembly
functions. Needed for MacOSX.
2005-11-23 19:55:06 +01:00
Rein Klazes 168e0db02c Make test_SPI_SETBORDER less likely to permanently change visual
settings:
- use smaller border widths values for testing;
- provide a work around for a Windows XP feature that made the tests
  change the caption width.
2005-11-23 15:19:04 +01:00
Rein Klazes 6154b46bef GetSystemMetrics fixes with corresponding tests. 2005-11-22 14:56:11 +00:00
Dmitry Timoshkov 7bde557d8a Choose what window styles to dump (WS_GROUP/WS_TABSTOP vs.
WS_MINIMIZEBOX/WS_MAXIMIZEBOX) based on the WS_CHILD style set.
2005-11-21 15:18:32 +00:00
Vitaliy Margolen 83ef91ce2d Replace inherit flag with object attributes in winstation and desktop
create & open. Use OBJ_OPENIF flag to create winstation & desktop.
2005-11-21 12:05:38 +00:00
Kieran Clancy 925a38d9ad Fix vertical text alignment in static controls. 2005-11-18 15:04:25 +00:00
Dmitry Timoshkov d3ccaaa54f Add another test for Z order of child windows. 2005-11-18 12:07:19 +00:00
Detlef Riekenberg 88dcf83495 Made test loadable on win95 again (EnumDisplayDevicesA not present). 2005-11-17 11:04:01 +00:00
Dmitry Timoshkov 2ca23be50f Add a test for some edit control behaviours, make it pass under Wine. 2005-11-16 11:22:54 +00:00
Dmitry Timoshkov 0f7ef4bd8d Do not change focus if the being activated window is no longer
active.
2005-11-15 16:53:26 +00:00
Alexandre Julliard 80b997a2cc Added support for the QS_ALLPOSTMESSAGE flag. 2005-11-14 15:17:09 +00:00
Rein Klazes 8f3b9d506b Fix SysparametersInfoA( SPI_SETICONMETRICS), the A<->W conversion was
rather broken.
Make the SPI_{G|S}ETICONMETRICS functions more consistent with those
for SPI_ICON{HORIZONTAL|VERTICAL}SPACING, SPI_{G|S}ICONTITLEWRAP and
SPI_{G|S}ICONTITLELOGFONT.
Accordingly extend the corresponding tests.
2005-11-14 15:12:14 +00:00
Dmitry Timoshkov 0940654da7 Fix message tests to run cleanly on Windows XP SP1. 2005-11-14 11:24:06 +00:00
Dmitry Timoshkov 6b379c8c2c Convert some ERRs to WARNs in the DDE client code when appropriate. 2005-11-11 10:53:44 +00:00
Francois Gouget 0edbaf7e80 Remove spaces before '\n' in traces. 2005-11-10 12:14:56 +00:00
Francois Gouget f4c0524ec6 Assorted spelling and case fixes. 2005-11-10 11:39:07 +00:00
Francois Gouget 2adb302a99 Add trailing '\n's to ok() and TRACE() calls. 2005-11-10 11:17:38 +00:00
Christian Costa 24a3ae0601 If a color bitmap is provided, store bitmap information from it
instead of the mask bitmap one.
2005-11-09 10:57:57 +00:00
Alexandre Julliard 68b8a4ab69 Don't call SetWindowPos in ShowWindow if a parent window is not
visible, only toggle the WS_VISIBLE flag.
2005-11-09 10:35:48 +00:00
Markus Amsler 86b6749208 Improve c2man Documented-Total count. Changes:
- add missing description
- add missing returns section
- complete missing A/W pairs
- reformate comments, to match c2man requirements
2005-11-09 10:33:40 +00:00
Rein Klazes 7e6b325929 Re-enable SPI_{GET,SET}BORDER tests and fix the bugs that caused them
to be disabled.
Add tests that show that the border value manipulated by
SPI_{GET,SET}BORDER is completely the same as with
SPI_{GET,SET}NONCLIENTMETRICS.
Fix a few signed/unsigned warnings in unrelated tests from the same
source file.
Made the tests pass on wine.
2005-11-08 19:58:37 +00:00
Michael Kaufmann e9310da57b Handle WM_PRINTCLIENT.
Don't use SelectClipRgn in WM_PRINTCLIENT.
2005-11-08 12:52:35 +00:00
Rein Klazes 53b1d05164 Make SystemParametersInfoA( SPI_SETNONCLIENTMETRICS, ...) work by
adding the needed non client metrics A->W conversions.
2005-11-07 16:39:21 +00:00
Christian Costa 93047e275e When creating black & white cursor icon, handle special case where
hbmColor is null and hbmMask specify a bitmap having twice the height
and formatted so the upper half is the icon AND bitmask and the lower
one is the OR bitmask.
2005-11-07 11:07:43 +00:00
Michael Kaufmann 4770d57a09 Scroll bar: Keep the caret blinking during scroll operations (only
handle WM_SYSTIMER messages that belong to the scroll bar).
2005-11-03 09:51:42 +00:00
Michael Kaufmann 8eaca69b39 ScrollWindowEx: Don't move the caret of child windows and hide it only
if it's in the source or in the destination rectangle.
2005-11-01 09:53:59 +00:00
Alexandre Julliard bc30574383 Default to the null driver instead of dying if the specified display
driver couldn't be loaded.
2005-10-31 15:54:55 +00:00
Dmitry Timoshkov 2dc8067408 Add the tests for behaviour of [In]validateRect and [In]validateRgn
with hwnd set to 0, make them pass under Wine.
2005-10-31 15:45:16 +00:00
Michael Kaufmann aa97e9164e Handle the left and right arrow keys. 2005-10-30 19:05:42 +00:00
Saulius Krasuckas d599020853 Don't pass CreateThread() with a NULL pointer to TID as Win9x does not
create a thread then.
2005-10-28 10:41:48 +00:00
Dmitry Timoshkov 26b40c296f Add some missing USER definitions, add a couple of FIXMEs for not
implemented features.
2005-10-27 18:28:23 +00:00
Vitaliy Margolen 1e16caf55d Add test for undocumented 0x4D message sent on F1. 2005-10-27 12:31:04 +00:00
Mike McCormack d2232bf88c Add a currently failing test case for menus. 2005-10-27 10:19:01 +00:00
Michael Jung 31c9033023 - Try LoadLibrary/LoadImage to extract icons from wine's built-in dlls
if SearchPath fails to find the requested file in
  PrivateExtractIcons.
- Some unit tests for PrivateExtractIcons.
2005-10-26 12:05:59 +00:00
Vitaliy Margolen 453e16d329 Silently ignore WM_PAINT in msg tests. 2005-10-26 10:11:52 +00:00
Rein Klazes 16a5c4fbca Fixed a lot of bugs in TEXT_TabbedTextOut. With the test cases used to
find them.
2005-10-26 10:04:21 +00:00
Richard Cohen b26ae86b58 Handle NULL string lparam when translating messages A->W. 2005-10-21 15:43:09 +00:00
Vitaliy Margolen 247ab64d38 Restore focus to the current control without selecting text. 2005-10-20 11:36:55 +00:00
Vitaliy Margolen 546bc6a681 Fix a number of tests failing on windows. 2005-10-19 19:06:35 +00:00
Markus Gömmel c2d38ceee8 Misplacement of checkboxes with empty label fixed. 2005-10-19 18:30:14 +00:00
Krzysztof Foltman 73045050b3 Fix CB_GETLBTEXT ANSI-Unicode calls when return value is an error
code.
2005-10-19 18:29:36 +00:00
Vitaliy Margolen cfbd78d659 Return 0 length line as 0 length line for EM_GETLINE. 2005-10-18 12:01:38 +00:00
Frank Richter 7686aa86e6 When doing A->W WM_GETTEXTLENGTH, use WM_GETTEXT behind the scenes to
obtain an exact length.
2005-10-18 10:45:18 +00:00
Vitaliy Margolen 40c3bd6f1b Fix one test failing on all windows versions. 2005-10-17 09:23:11 +00:00
Stefan Leichter 18517ca56f Make user test loadable on NT4. 2005-10-11 20:27:27 +00:00
Alexandre Julliard 8777c62d77 In DIALOG_FixChildrenOnChangeFocus make sure the button is a push
button before making it the default.
2005-10-08 10:36:10 +00:00
Vitaliy Margolen e135a52294 Use GetSystemMetrics instead of hardcoding drag width & height. 2005-10-03 18:48:36 +00:00
Marcus Meissner d3463d169b ReleaseCapture should return TRUE. 2005-10-03 11:06:14 +00:00
Stefan Leichter 02dce5900e Added stub for UnregisterDeviceNotification. 2005-10-03 10:17:05 +00:00
Jason Edmeades 8248d0ae87 Always return MA_ACTIVATE for WM_MOUSEACTIVATE in DefWindowProc. 2005-09-29 13:36:14 +00:00
Alexandre Julliard 7e22be4d84 We are no longer generating .dbg.c files. 2005-09-29 10:35:58 +00:00
Dmitry Timoshkov 6de4574fb0 Explicitly ignore WM_GETICON message in the message tests. 2005-09-28 18:11:10 +00:00
Dmitry Timoshkov 9c559cf385 Make DrawMenuBar and SetMenu tests pass under Wine. 2005-09-28 15:13:10 +00:00
Huw Davies 1d34b3a99c EnumDisplayDevices and GetMonitorInfo should return the same device
name for the primary device.
Make both EnumDisplayDevicesA and GetMonitorInfoA call their unicode
counterparts.
Update prototype of EnumDisplayDevices.
Add some tests.
2005-09-28 10:17:13 +00:00
Alexandre Julliard e96faaa4c8 Added a test to confirm the behavior of GetRandomRgn. 2005-09-26 16:46:31 +00:00
Alexander N. Sørnes cd6e5bab8b Added Norwegian translations. 2005-09-26 10:56:47 +00:00
Francois Gouget baab789ce8 Replace the 'if (!cond) ; else code' construct with the standard 'do {
code } while (0)' construct combined with a regular 'if'.
2005-09-26 09:57:38 +00:00
Dmitry Timoshkov 6300ce1a99 Calling DdeUninitialize hangs DDE test on XP SP1, so remove that call,
and add a comment explaining it.
2005-09-26 09:55:25 +00:00
Alexandre Julliard 9f859692f9 Replace DPRINTF by TRACE in a few places. 2005-09-25 15:23:21 +00:00
Kimmo Myllyvirta a7cdcfd995 Update Finnish resources. 2005-09-25 15:14:58 +00:00
Alexandre Julliard 0ec0f048e6 Removed unused debug channels. 2005-09-22 10:44:40 +00:00
Alexandre Julliard 9f1c6de1ef We are no longer generating .spec.c files. 2005-09-21 14:42:52 +00:00
Alexandre Julliard 5cb97d833a Generate 16-bit spec files as assembly code too. 2005-09-21 14:23:54 +00:00
Mike McCormack c818a4e662 Fix "empty body in an if/else-statement" warnings. 2005-09-21 09:46:28 +00:00
Alexandre Julliard c61f11eadf Added a magic number to the WDML_CONV structure to fix some failing
tests.
2005-09-20 11:39:19 +00:00
Milko Krachounov 980f817737 Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
setupapi, wininet, regedit, uninstaller, notepad, winecfg and
winhelp.
2005-09-19 17:00:58 +00:00
Kimmo Myllyvirta 4d0f076092 If HKCU\Software\Wine does not yet exist, create it as non-volatile
key, instead of volatile.
2005-09-18 11:11:49 +00:00
Robert Shearman 4db3769e70 GetDesktopWindow can now potentially create a thread, so we shouldn't
call this function from DllMain otherwise it is possible to cause a
deadlock.
2005-09-17 14:28:44 +00:00
Alexandre Julliard 127127fd3b Timeout 0 means infinite wait for SendMessageTimeout.
Remove the message from the receiver queue if it times out before
being received.
2005-09-13 14:46:46 +00:00
Alexandre Julliard ba41fe20bc Fixed a few more pointer to integer typecast issues for 64-bit
platforms.
2005-09-12 21:22:32 +00:00
Alexandre Julliard 5a49e40149 SendMessageTimeout takes a DWORD_PTR not a DWORD. 2005-09-12 20:43:32 +00:00
Alexandre Julliard 5224f74be5 Make the non-client message handling functions return an LRESULT. 2005-09-12 20:30:12 +00:00
Alexandre Julliard e1646dd215 Use MAKEINTRESOURCE instead of casts where appropriate. 2005-09-12 20:29:16 +00:00
Alexandre Julliard 556a129afa Avoid truncating the item data to 32 bits in LB_SETITEMDATA. 2005-09-12 15:36:39 +00:00
Alexandre Julliard 261e376495 Fixed a number of pointer to integer conversions that wouldn't work
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Alexandre Julliard c6b005ac69 Fixed some more traces to use the right printf format and avoid
typecasts.
2005-09-12 14:12:46 +00:00
Alexandre Julliard 5c37785881 Use Get/SetWindowLongPtr when accessing pointers in the window extra
bytes.
2005-09-12 12:20:38 +00:00
Alexandre Julliard 92167f6021 Use Get/SetClassLongPtr to access the module handle. 2005-09-12 12:06:26 +00:00
Alexandre Julliard 2c1b3c6a1d The item user data has to be a ULONG_PTR. 2005-09-12 11:24:23 +00:00
Alexandre Julliard f8ee161a1b Fixed some traces to use the right printf format and avoid typecasts. 2005-09-12 10:30:05 +00:00
Dmitry Timoshkov 7647cffbdf Add a test for ShowWindow(SW_SHOWMAXIMIZED) called for a not visible
overlapped window, which shows that WM_SHOWWINDOW is not sent in that
case and that it should activate a window and bring it to top.
2005-09-12 10:09:40 +00:00
Alexandre Julliard e4b2a0bbbc Use Get/SetWindowLongPtr instead of Get/SetWindowLong where
appropriate.
2005-09-09 15:20:04 +00:00
Alexandre Julliard 4c34d9386c Specify 64-bit integers as double instead of long long in spec files
so that we get the correct number of arguments.
2005-09-09 15:05:01 +00:00
Francois Gouget 6415654f5f If given the EWX_FORCE flag, ExitWindowsEx() should not send the
WM_{QUERY}ENDSESSION messages.
Add support for EWX_FORCEIFHUNG.
ExitWindowsEx() should return true if it succeeds, even if the user
cancels the shutdown.
2005-09-09 10:35:47 +00:00
Alexandre Julliard 20a1a203c6 Use a more portable scheme for storing the name of a critical
section.
2005-09-09 10:19:44 +00:00
Alexandre Julliard 42744ff420 Don't fallback to LoadMenu16 when the window is created with a null
instance.
2005-09-07 09:28:08 +00:00
Alexandre Julliard c3d87e7c69 Only access 16-bit stack if really necessary. 2005-09-07 09:26:39 +00:00
Michael Kaufmann e1d7ff9588 - Fix text placement.
- Paint the border correctly if its size is bigger than 1 pixel.
- Don't paint text over the border.
- Fix the edit control placement tests: Put the edit box in a parent
  window.
- Tidied up the edit control tests.
2005-09-06 11:40:01 +00:00
Alexandre Julliard cc4da88563 Explicitly import kernel32 in tests that use it. 2005-08-27 09:27:09 +00:00
Jason Edmeades 34db84e1da Listbox delete string handling should validate the range of the
index. Added some tests.
2005-08-27 09:24:14 +00:00
Vitaly Lipatov a4590d2b23 - remove return: now break loop if can't change state during test
- add test for value returned by SwapMouseButton
- fix SwapMouseButton return value (it returns previous state)
2005-08-25 19:18:49 +00:00
Mike McCormack f919b72769 Fix magic item handling and warnings. 2005-08-22 18:56:05 +00:00
Mike McCormack 79b29158e8 Fix gcc 4.0 warnings. 2005-08-22 10:19:34 +00:00
Mike McCormack eafa666bee Fix some gcc 4.0 warnings. 2005-08-22 09:26:53 +00:00
Jacek Caban f4c4092fb5 Fix RegisterWindowMessage declaration and improve debug message. 2005-08-22 09:15:55 +00:00
Frank Richter ad53767109 Fix wrong structure size check in GetScrollBarInfo().
GetScrollBarInfo() failed when SCROLL_GetScrollBarRect() returned
FALSE - however, this is the case if the scrollbar is horizontal, and
not an error indicator.
2005-08-19 13:58:22 +00:00
Mike McCormack ad3a5ed5e4 Make sure a cursor is always returned if one exists. 2005-08-19 09:56:52 +00:00
Mike McCormack 177b237863 Fix uninitialized variable warnings emitted by gcc 4.0. 2005-08-18 10:51:22 +00:00
Frank Richter f3491aa935 Change CB_GETCOMBOBOX to return STATE_SYSTEM_PRESSED in
COMBOBOXINFO.stateButton when really the button is pressed, not when
the combo is dropped down.
2005-08-16 15:57:02 +00:00
Vincent Béron e9cac26182 Change some TRACEing formats to make more sense. 2005-08-15 09:44:34 +00:00
Alexandre Julliard caf18a640e Set remove to TRUE in accept_hardware_message for messages that should
go to a different thread. Simplify the code a bit.
2005-08-11 10:36:03 +00:00
Francois Gouget 56dac9118e Define DCX_USESTYLE if it is not defined already. Fixes the
compilation with the PSDK.
2005-08-10 15:00:44 +00:00
Alexandre Julliard 628939d567 Use the proper WOW functions everywhere instead of the K32WOW variant. 2005-08-10 10:59:19 +00:00
Alexandre Julliard 1f90b5cff0 Make sure we don't call the graphics driver after process detach. 2005-08-10 09:56:23 +00:00
Dmitry Timoshkov 4ffc11ad0e Make CreateWindow with invalid menu handle test pass on Wine. 2005-08-09 10:22:45 +00:00
Francois Gouget dbd7ee3c1f CreateWindow(parent=NULL, ctlid!=0) should fail. 2005-08-08 12:13:08 +00:00
Francois Gouget ae7a646f8e The listbox test shows that the control id must be stored in WPARAM
for the WM_DRAWITEM message.
Fix the listbox test so CreateWindow() does not fail on Windows.
2005-08-08 11:02:54 +00:00
Alexandre Julliard a02c5f8334 Call the USER driver directly to check for X events on RDW_UPDATENOW
instead of calling MsgWaitForMultipleObjects.
2005-08-03 19:16:01 +00:00
Lauri Tulmin 99889b846a Add tests for repainting windows with CS_PARENTDC class style. 2005-08-02 09:56:25 +00:00
Alexandre Julliard 7be607f7c0 Added commented out stubs for a bunch of new functions. 2005-08-01 14:59:26 +00:00
Dmitry Timoshkov c2fe2f0f5b - Add an ownerdrawn listbox test, which confirms that on WM_DRAWITEM
parent receives a clipbox equal to a listbox's client area.
- WM_DRAWITEM message contains 0 in wparam (at least on win2k).
2005-07-29 14:42:19 +00:00
Phil Krylov a8f4b16bd0 Translate the whole wparam to/from Unicode. 2005-07-26 15:55:42 +00:00
Dmitry Timoshkov bc07b2aca4 Take into account CS_NOCLOSE window class style and SC_CLOSE system
menu item state while adding MDI system menu buttons and generating
WM_SYSCOMMAND messages.
2005-07-25 11:08:59 +00:00
Alexandre Julliard 64329de2a6 Store the SysIP property using a string to avoid trouble with 16-bit
apps that don't expect an atom.
2005-07-22 18:40:21 +00:00
Alexandre Julliard 3ff8239dfe Fixed get_window_properties to correctly specify the output buffer in
the server request (spotted by Marcus Meissner).
2005-07-22 18:31:43 +00:00
Alexandre Julliard dac19768fa Get rid of cursoricon.h. 2005-07-20 10:31:37 +00:00
Alexandre Julliard 98c315c7c0 Save the scope window for mouse events before overwriting it. 2005-07-19 19:14:32 +00:00
Alexandre Julliard bf575f1f8f Initialize the various menu global variables on demand instead of at
startup time.
2005-07-19 11:51:31 +00:00
Robert Shearman 7a9bacc45d Replace calls to DIALOG_GetCharSize with code to do the equivalent
using GdiGetCharDimensions.
2005-07-18 18:05:33 +00:00
Alexandre Julliard 15ec968724 Load the USER driver on demand instead of at user32 load time.
Provide a fallback implementation for all the functions to avoid
having to check for NULL functions everywhere.
2005-07-18 15:14:56 +00:00
Alexandre Julliard 2997fc51a4 Fixed a few prototypes in the USER driver. 2005-07-18 13:20:18 +00:00
Alexandre Julliard 81008167c2 Load system metrics on demand instead of initializing everything at
user32 load time.
2005-07-18 09:20:07 +00:00
Felix Nawothnig b08e77d9a3 Add stub for SetLayeredWindowAttributes. 2005-07-18 09:13:13 +00:00
Paul Vriens dcb67841d2 Don't run tests on platforms that don't support WindowStation calls. 2005-07-18 09:08:58 +00:00
Alexandre Julliard b5cc0a79fb Added a bunch of utility functions to factor out a lot of the repeated
code in SystemParametersInfoW.
2005-07-15 16:35:27 +00:00
Frank Richter 567b6facab Add support for drawing gradient captions. 2005-07-15 16:31:55 +00:00
Mike McCormack 8c64ebc963 Clean up CURSORICON_Load. 2005-07-12 20:23:18 +00:00
Mike McCormack 8012754ee2 Remove CURSORICON_SimulateLoadingFromResourceW. 2005-07-12 19:18:31 +00:00
Mike McCormack 37a8e0d0c9 Modify CURSORICON_FindBestIcon/Cursor to use enumerator functions. 2005-07-12 18:11:54 +00:00
Robert Shearman 30ff940a68 Call SetLastError on errors. 2005-07-12 18:11:40 +00:00
Robert Shearman ff93df6e0f - Support right-aligned text in TabbedTextOut.
- Add documentation.
2005-07-12 18:11:26 +00:00
Robert Shearman 7dd1d21132 - Implement LB_SETLOCALE.
- Remove incorrect FIXMEs for LB_USETABSTOPS.
2005-07-12 17:55:35 +00:00