Commit Graph

1005 Commits

Author SHA1 Message Date
Lionel Ulmer acc7467c03 Added the possibility to have mouse movements reported relative to
Wine's mouse driver.
1999-11-07 21:25:57 +00:00
David Grant edb77973f1 Windows sends WM_GETDLGCODE only in response to keyboard messages
(WM_KEYDOWN, WM_CHAR, WM_SYSCHAR).
1999-11-07 21:02:17 +00:00
James Abbatiello 161693e4f9 Addresses issues with multiple processes accessing non-global critical
sections.
1999-11-07 19:22:46 +00:00
Juergen Lock 7cc0e274f4 Exec `wineclipsrv' not `wineclipsvr', and don't inherit wine's X
sockets to it (otherwise windows stay around when wine hangs).
1999-11-07 05:12:43 +00:00
Karl Lessard a69bc02958 Never send a WM_CLOSE message to a popup window. 1999-11-04 02:11:55 +00:00
Karl Lessard 228b0cc023 Check if the window is managed before trying to give it focus. 1999-11-04 02:10:08 +00:00
Jaroslaw Piotr Sobieszek 384a10ddb9 Added Polish keyboard support. 1999-11-04 02:02:05 +00:00
Karl Lessard c9abc69a0e Fixed COLOR_MAX definition for new Win32 values. 1999-11-04 01:48:54 +00:00
Ulrich Czekalla 1720c98515 Implemented support of DS_CONTROL and WS_EX_CONTROLPARENT styles. 1999-10-31 21:35:35 +00:00
Pierre Mageau 18c9ee815e On ConfigureNotify, find the first visible window above the current one. 1999-10-31 21:30:16 +00:00
Francis Beaudet 458719dc20 Fixed a small bug in the behavior of maximized MDI children. 1999-10-31 17:35:06 +00:00
Francois Gouget 01c9ac401f Generalized the use of the new ICOM_VFIELD and ICOM_VTBL macros. 1999-10-31 01:59:23 +00:00
Huw D M Davies 238b6d7040 Fixed a couple of compiler warnings. 1999-10-31 01:56:51 +00:00
Lionel Ulmer 6fed97f3c1 Changed the initialisation of the KeyState array. 1999-10-31 01:54:50 +00:00
Patrik Stridvall 96336324cf - Added missing configuration #if:s and #includes:s.
- Minor configuration related changes.
1999-10-24 22:13:47 +00:00
Uwe Bonnes 7361916dd3 Warn users to use -the -desktop option together with the native user DLLs. 1999-10-24 20:42:39 +00:00
Francis Beaudet 56ab55d374 Enabled the persistent clipboard server. 1999-10-24 20:22:24 +00:00
Adrian Thurston 73a26fa4da Do not set focus to a disabled window. 1999-10-24 17:23:52 +00:00
Pierre Mageau f2d99ee56a Fixed an entry in the keyboard translation table for Ctrl-Break. 1999-10-24 17:21:32 +00:00
Noomen Hamza d1a1f7d6f7 Popup windows will be hidden when we minimize a main frame or shown
when we maximize or restore a minimized main frame.
1999-10-24 00:02:27 +00:00
Pierre Mageau 891d4d22a7 Fixed loop with WM_SYSCHAR. 1999-10-23 20:05:04 +00:00
Adrian Thurston 00442ba5ae Protect against wrong return value from WM_INITDIALOG. 1999-10-23 16:48:05 +00:00
Francis Beaudet c22ca7af80 Replaced a X call with a TSX call in XDRV_MOUSE_SetCursor(). 1999-10-23 14:37:45 +00:00
Ulrich Czekalla 6623b85893 We are supposed to delete the palette object with the DeleteObject
function.
1999-10-23 14:10:04 +00:00
Rein Klazes d4a2ceede0 Use the module handle, if CreateWindowEx is called with
hInstance==NULL.
1999-10-23 13:57:36 +00:00
Abey George 3336f48565 Changed EndDialog to behave like as in Windows.
Call SetWindowPos instead of ShowWindow in EndDialog.
1999-10-13 15:45:23 +00:00
Abey George 983f90a594 Changed WINPOS_CanActivate to not to consider WS_VISIBLE style.
Code for activating and setting focus to other windows when a window
is hidden, is moved to ShowWindow from SetWindowPos.
Activate the top level window if it's not active in ShowWindow(SW_SHOW).
1999-10-13 15:43:45 +00:00
Zoltan Kovacs 3d4cabf0e1 Added Hungarian keyboard support. 1999-10-13 13:54:39 +00:00
Thuy Nguyen 22614a3390 We have to activate MDI child windows. 1999-10-13 13:53:10 +00:00
Abey George fbecbc2952 Make sure the Focus Out window is still the Foreground window before
doing SetForegroundWindow(0) in Event_FocusOut.
1999-10-13 13:49:01 +00:00
Noomen Hamza 24d4ebfdd0 Set the COLOR_3DLIGHT system color to the right window default value. 1999-10-13 13:47:01 +00:00
Marcus Meissner 24f1219c56 If the joydevice is not present, do not create a DirectInputDevice. 1999-10-13 12:30:52 +00:00
Marcus Meissner e14deffd8b Added german keyboard layout with "nodeadkeys" option enabled (just to
apostrophes are switched).
1999-10-13 12:18:03 +00:00
Noomen Hamza a018d8508f Rewrite the ShowOwnedPopups function with a safety algorithm. 1999-09-28 16:26:09 +00:00
Francis Beaudet d3d2477014 rcPaint has to be returned in logical coordinates but was intersected
with a client rectangle in device coordinates.
1999-09-27 11:42:34 +00:00
Noel Borthwick ea0fd4d5d1 Added clipboard server. 1999-09-23 16:14:44 +00:00
Patrik Stridvall 8276f696fc Fixed some of the issues reported by winapi-check. 1999-09-23 11:48:02 +00:00
Noomen Hamza fcc24ff431 WS_POPUP windows (excluding the WS_POPUPWINDOW windows) should be
closed after loosing the focus.
1999-09-23 11:42:16 +00:00
Noomen Hamza 5a3505c985 Non active window should be activated when it gets any
client/non-client double/single left/medium/right mouse click(s).
1999-09-23 11:36:25 +00:00
Gerard Patel 99b68252a1 Fix infinite loop with glastXFocusWindow. 1999-09-22 15:16:50 +00:00
Ulrich Weigand 24dd5d9e4f Keyboard/mouse event proc thunk creation moved out of if1632/thunk.c. 1999-09-20 18:49:02 +00:00
Ulrich Weigand f86aab84ba DC hook proc thunk management simplified. 1999-09-20 18:47:14 +00:00
Ulrich Weigand f4edf2378e Windows hook proc thunk management simplified. 1999-09-20 18:45:00 +00:00
Noel Borthwick d05b7beb5a - Add clipboard support for copying/pasting bitmaps or Pixmaps between Wine
and native Linux applications.
- Respond to the MULTIPLE selection request target when Wine is the
  selection owner.
