Commit Graph

1332 Commits

Author SHA1 Message Date
Jukka Heinonen d7d564b227 Releasing a mouse button now clears an entry in table
InputKeyStateTable instead of AsyncKeyStateTable.
2001-10-17 19:36:31 +00:00
Bill Medland 3d4d0862bb Only modify the ancestor if you find it. 2001-10-17 19:35:36 +00:00
Alexandre Julliard 4b62618122 Added support for low-level mouse and keyboard hooks.
Misc keyboard handling cleanups.
2001-10-17 17:50:02 +00:00
Alexandre Julliard 516e40e154 Make sure that GetMessagePos and GetMessageTime return sane values
for all messages.
2001-10-17 17:48:49 +00:00
Alexandre Julliard fb0ff053c0 Added internal Wine messages to perform SetWindowPos, ShowWindow and
SetParent in the correct thread.
Replace QUEUE_IsExitingQueue by USER_IsExitingThread.
Store window rectangles in the server.
Prevent DestroyWindow on windows not belonging to the current thread.
2001-10-16 21:58:58 +00:00
Alexandre Julliard b662e11a00 Moved scrollbar tracking code to scroll.c.
Avoid unnecessary coordinates conversion in NC_HandleSysCommand.
2001-10-16 21:52:26 +00:00
Gerard Patel 1e8b025423 Fix the case where child=0 (last child) in MDI_ChildActivate. 2001-10-15 18:00:09 +00:00
Alexandre Julliard 8fd26b9134 Renamed WIN_GetWndPtr into WIN_GetPtr and added corresponding
WIN_ReleasePtr. Started using it instead of WIN_FindWndPtr where we
don't need to access windows of other processes.
2001-10-15 17:56:45 +00:00
Francois Gouget 386cf6e342 When including 'wine/port.h', include it first.
Remove redundant 'config.h' includes.
2001-10-14 16:25:47 +00:00
Francois Gouget e5ddd26dd7 When including config.h, include it first. 2001-10-14 16:18:52 +00:00
Francois Gouget b60c4ce0f0 Don't print NULL strings (crashes on Solaris).
Small code maintainability tweak in ShellExecuteExA.
Two typo fixes in winmm.
2001-10-14 16:15:05 +00:00
Alexandre Julliard 7a2017dd65 Store window properties in the server. Moved property.c to dlls/user. 2001-10-12 19:10:26 +00:00
Marcus Meissner bc799e402d Handle bad pointer arguments to LoadImageA() (and functions
callingLoadImageA) with an exception handler.
2001-10-12 18:42:17 +00:00
Dominik Strasser 9d777f90c6 Workaround X11 BadWindow error if no parent window is found. 2001-10-12 18:41:50 +00:00
Alexandre Julliard 003f02b733 Removed the cleanup_window_queue request. 2001-10-11 20:50:10 +00:00
Alexandre Julliard 80593bf842 Removed next and child fields in the window structure and use
WIN_ListChildren instead.
2001-10-11 20:49:40 +00:00
Alexandre Julliard 556607a147 Store window parent as an HWND instead of a pointer. 2001-10-10 20:28:17 +00:00
Alexandre Julliard e6d90ea98f Fixed locking of class list.
Print ERR when accessing classes of other processes.
2001-10-09 23:27:17 +00:00
Alexandre Julliard 844ceb98ba Store window class atom in the server.
Keep unlinked windows on a separate list.
Implemented inter-process FindWindow().
2001-10-09 23:26:40 +00:00
Alexandre Julliard 3949386d76 Moved MsgWaitForMultipleObjects call on RDW_UPDATENOW out of the
RDW_Paint recursion.
2001-10-08 22:32:05 +00:00
Francois Gouget ba7f6c541f Fix infinite loop problem in wineclipsrv startup.
LaunchServer: Don't give up on the first message.
Added GetSelectionEvent: Limit CPU use and introduce timeout.
2001-10-08 20:28:36 +00:00
Francois Gouget 671a2ee8b7 Better handling of the timeout in WaitForInputIdle.
Use WAIT_FAILED rather than the corresponding literal.
2001-10-08 20:28:12 +00:00
Alexandre Julliard 62fb0825bf Process pending events before sending WM_PAINT on RDW_UPDATENOW. 2001-10-05 19:47:42 +00:00
Johan Gill 3dc764038d The LR_ defines do not reside in windows.h anymore. 2001-10-05 19:38:14 +00:00
Dmitry Timoshkov 2c7cc63179 Add XK_Mode_switch to the list of ignored keysyms. 2001-10-05 19:37:19 +00:00
Gerard Patel 94ce2a3303 Map a window if it is shown by a direct style change. 2001-10-03 18:44:02 +00:00
Alexandre Julliard e566195eaf Free cache DCEs if the DC gets deleted. 2001-10-02 21:40:11 +00:00
Alexandre Julliard 185ba234ec Fixed typo in previous change. 2001-10-02 21:39:48 +00:00
Alexandre Julliard a21672ebbc Merged mouse buttons states into the key state array.
Fixed confusion between queue state and async state.
2001-10-02 18:53:59 +00:00
Andriy Palamarchuk 676eb230e1 Added SYSMETRICS_Set.
Implemented SPI_SETSHOWSOUNDS action.
2001-10-02 18:35:32 +00:00
Dmitry Timoshkov ef54643490 Remove a hack for keyboard group switching.
Always save/restore correct keyboard group index.
Explicitly ignore the keyboard group switching events.
2001-10-02 17:17:31 +00:00
Alexandre Julliard 7695d69046 A couple of optimizations to avoid some server calls in WIN_FindWndPtr
and related functions.
2001-09-24 01:19:59 +00:00
Alexandre Julliard a09da0cbbd Added proper support for storing window parents in the server.
Added a few requests to query the window hierarchy.
2001-09-21 21:08:40 +00:00
Andriy Palamarchuk 914a1dca85 Implemented SPI_GETSHOWSOUNDS. 2001-09-21 21:02:02 +00:00
Brad Campbell 6b8cedfd62 Fixed mouse position processing for use with a touchscreen. 2001-09-19 22:41:22 +00:00
Joshua Thielen 26c4d6b3a4 Changed MDICreateChild to support CW_USEDEFAULT for 16-bit MDI
windows.
2001-09-19 22:33:01 +00:00
Alexandre Julliard 536957eb31 Fixed a couple of bugs in WIN_SetWindowLong caused by previous
change.
2001-09-19 22:31:15 +00:00
Andriy Palamarchuk 2bdbf30bb9 Added russian layout with phantom key. 2001-09-19 22:26:15 +00:00
Francois Gouget 7beb574b20 Remove macros that should not be there (cause conflicts in WineLib).
Add corresponding comments in spy.c.
2001-09-19 22:25:52 +00:00
Alexandre Julliard d23a82bc86 Made all 16<->32 HWND conversions use explicit functions instead of
implicit type casts.
Moved a lot of 16-bit functions to the new wnd16.c file.
Changed DIALOGINFO structure handling to support 32-bit handles.
2001-09-19 20:37:04 +00:00
Alexandre Julliard 629aab1768 Fixed a couple of HWND type mismatches. 2001-09-19 20:34:17 +00:00
Andriy Palamarchuk 4ee65164dc Fixed references to old documentation location. 2001-09-17 19:07:56 +00:00
Alexandre Julliard 021dd9908f Fixed HWND compare in NC_HandleSetCursor. 2001-09-14 21:29:19 +00:00
Alexandre Julliard f44bbb8d10 Make sure that HWND comparisons are always done with full 32-bit
handles.
2001-09-14 00:24:39 +00:00
Alexandre Julliard 37a4639ee1 Make sure that functions returning an HWND always return a full 32-bit
handle.
2001-09-12 17:19:13 +00:00
Alexandre Julliard 0d92fe20cd Make sure that returned window belongs to correct thread when checking
siblings of transparent windows in WIN_FindWinToRepaint.
2001-09-10 23:26:42 +00:00
Andy Rysin 872784fc2f Added Ukrainian keyboard layout. 2001-09-10 23:15:26 +00:00
Patrik Stridvall 3c9ab8f62d The message handler of WM_STYLECHANGING is supposed to be able to
modify the proposed style if it wishes.
2001-09-10 23:09:46 +00:00
Guy L. Albertelli db9b54925d Enhance SPY_GetMsgName to translate common control messages. 2001-09-07 18:38:57 +00:00
Alexandre Julliard 6bf2abfab1 Make window handles 32-bit before calling window procedure.
Don't clear window parent field when unlinking it.
2001-08-29 00:16:00 +00:00
Alexandre Julliard 1a66d226eb Added global management of user handles in the server.
Very preliminary support for shared window handles.
2001-08-28 18:44:52 +00:00
Guy L. Albertelli f96d4e69c0 Added WM_MOUSEHOVER and WM_MOUSELEAVE to formatting. 2001-08-28 18:38:25 +00:00
Alexandre Julliard 9d9dac0947 Added WIN_ListParents function and renamed WIN_BuildWinArray into
WIN_ListChildren. Made owner field in WND structure an HWND.
2001-08-24 19:28:21 +00:00
Alexandre Julliard 0801ffc5a3 Implemented GetAncestor and removed WIN_GetTopParent.
Removed a few more accesses to the WND structure.
2001-08-24 00:26:59 +00:00
Alexandre Julliard fa42aa81e4 Removed WIN_GetDesktop(). 2001-08-21 17:13:55 +00:00
Francois Gouget 588ff3743a Documentation updates (mainly thru vs. through). 2001-08-21 17:07:17 +00:00
Alexandre Julliard d44e495aa4 Fixed GetClassLong to return full 32 bits for all items.
Removed GCW_* definitions that don't exist in Win32.
2001-08-20 18:09:39 +00:00
Alexandre Julliard b3ec03092f Added proper support for 32-bit WM_NEXTMENU. 2001-08-18 18:10:04 +00:00
Alexandre Julliard 4ff32c8aef Removed a number of direct accesses to the window structure. 2001-08-18 18:08:26 +00:00
Alexandre Julliard 4d7041a6ce Explicitly check for CS_PARENTDC in WM_ERASEBKGND handling. 2001-08-18 16:10:52 +00:00
Alexandre Julliard 78f9fae706 Create GDI stock objects as normal objects instead of using magic
handle values.
2001-08-17 00:07:13 +00:00
Alexandre Julliard 6837b9c119 Moved user lock to user.c. Added USER_CheckNotLock function. 2001-08-16 18:14:22 +00:00
Alexandre Julliard 301df6b5cd Added names to standard critical sections (suggested by Andreas
Mohr).
2001-08-16 18:12:56 +00:00
Alexandre Julliard 20bc491dc7 Added mappings for a few messages.
Added unicode messages bit set to shortcut message mapping when
possible.
2001-08-13 20:33:21 +00:00
Alexandre Julliard 1293531ad9 Fixed some message names. 2001-08-13 20:30:31 +00:00
Alexandre Julliard de42428f23 Removed a number of direct accesses to the WND structure, replacing
them by API calls.
2001-08-10 22:51:42 +00:00
Alexandre Julliard cb25e2506f Replace SendMessage16 by SendMessageW where possible. 2001-08-08 23:28:42 +00:00
Alexandre Julliard e6533a6b71 Fixed DrawState16 callback support. 2001-08-08 23:26:32 +00:00
Alexandre Julliard d253c58b1b Rewrote most of SendMessage/PeekMessage.
Implemented inter-process messaging.
Moved most message routines to dlls/user, and split off 16-bit
routines to a separate file.
2001-08-07 19:19:08 +00:00
Alexandre Julliard bfb4a23aa9 Replaced MSG_InternalGetMessage calls by equivalent exported APIs. 2001-08-06 18:05:47 +00:00
Alexandre Julliard 4de0df77cf Fixed return value for WM_NOTIFY and WM_ACTIVATEAPP mappings. 2001-08-06 17:57:55 +00:00
Marco Bizzarri 5095779999 GetControlBrush16: avoid potentially releasing the same pointer
twice.
2001-08-03 18:17:14 +00:00
Guy L. Albertelli b70c22d4a9 - Add support to dump memory at lParam location on common control
messages.
- Fixed remaining Toolbar and Pager notify dump amounts.
- Separate memory dump code for easy use.
2001-08-03 18:08:38 +00:00
Alexandre Julliard 502d83b1d2 Fixed a few problems with DCX_* flags handling. 2001-07-31 00:14:06 +00:00
Alexandre Julliard 11dd274cb0 Erase only client area on WM_ERASEBKGND. 2001-07-31 00:05:50 +00:00
Alexandre Julliard 5905ba954a Implement EnumProps on top of EnumPropsEx to avoid function pointer
type mismatches.
2001-07-30 19:05:38 +00:00
Alexandre Julliard 8afe6628f8 Avoid using GetFastQueue16 from USER. 2001-07-26 20:12:22 +00:00
Alexandre Julliard 1922c72b8a Removed unnecessary inclusion of heap.h. 2001-07-25 00:43:29 +00:00
Alexandre Julliard 5f728cae70 Removed HEAP_strdupA. 2001-07-24 21:45:22 +00:00
Alexandre Julliard f899ef07a6 Removed some unnecessary includes. 2001-07-23 00:04:00 +00:00
Guy L. Albertelli 231162ef9c - If the class of the window is a known standard, then format the name
of the WM_USER+nnn messages if possible.
- Fix case where the classname returned was truncated and not printed
  at all.
