Commit Graph

572 Commits

Author SHA1 Message Date
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