- Relax type checking for TARGETS selection.
1999-09-20 15:42:47 +00:00
Richard Cohen 55b92475f2 Protect MDISetMenu from rogue menu handles. 1999-09-19 14:05:05 +00:00
Marcus Meissner 8388f67523 Added stub implementation for EnumDisplayDevices*. 1999-09-19 12:09:23 +00:00
Francis Beaudet c9a50fd64f Made sure that the windows with the WS_EX_TOOLWINDOW style didn't get
handled by the window manager.
1999-09-10 13:59:24 +00:00
Stephane Lussier 540a227452 Pressing the delete key using an extended keyboard with numlock on is
not generating anymore a WM_CHAR message.
1999-09-10 13:57:59 +00:00
Eric Pouech 37c0217d03 Updated to new MM header organization. 1999-09-05 16:44:38 +00:00
Richard Cohen 0ded0fe323 No longer needs to calculate its own character size. 1999-09-05 12:25:33 +00:00
Uwe Bonnes 23cadd3731 Allow timeout of 0. Cap timer rate to SYS_TIMER_RATE. 1999-09-04 14:32:27 +00:00
Alexandre Julliard 04699cca44 Added missing HFONT type. 1999-09-04 11:21:10 +00:00
Pierre Mageau 4ac8db783d Changed CopyImage to accept desiredX, desiredY and LR_COPYFROMRESOURCE.
CURSORICON_FindBestIcon changed to find the correct icon.
ImageList_ReplaceIcon now calls CopyImage internally.
Assign a value for the hIconSm CLASS member (using CopyImage).
1999-09-04 11:16:48 +00:00
Marcus Meissner 6f7797bc77 More restrictive checks, so DIALOG_IsAccelerator don't loop
endlessly.
1999-09-03 16:39:36 +00:00
Richard Cohen d38bcea270 - select the font into the dc before calculating the extent
- make buttonheight correspond to text height + width to caption
- button was "flashing" on EndDialog (must delete font AFTER EndDialog)
- #defines for DlgItemIds
- implement MB_RETRYCANCEL
1999-09-03 16:38:03 +00:00
Noel Borthwick 2970067b14 - Implement interprocess clipboard communication.
- Support for the PRIMARY and CLIPBOARD selection atoms.
- Support for the TARGETS selection format.
- Expose native Windows clipboard formats through X selection targets.
1999-09-03 15:17:57 +00:00
Francis Beaudet eb13dd4291 Removed truncating errors that happen when converting fom dialog units
to pixels.
1999-09-03 15:14:27 +00:00
Abey George c684d8ef6f Check new coordinates received in WM_NCCALCSIZE message. 1999-09-03 15:09:57 +00:00
Francis Beaudet 1cc0a9a2c4 Make sure that all MDI children have the WS_EX_MDICHILD style set. 1999-09-03 15:00:45 +00:00
Guy Albertelli 5bd551756b Completed GetKeyNameText for non-character keys. 1999-09-03 12:39:29 +00:00
Abey George 48c6eb55f7 Fixed resizing bugs for windows with WS_THICKFRAME and WS_DLGFRAME
styles.
1999-09-03 12:33:40 +00:00
Marcus Meissner 4380621702 Use in GetClassInfoW the same hack for systemclasses as in
GetClassInfoA (winword 97 with native comctl32).
1999-09-03 12:28:20 +00:00
Pascal Lessard ecbf1d926d Added the case of a user defined icon for the sysbutton hittest. 1999-08-21 13:09:16 +00:00
Stephane Lussier e5711ebea4 The paint rectangle return in the PAINTSTRUCT in BeginPaint should
never be bigger than the client area of the window.
1999-08-21 13:06:24 +00:00
Francis Beaudet 7ed1af3df3 Ensure that the WM_ENTERIDLE message is not sent if the wake-up event
for the MSG_InternalGetMessage() call is a WM_TIMER.
1999-08-15 16:58:03 +00:00
Thuy Nguyen 03a6889e5c Implemented the WM_SETICON and WM_GETICON messages. 1999-08-15 14:21:57 +00:00
Ulrich Weigand c50a1d05de Adapted to new-style Wine thunks.
Removed some now unnecessary function pointers.
1999-08-15 12:45:01 +00:00
Francis Beaudet 8623fdc251 If the window is already the topmost window in ShowWindow(SW_SHOW), it
must not be activated.
1999-08-07 14:14:06 +00:00
Stephane Lussier 34264f2686 WM_SYSCOMMAND message (for SC_CLOSE) should be posted not sent. 1999-08-07 14:12:42 +00:00
Stephane Lussier 9455211417 X11drv SetDrawable function modifies the DC origin, this translation
should be reflected for the dc clipping region for CS_OWNDC and CS_CLASSDC.
1999-08-07 14:10:55 +00:00
Abey George 15c58c4239 Set focus to the dialog in EndDialog. 1999-08-07 14:10:04 +00:00
Ove Kaaven 6103e4b195 Made hardware_event use win32-conformant parameters. 1999-08-07 12:33:35 +00:00
Thuy Nguyen 46570a9dbd WS_EX_DLGMODALFRAME alone does not mean title bar, you still have to
specify WS_CAPTION.
1999-08-07 12:25:32 +00:00
Marcus Meissner 028e9a1720 Implemented DirectInput Joystick support (tested with WC:Prophecy). 1999-08-04 15:07:56 +00:00
Ivan De Saedeleer 0e65a49b2b Minor fix to the French Canadian keyboard. 1999-08-04 14:28:03 +00:00
Alexandre Julliard 15de615276 Got rid of dsprintf and related macros. 1999-08-04 12:22:42 +00:00
Noomen Hamza d9d547168c Close the right window when clicking on a non active window close
button.
1999-07-31 19:35:58 +00:00
Patrik Stridvall 0e38aa7fda Various ANSI C compability fixes. 1999-07-31 17:34:43 +00:00
Ulrich Weigand 081daf7d21 Implemented KERNEL.447 (WIN32_OldYield16). 1999-07-31 17:27:38 +00:00
Ulrich Weigand 56237566e4 Suspend WND lock before EVENT_Synchronize. 1999-07-31 17:26:11 +00:00
Pascal Lessard d814bb657a Implemented the system button behavior and associated it to the system
menu in win95. Also permit the SC_CLOSE item to be disabled.
1999-07-31 13:02:02 +00:00
Dan Langlois 402dc20e1f Removed an inappropriate if statement from MDI_ChildActivate that
prevented the activation code from executing.
1999-07-31 12:58:04 +00:00
Abey George 40c60b698c Bug fix for updating the clipping region in nested GetDCEx calls. 1999-07-31 11:10:12 +00:00
Yuxi Zhang a961c445ed Tried to fix the code for SetWindowPos to erase the background
properly.
1999-07-31 11:09:33 +00:00
Francis Beaudet 4691d0cb89 Fixed a memory leak that occurs when we maximize/minimize an MDI
child.
1999-07-30 18:02:04 +00:00
Ulrich Weigand 98c3053e6e Added FinalUserInit16/FinalGdiInit16 stubs.
Call out to FinalUserInit in MAIN_EmulatorRun.
1999-07-27 17:10:06 +00:00
Abey George 9849f1642a Send normal mouse messages to WM_SETCURSOR when non-client mouse
messages occur.
1999-07-27 17:06:55 +00:00
Thuy Nguyen f18e7c322e Check if the window has the WS_CLIPSIBLINGS style before using the
DCX_CLIPSIBLINGS flag.
1999-07-27 17:03:16 +00:00
Marcus Meissner bc2ad4a267 Actually return the number of events in Mouse_GetDeviceData (fixes
Wing Commander Prophecy). Added timestamp and sequence generation,
critical section for mousedata. Disabled mouse warping in
GetDeviceData for now (generates excess mouse events).
1999-07-27 16:08:59 +00:00
Francis Beaudet 278d0586dc Retrieve the clipping region before setting the drawable and reset the
clipping region after.
1999-07-25 12:27:13 +00:00
Lionel Ulmer 3b3dc5c8b3 Implementation of SetEventNotification for the mouse driver. 1999-07-25 11:21:07 +00:00
Noel Borthwick 83579c8286 Fix bug with pasting Wine clipboard content to external applications,
by storing clipboard data on the shared system heap.
1999-07-24 12:18:04 +00:00
Achim Kaiser 564b784402 Draw an additional white bit for each invert bit of a cursor. 1999-07-24 12:16:58 +00:00
Noel Borthwick 36d7ca38b8 While handling the X FocusIn message in managed mode, if the window
has been disabled revert the X focus back to the last focus window.
1999-07-24 12:16:00 +00:00
Sylvain St-Germain 00bf3811ae Fixed inconsistency in conditions that determines if a window requires
a WM border.
1999-07-24 12:11:22 +00:00
Stephane Lussier 18613bb7c7 Re-enable the owner window in the EndDialog(). 1999-07-24 10:18:02 +00:00
Abey George 46166178e9 Send WM_CONTEXTMENU on WM_RBUTTONUP, not WM_RBUTTONDOWN. 1999-07-24 10:14:51 +00:00
Huw D M Davies 106b08320f Fixed compiler warning. 1999-07-24 10:13:36 +00:00
Eric Pouech fa9724fde8 Fixed some bad ptr occurrence in this class WndProc. 1999-07-23 19:21:56 +00:00
Lionel Ulmer 2bce6fea7e - Added a new option 'noxshm'
- Added a 16bpp -> 32 bpp conversion function
1999-07-23 19:19:56 +00:00
Gerard Patel fd0873770a Change color gray text to 128 128 128 for win9x look. 1999-07-23 19:18:37 +00:00
Noomen Hamza edd3d4afc2 MDIDestroyChild: MDI window menu item was deleted only if the current
destroyed child was active.
1999-07-20 15:03:28 +00:00
Eric Pouech f0380e573c In WIN_UpdateNCRgn, do not send in WM_NCPAINT a region that is used
afterwards, but a copy of it.
1999-07-18 18:26:58 +00:00
Lawson Whitney 9fd10756ad Stop DCE_GetVisRect dereferencing a null wndPtr. 1999-07-18 18:23:20 +00:00
Abey George 8beefb51bf Validate the parent with the child window client rectangle when the
parent's update region is not empty.
1999-07-18 15:40:03 +00:00
Francis Beaudet c37dd06f78 Delay WM_NCPAINT message until the "painter's algorithm" kicks in. 1999-07-18 15:38:29 +00:00
Ove Kaaven 483c548eed CreateDialogParamA should not call CreateDialogParamW, because
that'd create a dialog box with a Unicode dialog procedure...
1999-07-18 15:29:09 +00:00
Alexandre Julliard 4220b29be9 Take advantage of the new registers saved in the STACK16FRAME to turn
some 'register' functions into normal functions.
Removed the few remaining 'return' functions to simplify relay
handling.
1999-07-11 17:20:01 +00:00
Marcus Meissner e32a317b76 Removed the old, historical and no longer working IPC support. 1999-07-11 14:13:56 +00:00
Gerard Patel 03c13bbdd7 Revert last change in window activation on mouse click. 1999-07-11 13:52:13 +00:00
Howard Abrams 132774804e Added checks for sys/errno.h, sys/signal.h and sys/mman.h. 1999-07-10 13:16:29 +00:00
Ulrich Weigand f03c93669b Create dialog window using CreateWindowEx16/W depending on template
type, not dialog procedure type.
1999-07-10 13:08:50 +00:00
Ulrich Weigand 203780eb6e Removed all EVENT_Synchronize( FALSE ) calls; use a periodic callback
calling XFlush() instead.
1999-07-10 10:24:31 +00:00
Alexandre Julliard 359f497e97 Converted to the new debug interface, using script written by Patrik
Stridvall.
1999-07-04 16:02:24 +00:00
Noomen Hamza c01509ccc4 Windows should be activated in these cases:
1- when we click on non active window.
2- when we cancel a moving or resizing of a non active window.
1999-07-04 15:54:11 +00:00
Patrik Stridvall d96e1f133e Moved code to the X11 driver. 1999-07-04 13:31:03 +00:00
Uwe Bonnes a2b938c2d5 WIN_FindWindow: use GetExeptr(pWnd->hInstance) for CLASS_FindClassByAtom. 1999-07-04 12:52:14 +00:00
Per Ångström 53c2028b52 Fixed a problem with apps that override the default behaviour on
WM_MOUSEACTIVATE message (main window was not activated).
1999-07-04 12:46:37 +00:00
Yuxi Zhang 8e35d65f06 Fix a bug in SetWindowPos to prevent parent from erasing its child
painting area when parent window and child window don't have
WS_CLIPCHILDREN and WS_CLIPSIBLINGS.
1999-07-04 10:53:43 +00:00
Yuxi Zhang 526ffdc304 Make defwndproc erase the correct location. 1999-07-04 10:51:28 +00:00
Marcus Meissner 623c0d6f94 some small include fixes, some checks for NULL ptrs,
loader/elf.c: fixed the "lib" insertion
crtdll: added fsopen()
dinput: return that we are attached.
1999-07-03 16:01:42 +00:00
Ove Kaaven 60c78f143b Reworked nonclient drawing code. Win31 look now works more like real
Win31, so apps like Delphi 1.0 no longer go into infinite recursion
etc. Fixed a couple of bugs in win95 look too, but not as thoroughly
(e.g. WS_EX_WINDOWEDGE is still not handled).
1999-07-03 15:40:29 +00:00
Ove Kaaven 5d24a3a2b0 SM_C[XY]FRAME is BorderWidth + 1. 1999-07-03 15:39:09 +00:00
Gerard Patel 4c2a07705c Remove the validated child area from the update region of parent for
windows without WS_CLIPCHILDREN style.
1999-06-27 15:32:23 +00:00
Alexandre Julliard 617955db88 Changed CONTEXT into CONTEXT86 everywhere we really want an i386
context.
Added #ifdef __i386__ around accesses to 386 registers in the generic
CONTEXT structure.
1999-06-26 18:40:24 +00:00
Patrik Stridvall 1ed4ecffa8 ANSI C fixes.
Removed warnings.
Made the include files self-sufficient.
Some Solaris fixes.
1999-06-26 14:58:24 +00:00
Lars Heete dfc46d94a6 Prevent bad window X error. 1999-06-26 11:45:36 +00:00
Abey George 967ec70fe5 The system menu icon on a MDI child window was corrupted when the
child frame window is maximized within the main frame when the wine
look is Windows 95.
1999-06-26 11:44:18 +00:00
Slava Monich 359a748d9b In case if scrollbar has the same background color as the window
it belongs to, it needs to be filled with 0x55aa bitmap brush.
1999-06-26 11:42:27 +00:00
Noomen Hamza e3e54cd4a2 SetCursorPos() function was called with a window coordinates
parameter.
1999-06-26 10:31:44 +00:00
Pascal Lessard 31c58546c9 EnableWindow doesn't release the capture of a child window. 1999-06-26 10:17:10 +00:00
Ulrich Weigand a9238080b7 Use separate service for each windows timer. 1999-06-22 19:11:33 +00:00
Eric Pouech 09f03b410e Moved to new trace interface.
Fixed driver closing.
1999-06-22 19:07:34 +00:00
Philippe Froidevaux c778d9bc85 Added Swiss french keyboard layout. 1999-06-22 19:01:14 +00:00
Alexandre Julliard 0a860a01f9 Merged THDB and TEB structures.
Made SetLastError(), GetCurrentThreadId() and PROCESS_Current() inline.
1999-06-22 11:43:42 +00:00
Alexandre Julliard 55e1af93b5 Added DebugBreak. 1999-06-18 18:24:47 +00:00
Ulrich Weigand 7f53c57321 - Do not call XConfigureWindow if SetWindowPos was called due to a
received ConfigureNotify event (to avoid recursion).
- Use XTranslateCoordinates in EVENT_GetGeometry instead of manually
  walking the tree.