- Issue errors if either the Notify or common control messasge lists
  are out of order.
- Prepare to dump out control block structures pointed to by lparam
  for messages.
2001-07-22 23:33:33 +00:00
Alexandre Julliard ef06b4a694 Got rid of HEAP_strdupW. 2001-07-22 23:08:10 +00:00
Bill Medland cbfbf2a582 Corrections to the Win95 and later frame drawing code. 2001-07-20 18:36:49 +00:00
Bill Medland 3f68bc911d Additional modifications to the window styles during window creation. 2001-07-20 18:36:25 +00:00
Guy L. Albertelli 361f980659 Trace rectangles returned by GetClientRect and GetWindowRect. 2001-07-20 17:58:41 +00:00
Guy L. Albertelli 2dea1d0b1e Display rectangle from WM_NCCALCSIZE on entry and exit. 2001-07-20 17:57:51 +00:00
Alexandre Julliard 37e9503ae8 Moved server.h to include/wine. 2001-07-19 00:39:09 +00:00
Alexandre Julliard fcef026169 Reject pointer messages in SendNotifyMessage[AW] and
SendMessageCallback[AW]. Fixed prototypes.
2001-07-18 20:07:01 +00:00
Marcus Meissner ff338b2733 Better LockWindowUpdate debug. 2001-07-14 00:48:14 +00:00
Patrik Stridvall e9782fa1fc Documentation fixes. 2001-07-12 22:33:51 +00:00
Bill Medland fb57c59245 Modify some system metrics to agree with Win95 and reflect the desktop
registry entries.
2001-07-11 20:18:11 +00:00
Patrik Stridvall 044855c6ec Documentation fixes. 2001-07-11 18:56:41 +00:00
Bill Medland 137420a0f0 Correct the location of the style patching for the edit control. 2001-07-11 17:26:33 +00:00
Guy L. Albertelli 655ff38dce Correct amount of info displayed for NM_NCHITTEST and all the LVN_*. 2001-07-08 20:30:43 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Dmitry Timoshkov 56a19923e8 Replace some 16-bit calls by their 32-bit equivalents. 2001-07-02 01:21:26 +00:00
Alexandre Julliard ed15fc7de1 Moved ForceWindowRaise to the USER driver and removed the WND driver. 2001-06-29 01:26:41 +00:00
Travis Michielsen b9bd3f81c0 Fixed handling of WM_MOUSEWHEEL messages in non-client space. 2001-06-29 01:17:55 +00:00
Patrik Stridvall 17fd4e3816 Documentation name fixes. 2001-06-28 18:04:41 +00:00
Alexandre Julliard 9f55ae6f62 - Remove cooked hardware messages when they are dropped (reported by
Gerard Patel).
- Convert all posted 32-bit messages to Unicode before storing them in
  the queue.
