Commit Graph

1368 Commits

Author SHA1 Message Date
Alexandre Julliard
5797fbb87e Added WIN_GetRectangles function.
Fixed WindowFromPoint to work accross processes.
2001-12-06 22:33:58 +00:00
Andriy Palamarchuk
2489dc901d Implemented processing for actions: SPI_GET/SETGRIDGRANULARITY,
SPI_GET/SETICONTITLEWRAP, SPI_GET/SETMENUDROPALIGNMENT,
SPI_GET/SETDOUBLECLKWIDTH, SPI_GET/SETDOUBLECLKHEIGHT,
SPI_GET/SETDOUBLECLICKTIME.
2001-12-06 22:28:43 +00:00
Guy L. Albertelli
cb013cb5e8 Change the message trace indentation to be consistent by thread. 2001-12-06 22:24:14 +00:00
Dave Hawkes
5446abe87a DIALOG_CreateIndirect can incorrectly kill the current input focus. 2001-12-06 22:21:36 +00:00
Alexandre Julliard
afd75a1adc Removed calls to HEAP_GetSegptr. 2001-12-05 22:23:02 +00:00
Gerard Patel
e9b4fd1851 Remove some possible interlocking problems with peb lock. 2001-11-30 23:13:22 +00:00
Alexandre Julliard
9caa71eef4 Redesign of the server communication protocol to allow arbitrary sized
data to be exchanged.
Split request and reply structures to make backwards compatibility
easier.
Moved many console functions to dlls/kernel, added code page support,
changed a few requests to behave properly with the new protocol.
2001-11-30 18:46:42 +00:00
Andriy Palamarchuk
096bab67c0 Implemented processing for actions SPI_GET/SETSCREENSAVETIMEOUT,
SPI_GET/SETSCREENSAVEACTIVE, SPI_GET/SETSCREENSAVERRUNNING.
2001-11-20 20:27:26 +00:00
Patrik Stridvall
ae1c12c4cd Documentation fixes. 2001-11-20 18:55:39 +00:00
Bill Medland
0ca07c972d It is legal to call UnregisterClass with an hInstance of zero. 2001-11-20 18:53:16 +00:00
Dmitry Timoshkov
80eff97527 Convert message spy to unicode. 2001-11-20 18:50:56 +00:00
Dave Hawkes
e58557c634 Fix lock up in GetKeyNameText due to an increment wrap when KeyCode is
a char type and max_keycode is 255.
2001-11-20 18:49:38 +00:00
Gerard Patel
e717b1bf6f Fix exchanged lines in WIN_GetWindowLong. 2001-11-19 02:07:11 +00:00
Alexandre Julliard
44cd974fff Truncate the window text if it is too large for the request buffer. 2001-11-16 18:14:17 +00:00
Joshua Thielen
d9ed57ac99 Local classes registered with USER instance handle now are now found
in CLASS_FindClassByAtom.
2001-11-16 18:11:43 +00:00
Alexandre Julliard
47f9821817 Moved WIN_FindWinToRepaint functionality to the server. 2001-11-14 21:28:36 +00:00
Alexandre Julliard
805bdc53e8 Store the window caption text in the server.
Maintain a paint count separately for each window.
2001-11-13 22:23:48 +00:00
Andriy Palamarchuk
0bf1c2460d Implemented processing for SPI_GET/SETMOUSE, SPI_GET/SETKEYBOARDDELAY,
SPI_GET/SETKEYBOARDSPEED actions. Implemented use of mouse
acceleration/threshold for relative mouse movements.
2001-11-13 21:30:59 +00:00
Andriy Palamarchuk
67fab90d5b Implemented SPI_ICONHORIZONTALSPACING, SPI_ICONVERTICALSPACING system
parameters processing.
2001-11-09 20:02:41 +00:00
Dmitry Timoshkov
5d3e1f70bd Add dumping of window styles at the window creation time. 2001-11-07 21:52:24 +00:00
Andriy Palamarchuk
c9228e1076 Created new infrastructure for SystemParametersInfo function. Used it
to implement processing for SPI_GET/SETBEEP, SPI_GET/SETBORDER,
SPI_GET/SETSHOWSOUNDS system parameters.
2001-11-07 20:24:29 +00:00
Alexandre Julliard
03e07b56e3 Window activation cleanups. 2001-11-06 22:28:18 +00:00
Francois Gouget
070e749cfb Don't prefix %p with 0x.
Various English fixes.
2001-11-06 21:01:32 +00:00
François Gouget
1425941e29 Fix the #include order for config.h.
Add #include "config.h" directives where needed.
2001-11-06 20:57:11 +00:00
Eric Pouech
c5bc3ebc5d For drawing a caret, internally replaced the brush by a bitmap (this
allows caret of size > 8x8),
2001-11-06 00:52:12 +00:00
Guy Albertelli
8b0841ad38 Add support for Wine internal messages. 2001-11-05 23:54:40 +00:00
Joshua Thielen
40a35aa2fb For global classes, GetClassInfo now returns a handle to USER. 2001-11-05 23:49:54 +00:00
Joshua Thielen
e0f0a2ebbf Switch focus to activated window even if no window previously had the
focus.
2001-10-24 02:43:24 +00:00
Alexandre Julliard
96ebfa983b Cosmetic fixes. 2001-10-23 20:35:44 +00:00
Alexandre Julliard
10a5ded457 Fixed window handle check in GetDCEx. 2001-10-23 00:29:25 +00:00
Alexandre Julliard
55557319a7 A couple of optimizations. 2001-10-23 00:26:10 +00:00
Alexandre Julliard
ddc3317b7a Store in the server all the window information accessible with
Get/SetWindowLong.
2001-10-22 19:08:33 +00:00
Andreas Mohr
e15badb478 Cosmetics. 2001-10-21 15:18:15 +00:00
Alexandre Julliard
32fb580515 Changed X11 mouse driver to use SendInput, and removed WINE_MOUSEEVENT
hack. Moved mouse.c to dlls/x11drv.
Added KeymapNotify event handler, and fixed handling with multiple
alt/shift/control keys.
Removed dinput functions from USER driver.
2001-10-18 21:38:59 +00:00
Mike McCormack
cb97a3bf8d Use WIN_ReleasePtr not WIN_ReleaseWndPtr with WIN_GetPtr. 2001-10-18 21:33:03 +00:00
Andriy Palamarchuk
b6afa6a970 Fixed mouse_event bug - cursor was moved before new position was
calculated.
2001-10-17 19:39:55 +00:00
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