- Set XSizeHint.win_gravity to StaticGravity for managed windows.
1999-06-18 17:03:13 +00:00
Ulrich Weigand a7617a05d1 Bugfix: DISPLAY_SetCursor should not use USER-internals, as it is also
used with native USER ...
1999-06-13 08:35:26 +00:00
Noomen Hamza ff0149e73b Avoid painting destroyed windows. 1999-06-12 18:29:07 +00:00
Patrik Stridvall fdcfdb9a6d Added missing/wrong includes. 1999-06-12 14:55:11 +00:00
Patrik Stridvall 4bf335497d Removed direct references to CLASS internals. 1999-06-12 14:52:15 +00:00
Gerard Patel 5773dade8e Draws a border around windows with old win31 style (only ws_border) in
win95 look.
1999-06-12 14:45:56 +00:00
Pavel Roskin 4b5f876e74 DIALOG_ParseTemplate16() supported up to 127 controls. Bigger values
were expanded to WORD incorrectly.
1999-06-12 08:11:32 +00:00
Noomen Hamza fe0a5e8895 Fixed imprecision in the MDI tiling functionality. 1999-06-12 08:08:35 +00:00
Slava Monich 50d74e1ff2 dwDataSize needs to be reset before each RegQueryValueEx() call. 1999-06-12 06:46:46 +00:00
Ulrich Weigand b38e1decb8 Better implementation of [GS]etForegroundWindow.
Fixed focus handling on inter-thread activation.
Adapted FocusIn/Out event handling to per-queue focus.
1999-06-12 06:42:20 +00:00
Eric Pouech ab450aad07 Fixed order for entering critical sections (X11 vs. WndLock) when
calling X11DRV_MOUSE_SetCursor.
1999-06-07 17:38:53 +00:00
Ron Cemer 16dbfe96c6 Fixes for Win9x and WinNT look and feel. 1999-06-06 17:14:24 +00:00
Ulrich Weigand 79f203af48 Release WND lock before calling PostEvent16(). 1999-06-06 14:42:10 +00:00
Slava Monich 3a170a1724 Implemented dialog units -> pixels conversion very close to how it's
actually done by Windows.
1999-06-06 09:03:08 +00:00
Uwe Bonnes 991fc35847 Add back lost treatment of HWND_TOPMOST. 1999-06-05 15:16:57 +00:00
Ulrich Weigand 92499dba2f Try to improve ConfigureNotify event processing. 1999-06-05 15:12:39 +00:00
Ulrich Weigand 2bb2d9b008 Fixed potential memory corruption in EVENT_QueryZOrder.
Fixed potential X synchronization problem in X11DRV_WND_SetHostAttr.
1999-06-05 11:49:04 +00:00
Slava Monich a27807dca8 o check for both CW_USEDEFAULT and CW_USEDEFAULT16.
o if x is CW_USEDEFAULT (or CW_USEDEFAULT16) and y is *not*
  CW_USEDEFAULT (or CW_USEDEFAULT16) then use y as a second
  parameter to ShowWindow(). Some apps (CALC.EXE for Win98
  is one of them) use this undocumented feature to create
  hidden window with WS_VISIBLE style set.