- Faster implementation of MSG_IsPointerMessage.
- Moved a couple of functions from queue.c to message.c.
2001-06-28 04:37:22 +00:00
Dmitry Timoshkov b91d2dfa5b Replace one more PROFILE_ function by RegQueryValueExA. 2001-06-26 19:36:23 +00:00
Dmitry Timoshkov 698ef15b19 Replace some 16-bit calls by their 32-bit equivalents. 2001-06-25 20:08:44 +00:00
Alexandre Julliard f9037de2ae Implemented SendInput(). 2001-06-25 20:01:03 +00:00
Alexandre Julliard f4b14106f7 Don't rely on X to expose windows covered by a sibling, do it
manually.
2001-06-22 03:42:27 +00:00
Ove Kaaven 624f14e776 Make GetCursorPos call XQueryPointer. 2001-06-21 00:44:09 +00:00
Alexandre Julliard ee8ab7af8a Avoid returning an unlocked window pointer from WINPOS_WindowFromPoint.
Removed a few no longer used routines.
2001-06-20 23:16:34 +00:00
Alexandre Julliard 4b0343dc5f Moved queue paint count to the server. Removed a few no longer used
routines.
2001-06-20 22:55:31 +00:00
Alexandre Julliard 838d65aebe Moved hardware message queue handling to the server. 2001-06-19 19:16:41 +00:00
Dmitry Timoshkov de70d2b2c7 Replace PROFILE_ functions by RegQueryValueExA in x11drv. 2001-06-19 03:32:44 +00:00
Dmitry Timoshkov a57befe72d Replace more PROFILE_ functions by RegQueryValueExA. 2001-06-14 19:24:02 +00:00
Alexandre Julliard 247e18fb14 Force invalidating of siblings children on expose event. 2001-06-13 19:43:53 +00:00
Alexandre Julliard 0b16474c2a Removed WIN_NATIVE flag. 2001-06-08 19:00:56 +00:00
Alexandre Julliard 0ca9465f58 Removed unneeded inclusion of queue.h. 2001-06-07 22:29:33 +00:00
Gerard Patel ad363030a1 Use a flag to test if create structure is unicode. 2001-06-06 21:26:50 +00:00
Bobby Bingham db4aae2222 Stub implementation of AnimateWindow(). 2001-06-06 20:20:09 +00:00
Alexandre Julliard dc4fe7735b Create an X window for every window, including children.
Fixed non-client rectangle calculations in managed mode.
Added support for icon window in managed mode.
2001-06-04 21:55:17 +00:00
Dmitry Timoshkov d1e648f0d2 Remove optimization in NC_HandleNCActivate. 2001-06-04 02:49:22 +00:00
Guy L. Albertelli 8a05b831de Display extra data for WM_NOTIFY that use NMCOMBOEX{A|W}. 2001-06-04 02:48:59 +00:00
Andreas Mohr e665eba1b7 Get rid of GetCurrentTime16(). 2001-05-24 18:43:55 +00:00
Alexandre Julliard 5db8d2f48b Make WIN_WindowFromPoint take a POINT instead of a POINT16.
Small bug fix in scope window handling.
Always check for message when QS_SENDMESSAGE is set.
2001-05-22 19:55:20 +00:00
Eric Pouech 7a9ddd4ccb Added basic support for SPI_GETSCREENREADER. 2001-05-21 18:31:49 +00:00
Gerard Patel 22a04e1e5a Fixed SetTimer for hwnd == 0. 2001-05-19 17:35:43 +00:00
Alexandre Julliard 51ab43bd13 Moved the major part of message queue and window timer handling into
the server.
Implemented MsgWaitForMultipleObjectsEx.
2001-05-18 22:51:56 +00:00
Francois Gouget cd8d181a0b Spelling typos. 2001-05-18 21:01:38 +00:00
Jukka Heinonen 7263720dfb Keyboard events did not update AsyncKeyStateTable, now they do. 2001-05-18 20:56:59 +00:00
Bill Medland 31eaee4539 Only measure child rectangles of visible children when deciding about
scroll bars.
2001-05-16 20:06:20 +00:00
Alexandre Julliard 4323004bf1 Create an X connection for each thread, and process X events in the
thread that created the corresponding X window.
Spawn a separate thread to run the desktop message loop in desktop
mode.
2001-05-16 19:52:29 +00:00
Marcus Meissner 3f1ed52d8b Implemented 64bit file size handling.
Removed several unneeded sys/stat.h includes.
2001-05-14 20:09:37 +00:00
Alexandre Julliard 5920737f80 Clear owner of system message queue to avoid freeing it when the first
task exits.
2001-05-14 20:01:38 +00:00
Alexandre Julliard e60ccd11d3 Create a new window for the top popup menu on every new menu tracking,
so that the window belongs to the right thread.
2001-05-11 20:05:42 +00:00
Alexandre Julliard c559735bf8 Renamed display to gdi_display where it is used for GDI operations, to
allow supporting multiple X connections.
2001-05-11 00:17:47 +00:00
Alexandre Julliard b19c57ca71 Fixed reparenting to desktop (found by Gerard Patel). 2001-05-10 21:06:56 +00:00
Alexandre Julliard e3fe9f24ce Moved ScrollWindowEx implementation to the graphics driver. 2001-05-10 03:23:59 +00:00
Alexandre Julliard f2d78536dc Removed XShmCompletion event support (no longer used). 2001-05-09 19:48:32 +00:00
Alexandre Julliard 32ee168200 Use 32-bit hook functions where possible. Cleaned up a couple of
16-bit type uses.
2001-05-09 17:33:00 +00:00
Francois Gouget e76218dd61 Add '\n' at the end of traces. 2001-05-09 17:31:31 +00:00
Alexandre Julliard 3abeae8f4a Moved window move/resize syscommand handling to the graphics driver. 2001-05-09 17:21:04 +00:00
Francois Gouget e17d1a3649 Print the tid in the first column when +tid is specified. 2001-05-08 00:13:38 +00:00
Alexandre Julliard c6a835a63e Remove Get/SetBeepActive from USER driver and manage it locally inside
SystemParametersInfo.
2001-05-05 00:49:15 +00:00
Alexandre Julliard ee44d885a4 Make sure we recompute the visible region in DC hook. 2001-05-03 18:35:33 +00:00
Marcus Meissner eb0ab7681c Made checks in _get_common_ancestor a bit stricter to avoid XQueryTree
XErrors.
2001-04-30 18:16:51 +00:00
Patrik Stridvall 15a3b74356 Documentation name fixes. 2001-04-27 18:03:51 +00:00
Patrik Stridvall b3086a7593 Fixed some issues found by winapi_check. 2001-04-25 19:54:21 +00:00
Alexandre Julliard 46401a2a1c Avoid crash on deleted windows. 2001-04-25 19:53:28 +00:00
Alexandre Julliard 9ae0fe54b0 Moved most of the implementation of SetWindowPos and SetDrawable into
the user driver, and the corresponding code into the dlls/x11drv
directory. Moved a few functions out of the window driver into the
user driver. Plus a few related cleanups.
2001-04-24 23:28:52 +00:00
Andreas Mohr e8db6cbcb2 - make sure that we really use the correct amount of parameters each
time for the callback function
- always pass strings instead of atoms to Win32 enum proc
- fix trace crash due to string format displaying of atom (LOWORD
  only) handle
2001-04-20 18:35:25 +00:00
Jukka Heinonen ac9a200515 GetAsyncKeyState now clears "has been pressed" information of only the
requested key instead of all keys.
2001-04-18 18:05:57 +00:00
Alexandre Julliard d436125345 No need to preallocate DCEs since they are allocated on demand
anyway.
2001-04-18 17:42:36 +00:00
Gerard Patel 7a06d45fca Do not send WM_MOUSEACTIVATE for children of desktop. 2001-04-17 17:57:20 +00:00
Andreas Mohr 577e2298d3 Preliminary support for MB_*MODAL styles. 2001-04-13 22:24:18 +00:00