1999-06-05 11:46:35 +00:00
Ulrich Weigand 153334e50a Removed DummyMotionNotify EVENT driver routine. 1999-06-05 09:02:11 +00:00
Alexandre Julliard 54a39e253c Got rid of THREAD_InitDone.
Made THREAD_Current() inline.
Moved server tid into TEB.
1999-05-29 14:27:26 +00:00
Luc Tourangeau 8e238d04f8 Reimplemented the CheckRadioButton function. 1999-05-29 14:19:42 +00:00
Francis Beaudet 21d50f8ded Fixed a behavior of the focus when a parent window is disabled. 1999-05-29 14:10:02 +00:00
Gerard Patel 16c3cc27d1 Remove unnecessary warning in TranslateAccelator. 1999-05-29 14:02:28 +00:00
Rikhardur Egilsson 365c54e77a Icelandic keyboard support. 1999-05-29 11:04:09 +00:00
Eric Pouech c744345a1f Remove extraneous winuser16.h. 1999-05-24 08:15:57 +00:00
Ulrich Weigand 89fc6fda97 Moved WINSOCK network IO event handling to special thread.
Removed EVENT_WaitNetEvent, introduced a global scheduler event.
1999-05-24 08:13:02 +00:00
Ulrich Weigand e99e844c75 Fix typo (wrong DISPLAY.CheckCursor ordinal).
Superfluous FIXME converted to TRACE in CheckCursor.
1999-05-23 09:18:30 +00:00
Francis Beaudet 4812647155 Fixed a major memory leak in the window management code. 1999-05-22 19:21:01 +00:00
Eric Pouech 6cf348d70a In SetWindowPos if changing Z order and child window not yet in its
parent list, do not link it in WINPOS_ShowIconTitle, check for retval
of WIN_FindWndPtr.
1999-05-22 19:20:02 +00:00
Ulrich Weigand 4698dc5677 Added UserRepaintDisable16(). 1999-05-22 19:02:04 +00:00
Ulrich Weigand a11de67bf2 Removed EVENT_WaitNetEvent() calls. 1999-05-22 19:01:37 +00:00
Ulrich Weigand 5cd4737854 Added IsUserIdle16(). 1999-05-22 19:00:27 +00:00
Ulrich Weigand 5c982c90d2 Adapted to EVENT_ driver changes. 1999-05-22 18:59:15 +00:00
Ulrich Weigand 7581f85617 Moved X input event handling out of EVENT_WaitNetEvent and into
service thread callback; moved EVENT_WaitNetEvent out of the EVENT_
driver.  Changed winContext to hold HWND instead of WND *.
1999-05-22 18:57:17 +00:00
Ulrich Weigand c758201397 Don't change Z-order of child windows when activating. 1999-05-22 18:54:41 +00:00
Ulrich Weigand c5b8b3aeae Improved syslevel handling, store currently held syslevels in thread
database, WIN_CritSection converted to syslevel.
1999-05-22 16:28:47 +00:00
Ulrich Weigand c319c669fb Added ExitKernel16 (replacing USER_ExitWindows), ExitProcess16, and
MapProcessHandle; stub for BUNNY_351.
1999-05-22 16:18:36 +00:00
Paul Quinn 2305f3c06d Microsoft com vtable compatibility workaround for g++. Basically adds
an optional 8 bytes padding to COM objects where the RTTI would be.
1999-05-22 11:41:38 +00:00
Marcus Meissner ddca315388 Replaced all occurences of SYSMETRICS_xx and sysMetrics[SM_xx] by
GetSystemMetrics(SM_xx), removed no longer needed includes of
sysmetrics.h.
1999-05-22 11:33:23 +00:00
Francis Beaudet b7e8e8002d Fixed GetTopWindow so it will correctly handle the NULL parameter. 1999-05-22 10:46:30 +00:00
Juergen Schmied 9090502fda Set the default menu item of the window menu 1999-05-17 15:05:08 +00:00
Ulrich Weigand 4b6b1c3fc8 Suspend window locks before calling hook procedure. 1999-05-17 14:55:30 +00:00
Ulrich Weigand 9c3b18fa38 Fixed window refcount handling in GetNextDlgGroupItem. 1999-05-17 14:54:09 +00:00
Marcus Meissner d7c565f5de Replaced WIN_GetWindowInstance by GetWindowLongA(GWL_HINSTANCE),
removed unnecessary win.h includes, added syslevel.h to queue.c.
1999-05-14 18:39:37 +00:00
Ulrich Weigand 9d35bb8295 Fixed invalid window refcount handling in RDW_Paint(). 1999-05-14 08:10:25 +00:00
Noel Borthwick c90243b861 Fix a deadlock with the system message queue by ensuring the system message
queue is unlocked while the actual message is being processed.
1999-05-14 08:09:13 +00:00
75793af6d1 Added Italian keyboard support. 1999-05-13 18:49:47 +00:00
Andreas Mohr 41d38ee8fb Fixed quite ill window locking code. 1999-05-13 18:43:40 +00:00
Francis Beaudet d9a3d70df5 Fixed an infinite loop in ChildWindowFromPointEx. 1999-05-13 18:43:15 +00:00
Ove Kaaven bcb4bb6931 Cleaner Suspend/RestoreWndsLock, which should fix some slowness. 1999-05-12 10:07:02 +00:00
Alex Korobka 98447497b7 Rearranged PAINT_RedrawWindow() so that it first recursively updates
invalid regions and only then starts sending out messages. This should
help with reentrancy during message processing and now it needs just
one (or none) scratch region for all there is to do. Also, small fixes
for SetWindowPos().
1999-05-08 17:57:09 +00:00
Huw D M Davies a9f55c46c1 Split off wingdi16.h from wingdi.h. Add many more #defines/typedefs
to bring wingdi.h almost upto a complete NT4.0 interface.
Fix return value of SetRectRgn().
1999-05-08 12:45:18 +00:00
Michael Veksler 9d14a001f7 Removed #include "wine/winuser16.h" and use "struct tag????" instead. 1999-05-08 12:40:24 +00:00
Ulrich Weigand e9caf93bbb Removed TIMER_SwitchQueue. 1999-05-08 10:47:23 +00:00
Ulrich Weigand e6ea9ebb5e Check for busy DCE moved to DCHook16(). 1999-05-08 09:50:52 +00:00
Ulrich Weigand ef61c0b632 Initialize WIN_CritSection earlier. 1999-05-08 09:45:50 +00:00
Francis Beaudet ee3c1d7a27 Changed the return value of GetKeyboardState and SetKeyboardState from
VOID to BOOL.
1999-05-08 09:35:37 +00:00
Huw D M Davies 4e700ab90e Bugfix for TRACE in UnregisterClass. 1999-05-08 09:27:25 +00:00
Francis Beaudet 179e8deb6d Check if DC is busy before deleting it. 1999-05-04 16:55:22 +00:00
Ulrich Weigand 279d1174fd Correct implementation of GetWindowThreadProcessId(). 1999-05-04 15:57:27 +00:00
Eric Pouech 8c38f45a7e Fixed some deadlock(s) in message sending. 1999-05-03 09:44:57 +00:00
Alexandre Julliard 06c275a643 Converted to the new debugging interface (done with the help of the
script written by Patrik Stridvall).
1999-05-02 14:32:27 +00:00
Ulrich Weigand 9dcaeca29f Use SERVICES callback to implement Windows timers.
Timer expiration handling removed from EVENT_WaitNetEvent loop.
1999-05-02 11:30:39 +00:00
Noel Borthwick 10619e98e4 Fixed an unbalanced windows lock/unlock sequence in
WINPOS_ActivateOtherWindow.
1999-05-02 11:20:00 +00:00
Juergen Schmied ddb2e291d3 - better stubs for Get/Set special (Progman/Taskman) window functions 1999-05-02 09:19:19 +00:00
Juergen Schmied 13f1b1294d - new SendMessageCallbackW
- some fixme's for missing A<->W conversion
1999-05-02 09:17:48 +00:00
Noel Borthwick 0b027d6c7e Fixed an unbalanced windows lock/unlock sequence in GetNextDlgTabItem. 1999-05-02 09:16:44 +00:00
Guy Albertelli 20ac20724d Correct logic in GetKeyNameText. 1999-05-02 09:11:33 +00:00
Andreas Mohr c21a911c89 Added a missing LeaveCriticalSection. 1999-05-01 10:20:18 +00:00
Francois Boisvert d753a999b1 Fixed a wrong usage of WIN_FindWndPtr/WIN_ReleaseWndPtr in
TranslateMDISysAccel16.
1999-05-01 10:19:35 +00:00
Patrik Stridvall a9a671d7ca Fixed ANSI compabillity. 1999-04-25 19:01:52 +00:00
Bertho Stultiens d1895a776c Built-in dlls now have resources attached via the PE-header like
normal dlls. This enables the use of the resource API.
1999-04-25 18:31:35 +00:00
Patrik Stridvall c7a8dde118 #pragma pack(?) changed to #include "*pack*.h" 1999-04-25 12:36:53 +00:00
Eric Pouech 62b856338f Fixed a bug in msg conversion. 1999-04-25 11:00:36 +00:00
Eric Pouech 8dde5a4fe4 Added missing WIN_ReleaseWndPtr. 1999-04-25 10:58:04 +00:00
Peter Bortas 1e24a087ed Added Swedish keyboard layout. 1999-04-25 10:53:22 +00:00
Noel Borthwick ee7199549a Fixed a problem with managed mode, where popup windows with a WS_DLGFRAME
style were appearing with a title bar. According to the docs for
WS_DLGFRAME a window with this style cannot have a title bar.
1999-04-25 09:19:21 +00:00
Eric Pouech 96c142b940 Fixed some bogus infinite expiration time. 1999-04-25 09:12:27 +00:00
David Luyer a4dd6a6af1 - consolidate both cases of !pending in WaitNetEvent
- select() returns -1 not 0 on error in WaitNetEvent
1999-04-25 09:11:05 +00:00
Guy Albertelli 2fa281f90f Fix locking with proper calls to WIN_ReleaseWndPtr. 1999-04-24 11:54:40 +00:00
Patrik Stridvall 0f8bc5b5c7 Fixed ANSI compabillity. 1999-04-22 16:27:50 +00:00
Michael Veksler ff5ae3dd65 Removed some includes of 16 bit API. 1999-04-22 15:26:11 +00:00
Gerard Patel b7a4f46509 Fixed syscolors for win 3.1. 1999-04-22 09:58:13 +00:00
Paul Millar 0e8d8cc92b Code added to re-evaluate stale DC information in DCE cache. 1999-04-19 16:37:11 +00:00
Patrik Stridvall b4b9fae671 New debug scheme with explicit debug channels declaration. 1999-04-19 14:56:29 +00:00
Juergen Schmied 7851394159 - use fonts/fontsizes given by SystemParametersInfo
- drawing/alignment fixes, win98 style for menubar
- ownerdrawn menus are working now for the first time
- complete constants magic items
- use right owner for popupmenus
- new: Get/SetMenuInfo
- implemented: Get/SetMenuContextHelpId
- more flags for Get/SetMenuItemInfo
1999-04-18 14:40:32 +00:00
Eric Pouech 3be8e3b7ff Properly handling cases like calling SetWindowPos while processing
WM_NCCREATE.
1999-04-18 13:13:40 +00:00
Juergen Schmied 4ab79f9619 Loading color values from the registry fixed. 1999-04-18 09:32:38 +00:00
Michael Veksler c48f04f09f Add "win.h" to fix implicit function declaration warnings. 1999-04-18 09:26:29 +00:00
Noel Borthwick a0d03ef1fc While handling the WM_DELETEWINDOW client message check if a window
has been disabled and if so prevent an SC_CLOSE message from being
sent.
1999-04-18 09:21:01 +00:00
Noel Borthwick b0ebeeb0d1 Make access to the DCE list thread safe by ensuring we have acquired
the Windows lock before using it.
1999-04-18 09:19:55 +00:00
Michael Veksler 58abac376f Fixed warnings. 1999-04-16 09:41:22 +00:00
Pablo Saratxaga 002106ac22 Added walon language support (I also moved Cz -> Cs, Sw -> Sv, and Po
-> Pt; to conform to standard names for those languages).
1999-04-16 09:06:58 +00:00
Zygo Blaxell 007f1335c1 ReleaseCapture() is supposed to return a BOOL value. 1999-04-15 16:40:16 +00:00
Huw D M Davies 746706b309 index == 3 corresponds to Alt-Gr + Shift. 1999-04-15 16:37:16 +00:00
Pavel Roskin 6f01462b8b Fixed ugly disabled controls and black background in Write and Lotus
Notes.
1999-04-15 15:52:59 +00:00
Francois Boisvert e5811f0eb1 Solved a deadlock between global lock and wnd lock in event.c. 1999-04-15 15:22:23 +00:00
Guy Albertelli 76d8abe38f Fix scancodes for NumLock and Num-/.
Fix MapVirtualKey() (maptype=2) to return proper ascii code.
Reworked GetKeyNameText() again.
1999-04-15 15:14:44 +00:00
Marcus Meissner f203ab6604 Missing WINAPI for RegisterSystemThread. 1999-04-15 15:12:40 +00:00
Francois Boisvert 0ed478d1d7 Enabled thread safeness for wnd structure code. 1999-04-11 17:16:19 +00:00
Ove Kaaven 0df0f1fd28 Teached TIMER_GetNextExpiration that a timer that has already expired
(but not processed yet) HAS already expired...
1999-04-11 17:10:05 +00:00
Guy Albertelli 2031d6c430 Partial implementation for GetKeyNameText for new keyboard structure. 1999-04-11 14:47:41 +00:00
Bertho Stultiens af50474298 Added RegisterSystemThread stub. 1999-04-11 12:04:33 +00:00
Francois Boisvert 71bdc7c851 Check if pTempActiveWindow in WINPOS_SetWindowPos is valid after the
QUEUE_Lock.
1999-04-11 11:59:25 +00:00
Juergen Schmied d0d1f1505e Loading the color schema for registry. 1999-04-11 11:39:17 +00:00
Eric Pouech bd1a0a6e4d Better error handling ; a few bug fixes ; now OpenDriver16 can load 32
bit drivers.
Added stub for GetDriverFlags.
1999-04-10 16:50:24 +00:00
Sergey Turchanov 2f5a152e9e Stubs for CloseDesktop and CloseWindowStation. 1999-04-10 16:48:46 +00:00
Brian Gerst 2f9a31c2dc Fixed X11DRV_MOUSE_WarpPointer initial value. 1999-04-10 16:37:03 +00:00
Gerard Patel e38b0e10d5 Fixed window locking bug in CalcChildScroll. 1999-04-10 16:28:12 +00:00
José Marcos López 05eb8b5125 Added Spanish keyboard layout. 1999-04-04 12:44:42 +00:00
Francois Boisvert 7d7fe7c121 Suspend the window locks before DefKeybEventProc and
DefMouseEventProc.
1999-04-03 16:27:53 +00:00
Eric Pouech c049e81683 No longer sending atoms in ((CREATESTRUCT*)lParam)->lpszName of
WM_CREATE messages.
1999-04-03 16:24:47 +00:00
Eric Pouech 24f5ffc620 Updated French keyboard. 1999-04-03 13:50:58 +00:00
Ove Kaaven 787cf10922 'Realigned' the layout table a bit. Applied the non-latin-1 stuff and
the dead key mapping stuff to the actual mapping code too.  Prettied
up the fixme message. Added a check where if the keys of two layouts
match exactly, the one with the best-matching keycode order is chosen,
so that the QWERTY and Dvorak layouts can be distinguished.
1999-04-03 11:18:58 +00:00
Francois Boisvert 86e2e11137 Transfered the window struct memory release from WIN_DestroyWindow to
WIN_ReleaseWndPtr.
1999-04-03 11:13:33 +00:00
Francis Beaudet 373db5cea2 Wrote a basic implementation of the WM_PRINT message. 1999-04-02 10:36:21 +00:00
Francois Boisvert d96bc15580 Suspend all windows locks before the control is passed to the
application.
Also fixed some bugs in dce.c
1999-04-02 10:34:43 +00:00
Marcus Meissner 2199f6e078 Split off keysym/deadchar -> char mapping, use it in DetectLayout. 1999-04-01 12:05:44 +00:00
Alex Korobka 44a1b59cec Fixes for ignored WVR_[VH]REDRAW flags, made minimization in managed
mode go through window manager, small bugfixes for menu and window
code, extended clipboard driver model to handle formats other than
text.
1999-04-01 12:03:52 +00:00
Ulrich Weigand e392a0c975 Added USER32.UserSignalProc to Callout table.
Implemented built-in UserSignalProc().
Don't announce Win3.1-style USER handler any more.
1999-04-01 11:44:52 +00:00
Luc Tourangeau 5591bc6323 Implemented WM_NOTIFYFORMAT. 1999-04-01 10:10:24 +00:00
Eric Pouech 7f14c085bd In UserYield16, when current thread is a 32 bit one which hold the
Win16Lock, must take care of a LockCount > 1.
1999-04-01 09:58:53 +00:00
Patrik Stridvall b87fe2e9bf More code moved to the X11 driver (bitmap and palette and misc). 1999-04-01 08:16:08 +00:00
Dimitrie O. Paun 05c0c8ef13 Changed some debug messages from one channel to another, to clean up a
bit the debug channel usage.
1999-03-28 15:07:41 +00:00
Pavel Roskin dbfdca8b4c Added Russian keyboard support. 1999-03-28 13:44:56 +00:00
Lionel Ulmer 5f5b576a45 Added stub for SetSystemCursor. 1999-03-28 13:42:12 +00:00
Pavel Roskin f15d180669 Changes in X11DRV_KEYBOARD_DetectLayout in order to implement Russian
keyboard support.
1999-03-28 13:39:55 +00:00
Alexandre Julliard f80b2ab669 Authors: Paul Quinn <paulq@corel.ca>, Aaron Barnes <aaronb@corel.ca>, Adrian Thurston <adriant@corel.ca>
Bundle of new stubs.
1999-03-28 13:15:40 +00:00
Ulrich Weigand 831560cd97 Call EVENT_Pending() to flush X11 output queue before blocking in
MsgWaitForMultipleObjects().
Don't call EVENT_WaitNetEvent in MSG_PeekHardwareMsg.
Protect system queue access in hardware_event().
1999-03-28 13:10:54 +00:00
Francois Boisvert 3a3cd9fab1 Fixed some bugs in thread safeness for wnd struct. 1999-03-28 12:42:52 +00:00
Jonathan Naylor a5a02279a6 Added Swiss German keyboard layout. 1999-03-28 12:36:27 +00:00
Alex Korobka 4f1ac05dea Moved hrgnUpdate from client to window coordinates, made nonclient
painting depend on the update region, reworked SetWindowPos() and
RedrawWindow() to speed up update region calculation, made -desktop
work properly, added WM_CANCELMODE here and there, fixed several
window activation bugs that crept in since the last time.
1999-03-28 09:37:57 +00:00
Alex Korobka 073e3bc9e5 Fixed occasional loss of SendMessage() return value. 1999-03-28 09:19:31 +00:00
Ulrich Weigand da5779e5bd Allow UserYield16 to be called from 32-bit thread. 1999-03-27 16:10:52 +00:00
Randy Weems 0bc73c7818 Fixed off-by-one error if bitblt width or height is negative. 1999-03-25 15:49:11 +00:00
Stephane Lussier 35ffc5d8c0 Made the timer code thread safe. 1999-03-25 13:23:26 +00:00
Francis Beaudet f91e6d037e Fixed possible endless loop. 1999-03-25 13:22:42 +00:00
Ulrich Weigand 85d52b35c3 Add IsWindow() checks after SendMessage() returns. 1999-03-24 15:01:29 +00:00
Eric Pouech 9f2ad566ff Fixed return codes for default driver proc. 1999-03-22 14:47:36 +00:00
Kalevi J Hautaniemi cc5d924b63 Added Finnish keyboard layout. 1999-03-22 14:46:08 +00:00
Veksler Michael e94e35431e Removed winuser16.h from x11drv.h. 1999-03-22 12:41:26 +00:00
Veksler Michael 3130fcec86 Fixed "reached end of non void..." warnings. 1999-03-22 12:37:09 +00:00
Robert Pouliot 4f278bdac1 One small error corrected and the 102th key... 1999-03-21 15:46:34 +00:00
Francis Beaudet 7c2f0fe45d Clear update region before WM_NCDESTROY. 1999-03-21 08:50:41 +00:00
Alexandre Julliard 34bf815822 Got rid of SYSTEM_LOCK macros. 1999-03-21 08:36:55 +00:00
Pavel Roskin c501207956 Fixed WIN_SendDestroyMsg. 1999-03-19 16:59:18 +00:00
Eric Pouech c9ed21f718 Fixes some return values for DefDriverProc. 1999-03-19 16:57:29 +00:00
Andreas Mohr 01f8426f4a Hide dialog windows created by CreateDialog* in EndDialog just as
Windows does.
1999-03-19 16:49:30 +00:00
Bertho Stultiens ff2b369739 Fixed Danish keyboard layout. 1999-03-19 16:42:52 +00:00
Marcus Meissner 6b9dd2e098 Lots of warning fixed, one missing WINAPI in ddraw.c added. 1999-03-18 17:39:57 +00:00
Bruno Afonso e70b1838df Added Portuguese keytable. 1999-03-17 15:54:44 +00:00
Robert Pouliot 5574c99bca Added Canadian French keyboard layout. 1999-03-17 15:39:36 +00:00
Huw D M Davies 12eb5fd1e8 Added UK keyboard layout. 1999-03-17 15:29:35 +00:00
Francis Beaudet eb6a9f0804 Implemented a more defensive version of WIN_SendDestroyMsg. 1999-03-17 15:17:48 +00:00
Ulrich Weigand c68c4b15f0 Inter-thread SendMessage() bugfixes:
- Insert new message to be received at the *end* of the SM_PENDING_LIST.
- Do *not* process received messages in ReplyMessage().
- Clear the QS_SMRESULT flag only immediatedly before waiting.
1999-03-17 15:14:31 +00:00
Ulrich Weigand 6d45e7a9ef Avoid unnecessary error messages. 1999-03-16 10:37:30 +00:00
Ulrich Weigand 5b803350e9 Ignore HIWORD of boolean return values of 16-bit hook procedures, to
match buggy Windows behaviour.
1999-03-16 10:29:55 +00:00
Pavel Roskin 598993f41f Fixed bug introduced in WIN_FindWindow. 1999-03-16 09:53:10 +00:00
Ove Kaaven 44b717825d Better comments, and added ANSI codepages in table.
US keyboard contributed by Uwe Bonnes.
French keyboard contributed by Eric Pouech.
German keyboard contributed by Ulrich Weigand.
Danish keyboard contributed by Bertho Stultiens.
1999-03-15 15:24:32 +00:00
Eric Pouech 3fb2f4289f Better 16/32 bit driver messages mapping and handling.
Better protection against bad handles.
1999-03-15 15:14:06 +00:00
Francois Boisvert 6b1b41cf85 Made access to the wnd struct thread-safe. 1999-03-14 17:25:32 +00:00
Jim Aston 2e1cafa288 Renamed wintypes.h to windef.h. 1999-03-14 16:35:05 +00:00
Patrik Stridvall 110b4c193c Reimplemented some code without using X11. 1999-03-14 15:20:53 +00:00
Ove Kaaven 7173e1c26e First attempt at supporting different keyboard layouts with their
correct scancode mapping.
1999-03-14 14:00:57 +00:00
Pavel Roskin a0fd289aef Prevent X11 errors when XCreateWindow is called with zero width or
height.
1999-03-14 13:41:07 +00:00
Marcus Meissner 88e651dac3 Fixed newly introduced and some leftover warnings. 1999-03-13 18:20:26 +00:00
Guy Albertelli 4a6af35bc4 Handle null wndPtr for mdi window. 1999-03-13 17:03:41 +00:00
Juergen Schmied d3258fc75e Message translation for WM_WININICHANGE. 1999-03-12 17:13:54 +00:00
Pavel Roskin d8e58eb40d obm_closed_95 should not be drawn inverted. 1999-03-12 17:09:43 +00:00
Stephane Lussier 0d5fe58361 Create a new DC in GetDCEx when none are available. 1999-03-12 17:04:28 +00:00
Stephane Lussier bae5552a14 Implemented SendMessageTimeout() functions. 1999-03-10 16:21:12 +00:00
Ulrich Weigand 1b938b1817 Adapted to cursor/icon handling changes. 1999-03-10 14:03:06 +00:00
Ulrich Weigand 175989dbd4 Bugfix: ToAscii should not generate ASCII code when key-up flag is set. 1999-03-10 13:28:30 +00:00
Ulrich Weigand 9cfeb5b88c Avoid unnecessary GraphicsExpose events. 1999-03-10 13:26:09 +00:00
Ulrich Weigand c08b9c5b90 Bugfix: DirectedYield() only to 16-bit tasks in ReplyMessage(). 1999-03-09 17:38:26 +00:00
Marcus Meissner de43ef45ec Fixed a lot of warnings using WINE_UNUSED, casts, commenting out and
additional {}. Rewrote GetCreationModeFromSTGM so we don't get
"possible use of uninitialized variable".
1999-02-28 19:56:59 +00:00
Marcus Meissner 064f170f76 More include optimisations and fixes. 1999-02-28 19:14:33 +00:00
David Luyer ee517e863e - fixed missing stdlib.h and string.h includes everywhere
- removed a couple of unneeded stdlib.h and stdio.h includes
1999-02-28 12:27:56 +00:00
Alexandre Julliard 8feb3bc177 Process and thread id now use the server-side id instead of an
obfuscated pointer.
1999-02-28 12:25:03 +00:00
Guy Albertelli 38d9ce811d - Code to return default language code as keyboard layout.
- Implemented other stubs associated with keyboard layout:
  GetKeyboardLayoutNameA, ActivateKeyboardLayout,
  LoadKeyboardLayout[AW], GetKeyboardLayoutList.
1999-02-28 11:13:16 +00:00
Juergen Schmied 1e0bc841f3 FIND_WndPtr should not set ERROR_INVALID_WINDOW_HANDLE when hWnd=0. 1999-02-28 11:08:13 +00:00
Francis Beaudet bfaf063892 Order of send message processing was not respected and the message
stacked last finished after the message stacked first.
1999-02-28 10:02:57 +00:00
Francis Beaudet dae09c99a2 Added checks to guard against NULL active window. 1999-02-28 10:01:44 +00:00
Norman Stevens 460881ce82 Don't check children of disabled or invisible controls for dialog
keyboard accelerators. Fixes problems with dialogs with tab boxes.
1999-02-28 09:59:32 +00:00
Alexandre Julliard a396029270 Large-scale renaming of all Win32 functions and types to use the
standard Windows names.
1999-02-26 11:11:13 +00:00
Alexandre Julliard 566e8547f3 Make GetWindowLong(GWL_HWNDPARENT) return the same thing as
GetParent32; suggested by Dave Pickles <davep@nugate.demon.co.uk>.
1999-02-25 18:05:48 +00:00
Francois Boisvert 93e3f905c8 Adding of new functions to make the wnd struct thread safe. Adding of
irefCount in wnd struct.
1999-02-25 17:32:31 +00:00
Pascal Lessard 83f39cf776 ScrollDC32 modified to return rect in logical coordinate. 1999-02-25 16:35:22 +00:00
Marcus Meissner 219cfd8387 Optimized away more includes, readded some #includes for necessary
prototypes.
1999-02-24 13:05:13 +00:00
Lionel Ulmer 75e8a78efa Added stubs for two missing methods of DInput. 1999-02-24 10:53:30 +00:00
Stephane Lussier 110cdb1cd8 Fixed some SendMessage bugs. 1999-02-24 09:43:09 +00:00
Marcus Meissner 61afa33b03 Some more recursive include fixes/optimizations. 1999-02-22 10:16:00 +00:00
Francois Gouget b233fc310a Updated to use the latest COM macros, ICOM_VTABLE and ICOM_THIS.
Added the interface implementation structures.
I remembered from an email that even when asked for a
IDirectInputDeviceA what was returned was an IDirectInputDevice2A so I
considered that we would only implement the latter. The
IDirectInputDeviceA_xxx methods have been renamed to
IDirectInputDevice2A_xxx, and we always return our IDirectInputDevice2A
implementation as before.
Renamed the implementation structures to XxxImpl.
1999-02-22 09:52:54 +00:00
Michael Veksler 3fbb8dc829 - Fix headers to include less or smaller header files.
- Fix header and source files to include missing header files to avoid
  warnings and errors.
1999-02-21 18:23:26 +00:00
Stephane Lussier b50272bd75 Fix problem where you need mouse activity to unlock some 16 bits
thread with multi-threaded apps.
1999-02-21 18:15:26 +00:00
Martin Walker 4d1d359c2b Fixed message filtering check. 1999-02-19 16:50:24 +00:00
Alexandre Julliard f0a0e126f3 Reverted broken close button change. 1999-02-19 16:02:32 +00:00
Francis Beaudet 6a6f6e247c Temporary fix suggested by Ulrich to allow the
MsgWaitForMultipleObject method to be called from 16 bit threads.
1999-02-19 15:34:40 +00:00
Ove Kaaven 105afce7a5 Initialized return value of 16->32 conversion of WM_MDIGETACTIVE in
case it's sent to a window that doesn't handle it (i.e. not MDI
client).
1999-02-19 15:33:59 +00:00
Ove Kaaven 077c2732b8 Added extra child arguments to DCE_GetVisRgn() to be able to handle
PARENTDC class style combined with CLIPCHILDREN window style, to
prevent mis-redraws in Free Agent 16-bit.
1999-02-19 15:27:58 +00:00
Stephane Lussier 2c86dab53a - New implementation of SendMessage, ReceiveMessage, ReplyMessage functions
to support thread-safeness, and nested SendMessage.
- Addition of ReplyMessage32.
1999-02-18 17:34:09 +00:00
Ulrich Weigand 4aaf65e6b4 Bugfix: Cope with NULL pDriverData in X11DRV_WND_GetXWindow. 1999-02-18 17:30:40 +00:00
Francois Boisvert 308c6afe62 Implementation of the pushed close button. 1999-02-18 10:37:17 +00:00
Marcus Meissner 317af320cf Optimized include/*.h: (recursively) include all headers needed by
this .h file, but only those. Necessary fixes to a lot of .c files,
started optimizing "windows.h" away from some of them. Moved
GetCurrentTask prototype to wine/winbase16.h.
1999-02-17 13:51:06 +00:00
Dave Pickles 34a4b91e78 GetUpdateRect should return client coordinates unless the window was
created with the CS_OWNDC style and the mapping mode is not MM_TEXT,
in which case the result should be in logical coordinates.
1999-02-17 12:36:26 +00:00
Ove Kaaven 6ec132b61a Resetting X focus should not be done with SetFocus32. Called
the windowing (X11) driver's SetFocus routine directly instead.
This apparently fixes a big heap of user interface problems.
1999-02-15 12:46:32 +00:00
Eric Pouech b9544f159d Changed some functions prototypes (were returning void). 1999-02-14 14:09:42 +00:00
Jerome Vouillon 1da6dbab67 Make a correct use of clipping rectangles. 1999-02-14 13:32:13 +00:00
Ove Kaaven 8cef89652d Since SetParent now hides/shows, explicitly invalidating DCs in the
parent change operation should no longer be necessary.
1999-02-14 11:23:01 +00:00
Gerard Patel 902f9c65a5 Fix if EndDialog called in WM_INITDIALOG (DIALOG_DoDialogBox). 1999-02-14 11:22:03 +00:00
Joseph Pranevich ebc0e5e0a4 Moved initialization until later. Also moved around code a bit to be
consistant.
1999-02-14 11:15:47 +00:00
Huw D M Davies bc1d1df097 WIN31 Look still needs a close button on the left of the menu bar. 1999-02-14 09:20:01 +00:00
Francois Boisvert ae806896cb Changed SetWindowPos32 to force the update of the non-client area. 1999-02-14 09:18:15 +00:00
Marcus Meissner 65e1f75f58 Some warnings fixed, one useless VERSION warning removed (winelib). 1999-02-13 17:38:16 +00:00
Stephane Lussier 7798307bdf Use global synchronization objects, to be able to use it in different
processes (not only the process which create the synchro object).
1999-02-13 12:24:04 +00:00
Norman Stevens ce14194050 Set hwndActiveChild when maximizing a mdi child window because it is
not set when maximizing a window other than the active child.
1999-02-13 12:22:48 +00:00
Francois Boisvert 197a8e163e Implemented the WIN31 Look mdi buttons and also some defines for the
magic menu items.
1999-02-13 09:10:17 +00:00
Ove Kaaven 72d8dbe38a Changed SetParent32 to adhere to Windows behaviour (mostly),
which should also keep it from leaving garbage around.
1999-02-13 09:02:17 +00:00
Ove Kaaven a4e29e5b1d Don't call EVENT_DummyMotionNotify for hidden windows. 1999-02-13 08:55:28 +00:00
Stephane Lussier 1242311e67 Fix some thread-safeness problem when accessing the system message
queue.
1999-02-13 08:54:21 +00:00
Marcus Meissner 592c910b7c Implemented MapVirtualKeyEx (ticket 21).
Ignore keyboard layout for now.
1999-02-13 08:53:22 +00:00
Juergen Schmied 1ed51af346 Small fixes to compile with the headers (mostly nt-security). 1999-02-12 17:47:07 +00:00
Ulrich Weigand c95df10ed6 Use MONITOR_... instead of DESKTOP_... routines to get screen
dimensions; these work also with native USER.
1999-02-12 12:46:49 +00:00
Ove Kaaven 1fd63057ad WM_ACTIVATE default processing should set window focus.
Should fix focus problems in non-managed mode.
1999-02-12 12:44:53 +00:00
Juergen Schmied 0aa7fdbd30 FindWindow failed for 32 bit windows with style != WS_CHILD. 1999-02-11 10:19:10 +00:00
Michael Veksler f935c59787 Added missing includes to avoid warnings/errors. 1999-02-09 15:49:39 +00:00
Stephane Lussier b3a99de50d -Fixed MESSAGE functions that were thunking down to 16 bits implementation.
So PeekMessage32, GetMessage32, PostMessage32, PostThreadMessage are fixed
with this patch. Unicode version of those functions is currently only
calling the ASCII version.
-Fixed queue signaling using a new EVENT object in the queue for 32 bits
thread. MsgWaitForMultipleObject has been fixed and is now blocking on the
right EVENT.
1999-02-09 15:35:12 +00:00
Marcus Meissner 69c0bbea1a Some small bugfixes, added more PE relocation types (for WinCE mostly),
some console prototypes, -dll is useful for winelib too, regtest
compile fixed.
1999-02-09 14:25:57 +00:00
Lionel Ulmer 629b9fa4a3 Added buffered device access for DInput's mouse driver. 1999-02-09 14:18:21 +00:00
Francois Boisvert 47e2b852c3 The systems buttons (minimize/restore/close) now appear on the menu
bar of mdi application.
1999-02-09 14:11:19 +00:00
Stephane Lussier 91bb1f974c - Cleaned up the message queue when a thread exit (but not the process).
- Modified QUEUE_DeleteMsgQueue to exit gracefully (without crashing Wine) if
  queue link list is corrupted.
1999-02-09 14:07:07 +00:00
Noel Borthwick b427856b45 Added management and allocation of the PERQUEUEDATA structure. 1999-02-05 10:37:53 +00:00
Patrik Stridvall 8d8703cb48 Moved some more code to the X11 driver. 1999-02-04 14:05:38 +00:00
Patrik Stridvall c6e6a9aff9 TTY driver changes. 1999-02-04 13:14:42 +00:00
Patrik Stridvall ab121e7838 X11 driver changes. 1999-02-04 11:11:01 +00:00
Patrik Stridvall e8c89484e8 Implementation of the new monitor abstraction. 1999-02-04 10:12:55 +00:00
Alexandre Julliard cb8ef7d2bb Dialog window should not be destroyed in DefDlgProc; this break
modeless dialogs.
1999-01-31 15:02:23 +00:00
NF Stevens e00bb9d3f7 Create X window for child windows reparented to be top level windows. 1999-01-31 10:01:41 +00:00
Juergen Schmied 535f32ffd5 Stub for GetUserObjectSecurity. 1999-01-31 09:20:36 +00:00
Juergen Schmied afd5580fcb Every EM_GETLINE send between a 32W to a 32A window returned
incomplete values before (the first 2 chars where cut away).
1999-01-31 09:18:58 +00:00
Huw D M Davies 1b450209ec Fix typo in SetWindowPos32. 1999-01-31 09:17:38 +00:00
Bernd Herd ec721121e0 SetParent should link the window at the start of the list. 1999-01-30 15:50:58 +00:00
NF Stevens 114899a9de In Window SetWindowPos with SWP_HIDEWINDOW does not remove
the focus from the focus window; ShowWindow with SW_HIDE does.
So move the code that does this from SetWindowPos to ShowWindow.
1999-01-30 15:49:51 +00:00
Francis Beaudet 84ee125fd9 Make sure that the keystate received by the WM_XBUTTONUP and
WM_XBUTTONDOWN matches the message. In X, the keystate is changed
after the message is processed.  In Windows, it is changed before.
1999-01-30 12:59:09 +00:00
Stephane Lussier 1c4786fedf - Made the message queue access to be thread safe. (Using two new
functions to access the message queue, QUEUE_Lock(), QUEUE_Unlock()
  instead of GlobalLock16()).
- Fixed QUEUE_DumpQueue (used by "info queue <handle>" with the
  wine-debugger).
1999-01-28 10:54:11 +00:00
Marcus Meissner 03479f8adb Fixed a lot of warnings for possible problems. 1999-01-28 10:06:38 +00:00
Marcus Meissner 08e250ee69 Fixed loading of win32 drivers. 1999-01-28 08:59:26 +00:00
Eric Pouech 0248381a14 Added support for loading drivers in Wine. 1999-01-26 17:23:30 +00:00
Stephane Lussier a4c8445ba3 - Changing MESSAGEQUEUE structure according to Ulrich proposition.
- One message queue for every thread needing it.
- Messages in the message queue are now stored in a linked list
- Messages are allocated in the system heap.
- Messages in the message queue are 32 bits (MSG32).
- All read/write operations regarding messages in the message queue are
  thread safe.
1999-01-26 09:30:05 +00:00
Marcus Meissner bb7959b58a Free the private data pointer, THEN set it to NULL. 1999-01-24 18:55:48 +00:00
Marcus Meissner 1da0242f58 Missing WINAPI. 1999-01-24 18:54:56 +00:00
Andreas Mohr 94e4485bff Implemented WIN16_CallMsgFilter32, WIN16_DispatchMessage32,
DrawAnimatedRects16 (stub), FormatMessage16, WIN16_GetMessage32,
WIN16_PeekMessage32 and WIN16_TranslateMessage32.
1999-01-23 14:15:17 +00:00
Marcus Meissner 308477b6df Set private data struct to NULL to expose problems in other code
better. Fixes the XUnmapWindow problems reported by replacing them
with NULL ptr dereferences.
1999-01-23 14:03:11 +00:00
Marcus Meissner 688c565880 Fixed accelerator handling. ACCEL16 used internal, ACCEL32 for Win32
API, PE_ACCEL for PE Accelerators. See documentation/accelerators.
1999-01-22 17:09:46 +00:00
Noomen Hamza bfd0228180 Fixed the NC_DrawMaxButton95 and NC_DrawMinButton95 functions. Rewrote
these functions with the same logic as the NC_DrawCloseButton function.
1999-01-20 14:03:49 +00:00
Noel Borthwick 463eb29419 Reparenting a window with SetParent in Windows should cause the child
window being re-parented to be moved up to the topmost in the z-order,
and WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED messages to be sent.
1999-01-20 13:50:13 +00:00
Ulrich Weigand 0be24af74d Handle (console) applications that never created a queue correctly
in USER_AppExit(); call InitThreadInput() in InitApp().
1999-01-20 13:16:32 +00:00
Ulrich Weigand a897518673 - Fixed creation of message queue in hook API routines.
- Some preparations for thread-local message queues.
1999-01-20 13:11:45 +00:00
Ulrich Weigand 1afd5a25f0 Use Callout to call RedrawWindow32. 1999-01-20 12:52:10 +00:00
Alexandre Julliard 8da12c43a9 Group commit for recovery after disk crash.
See Changelog for changes WRT release 990110.
1999-01-17 16:55:11 +00:00
Alexandre Julliard 638f169b1e Recovery of release 990110 after disk crash.
See Changelog for changes between 990103 and 990110.
1999-01-17 16:32:32 +00:00
NF Stevens e365a23341 Fix the return type of DLGPROC type and mask out the unset highword of
the return when a 16 bit dialog proc is called.
1999-01-03 16:13:08 +00:00
Michael Veksler ca1bc866cf Moves more stuff from windows.h.
- include/winuser.h - interface relevant to user32.spec
- include/wine/winuser16.h - the old 16 bit interface (internal use)
- include/winbase.h - some minor updates to keep things coherent.
- Lot of other files made to include wine/winuser16.h, which is no
  longer included from windows.h
1999-01-01 18:57:33 +00:00
Alexandre Julliard dbf2bf00bc Moved MsgWaitForMultipleObject implementation to USER routines, using
a normal Win32 event.
1999-01-01 17:05:53 +00:00