Commit Graph

603 Commits

Author SHA1 Message Date
Alexandre Julliard
2e12d33dfd Removed no longer needed uses of LDPATH. 2003-04-21 23:54:05 +00:00
Alexandre Julliard
fc09423d3d Allow overriding CFLAGS when running configure. Other small cleanups. 2003-04-14 21:46:41 +00:00
Alexandre Julliard
74a66ff99d Avoid warning. 2003-04-08 00:56:32 +00:00
Vitaliy Margolen
c0a5823fb0 Remove bogus initialization in SetKeyboardState. 2003-04-03 18:03:22 +00:00
Andreas Mohr
114b667f41 Some spelling and formatting fixes. 2003-04-02 01:23:43 +00:00
Alexandre Julliard
5577637034 Added support for specifying an stdcall dll entry point. 2003-04-01 00:08:32 +00:00
Alexandre Julliard
a65a8a6a8e Moved 16-bit dialog routines to a separate dialog16.c file.
Fixed window creation to create ASCII windows when called through one
of the ASCII dialog functions.
2003-03-28 19:40:37 +00:00
Dimitrie O. Paun
8794935e12 Remove unused options -a and -C.
Collapse the -w into -O, for symmetry with -J.
Update the man page to the latest options.
2003-03-27 18:37:59 +00:00
Alexandre Julliard
e048adab83 List 16-bit spec files explicitly to avoid problems with some versions
of make.
2003-03-23 20:00:02 +00:00
Alexandre Julliard
9e4fc4c9b6 Converted winebuild option parsing to use getopt_long. Added a number
of long aliases for the existing short options.
2003-03-23 01:12:30 +00:00
Alexandre Julliard
114a31a2a8 Take advantage of new winebuild syntax to remove redundant function
names in spec files.
2003-03-20 03:53:12 +00:00
Alexandre Julliard
b1095da50c Fixed bug that could cause SendMessage to return too early in certain
cases.
2003-03-19 00:12:17 +00:00
Vitaliy Margolen
aba2579c3c Fixed typo in PrivateExtractIconExW function. 2003-03-10 19:04:39 +00:00
Alexandre Julliard
7e92c9af7b Replaced most uses of the auto-generated glue code by explicit calls
to WOWCallback16Ex.
2003-02-27 21:09:45 +00:00
Alexandre Julliard
ac13d2f47e Print thread ids in traces with only 4 digits now that they are small
integers.
2003-02-18 23:29:47 +00:00
Bill Medland
62a80b76f2 Better handling of bad data in TabbedTextOut/TabbedTextExtent
Checked with:
a) Null tabstop array with non-zero number of entries
b) Negative number of entries (MSDN is wrong; it is not an error)
c) Single tabwidth of negative size
d) Single specified tabwidth of zero size
2003-01-31 03:23:18 +00:00
Matthew Davison
60009b9a56 Removed calls to HEAP_strdupAtoW. 2003-01-23 23:07:38 +00:00
Marcus Meissner
4a46348a9c Changed MONITORINFOEXA,W definition to the one in MSDN which does not
cause gcc 3.3 warnings.
2003-01-21 00:29:31 +00:00
Francois Gouget
acc5e9bba1 Check for sysparams keys in either the Win9x or NT locations. This
makes the test succeed on Win9x and NT4 platforms.
Add a 'strict' mode which specifically makes sure that the NT location
is set. In strict mode the test succeeds on Windows XP and Wine.
2003-01-20 23:30:22 +00:00
Francois Gouget
a4c90cff02 Don't use old_spacing-1 if old_spacing already has the minimum value. 2003-01-16 00:19:24 +00:00
Francois Gouget
6fed1e3738 Update the registry keys of SPI_ICONHORIZONTALSPACING,
SPI_ICONVERTICALSPACING and SPI_SETICONTITLEWRAP to match XP.
The SPI_SETBORDER test leaves an incorect border setting and is just
too erratic: comment it out for now.
Modified the SPI_ICONHORIZONTALSPACING, SPI_ICONVERTICALSPACING and
SPI_SETWORKAREA to not cause the icons to be reorganized.
Don't test out-of-bound values for SPI_SETKEYBOARDSPEED as behavior
differs accross Windows platforms.
On Win9x the maximum value for SPI_SETSCREENSAVETIMEOUT is 32767.
The registry keys and values stored in them for
SPI_ICONHORIZONTALSPACING and SPI_ICONVERTICALSPACING depend on the
Windows platform: ignore them.
No Windows platform seems to SPI_SETFASTTASKSWITCH: no longer test it.
The lParam of WM_SETTINGCHANGE is quite useless (even the MSDN says
so!) and varies accross Windows platforms. Ignore it.
Always check the SystemParametersInfoA return code as it fails in very
strange ways on some platforms. Skip unsupported settings.
Skip Unicode tests on platforms that don't support it.
2003-01-13 20:40:22 +00:00
Robert Shearman
d0019a6040 AlignRects stub. 2003-01-13 20:36:39 +00:00
Dimitrie O. Paun
4a883a55f6 Collapse the -hHrs options into the -O option.
Generate .res files by default.
2003-01-09 00:03:53 +00:00
Dan Kegel
0fd521fee3 Change RECT to use LONG to match win32 standard headers and fix format
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Alexandre Julliard
8ba666f3a7 Store the keyboard state in the thread input structure on the server
side.
2003-01-08 19:56:31 +00:00
Alexandre Julliard
242e395bbc Store the hardware messages in the thread input structure, not in the
thread queue. Get rid of the cooked messages queue.
2003-01-08 00:27:58 +00:00
Dimitrie O. Paun
297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Francois Gouget
ecf2c570d2 Fix signed/unsigned compilation warnings. 2003-01-05 01:02:57 +00:00
Francois Gouget
f947a58006 Win9x does not support {Get,Set}WindowLongW. Use the Ansi version
instead since it won't impact _these_ tests anyway.
2003-01-03 19:09:23 +00:00
Dmitry Timoshkov
5a23a0012f Added ctl3d, ctl3dv2 and ctl3d32 API implementations. 2003-01-02 19:34:14 +00:00
Alexandre Julliard
0ca46dc338 LPCONVCONTEXT should be PCONVCONTEXT (spotted by Dimitrie O. Paun).
Same for LPHSZPAIR and LPCONVINFO.
2002-12-19 01:18:49 +00:00
Francois Gouget
50c0cdef7e wsprintfW is not supported on Win9x platforms.
wsprintf{A,W}Test should be void.
Improve error reporting.
Remove unnecessary #includes.
2002-12-18 20:51:14 +00:00
Dimitrie O. Paun
737d4be892 Move excpt.h out of include/msvcrt/ as it does not conflict with any
standard Unix header.
2002-12-12 23:34:01 +00:00
Rolf Kalbermatter
117d5326fd Fix a possible memory leak when extracting from an ICO file.
Fix some signed/unsigned warnings showing up in MSVC with default
warning level.
Fix possible problem with short PIMAGE_NT_HEADERS.
2002-12-12 22:59:50 +00:00
Alexandre Julliard
dbf8b78acd Added .spec.def files. 2002-12-12 22:04:04 +00:00
Francois Gouget
21d92f8c8a Skip the Unicode tests (effectively all tests currently) on Win9x. 2002-12-12 02:15:28 +00:00
Alexandre Julliard
2a93f8505c Pass the -J option to wrc to avoid including installed headers. 2002-12-11 01:34:51 +00:00
Rolf Kalbermatter
2dcb751aa7 - Modify ICO_ExtractIconExW to:
return more compliant values for usage in PrivateExtractIcons and PrivateExtractIconEx
    accept and fill in the icon identifier array correctly if provided
    allow to retrieve both small and large icons together.
- Simplify PrivateExtraxtIcons
- Modify PrivateExtractIconExW to:
   use compatible signature to ExtractIconEx in shell32 which it really is directly
     as tested on W2K by calling both functions with the same parameters
   directly call internal extraction function
   fix error when requesting 1 icon for both sizes
2002-12-10 19:09:45 +00:00
Alexandre Julliard
18d029722f Removed input.h, queue.h, spy.h and sysmetrics.h and moved their
contents to user.h.
Moved message.h and winproc.h to dlls/user.
2002-12-03 23:34:52 +00:00
Rolf Kalbermatter
a53a988171 Modify PrivateExtractIcons{AW} to match better current MDSN
documentation.
2002-12-03 21:35:27 +00:00
Francois Gouget
d2667a4ce3 Removed unnecessary HANDLE typecasts. 2002-12-02 18:10:57 +00:00
Bill Medland
6c5e2b6703 Correct UnhookWindowsHook: clear the handle so that the server doesn't
try to use it.
2002-11-24 22:15:01 +00:00
Alexandre Julliard
aff7ddaeeb Made user compile with -DSTRICT. 2002-11-22 21:22:14 +00:00
Alexandre Julliard
a8a422f70d Fixed more -DSTRICT issues. 2002-11-22 20:43:01 +00:00
Alexandre Julliard
45078fb008 Properly split the 16-bit versions of GrayString and TabbedTextOut. 2002-11-22 20:41:17 +00:00
Alexandre Julliard
7ef66af34a Moved some more 16-bit functions to user16.c.
A few fixes for -DSTRICT.
2002-11-22 04:47:10 +00:00
Steve Lustbader
24677dd4d9 Have PostMessage call PostThreadMessage when hwnd is NULL. 2002-11-21 23:44:58 +00:00
Alexandre Julliard
14e68ba7fe Added support for system-wide hooks. 2002-11-20 19:54:32 +00:00
Alexandre Julliard
a9135e8333 Removed support for 'rsrc' spec file statement. 2002-11-18 23:16:09 +00:00
Patrik Stridvall
e1e063d788 Made tests compile on Windows. 2002-11-15 00:02:51 +00:00
Alexandre Julliard
3f61afbbc8 Added ReleaseDC function to the USER driver interface. 2002-11-14 22:30:20 +00:00
Patrik Stridvall
9398d9c129 Updated the generated tests. 2002-11-12 01:13:10 +00:00
Eric Pouech
b6aad50245 Implemented a Wine-only scheme for interprocess WinHelp message
passing.
2002-11-11 22:20:47 +00:00
Patrik Stridvall
74476416b0 Updated the generated tests. 2002-11-06 21:59:15 +00:00
Alexandre Julliard
910851a20e Added winebuild -e option to specify the entry point and removed the
'init' spec file directive.
Winebuild long options now use a more standard double dash format
(older format still supported for backwards compatibility).
2002-11-06 20:02:59 +00:00
Zoly Nagy
9560ece6c4 Added/upgraded Hungarian resources. 2002-11-04 22:45:22 +00:00
Patrik Stridvall
df7ffb8017 Updated the generated tests. 2002-11-04 22:40:40 +00:00
Alexandre Julliard
cf2e57d0c7 Split out some more 16-bit code. 2002-10-31 22:06:53 +00:00
Dmitry Timoshkov
601a3abec1 Fix some types and function prototypes according to Platform SDK
definitions.
2002-10-31 01:04:39 +00:00
Michael Stefaniuc
ec5612ee1d Some more fixes for compiling the user dll with -DSTRICT. 2002-10-30 23:45:38 +00:00
Alexandre Julliard
0b1a367b78 Removed a couple of no longer used queue functions. 2002-10-29 21:32:37 +00:00
Patrik Stridvall
c72255c715 Fixed some issues found by winapi_check. 2002-10-29 21:31:26 +00:00
Patrik Stridvall
fc832f0fcf Fixed tests to compile with MS C on Windows. 2002-10-29 21:24:35 +00:00
Patrik Stridvall
7d226139e9 Updated the generated tests. 2002-10-29 21:24:09 +00:00
Alexandre Julliard
0286135de3 Rewrote hook support to store the hook chain in the server.
Split off 16-bit hook functions and re-implemented them on top of the
32-bit ones; system-wide 16-bit hooks are no longer supported at this
point.
2002-10-29 00:41:42 +00:00
Michael Stefaniuc
95591a6e90 Some fixes for the compilation of the user dll with -DSTRICT. 2002-10-28 20:11:40 +00:00
Alexandre Julliard
48f860cbd9 Moved a few remaining 16-bit window functions to wnd16.c and moved it
to the C_SRCS16 sources.
2002-10-28 19:04:39 +00:00
Alexandre Julliard
0c32905ccc Install the shell hook as a 32-bit hook. 2002-10-25 19:26:46 +00:00
Vincent Béron
d1d586e2a9 Bring some French resources in sync with English ones. 2002-10-23 23:34:32 +00:00
Alexandre Julliard
a7062be9ba Moved network.c to 16-bit sources. 2002-10-23 20:22:53 +00:00
Alexandre Julliard
f871f2d528 Store thread id instead of queue handle in timer structure. 2002-10-23 18:56:34 +00:00
Alexandre Julliard
d8bbcb2f23 Implemented GetWindowTask16 on top of GetWindowThreadProcessId.
Removed no longer used hmemTaskQ field in WND structure.
2002-10-23 18:56:02 +00:00
Patrik Stridvall
ab974c310c Updated the generated tests. 2002-10-23 18:45:15 +00:00
Dmitry Timoshkov
9abcad524c Restore setting of caption "Error". 2002-10-22 00:42:53 +00:00
Michael Stefaniuc
61d92562b9 Silence some warnings due to casts between pointer and integers of
different size.
2002-10-19 00:52:55 +00:00
Michael Stefaniuc
bd6590a86b Fix warnings when converting between an ATOM and a HSZ. 2002-10-19 00:51:00 +00:00
Alexandre Julliard
23bb3715f7 Added support for building certain dlls with -DSTRICT.
Added -DWINE_NO_STRICT flag to dlls that don't support STRICT yet.
2002-10-18 23:46:28 +00:00
Alexandre Julliard
0ccb9feadc Store the original GDI palette functions in pfnSelectPalette and
pfnRealizePalette so that USER doesn't have to import them.
2002-10-18 04:05:49 +00:00
Alexandre Julliard
011605edf3 Use the WOWHandle functions to convert between task handle and thread
id. Stop exporting TASK_GetPtr and THREAD_IdToTEB from kernel.
2002-10-17 18:26:53 +00:00
Alexandre Julliard
0ca051e555 Fixed wownt32.h to make it usable from inside Wine, and use it to
avoid some duplication of the handle conversion macros.
2002-10-17 16:43:42 +00:00
Alexandre Julliard
11e3523949 Rewrote caret implementation to store the information in the server. 2002-10-17 01:24:33 +00:00
Michael Stefaniuc
9444dd2541 Compile fix when all handles are converted to a void*. 2002-10-15 21:00:05 +00:00
Patrik Stridvall
ebf582cd48 Updated the generated tests. 2002-10-15 01:53:45 +00:00
Alexandre Julliard
5030bda77c Reimplemented Get/SetActiveWindow, Get/SetFocus and
Get/SetForegroundWindow by storing the information in the
server. Implemented correct inter-process window activation.
2002-10-11 23:41:06 +00:00
Alexandre Julliard
ab5063b217 Added server-side infrastructure for the thread input structure.
Reimplemented AttachThreadInput() and added GetGUIThreadInfo().
2002-10-11 18:50:15 +00:00
Michael Stefaniuc
bc54d78532 - change the internal functions in windows/cursoricon.c to use 32bit
handles
- move the implementation of ExtractAssociatedIcon16 to
  ExtractAssociatedIconA
- convert HICON to a void*
- fixed some handle conversions that happened to be in the way while
  doing the above
2002-10-10 21:22:09 +00:00
Steve Lustbader
c15b0a2515 Provide a stub for GetComboBoxInfo. 2002-10-10 21:17:12 +00:00
Alexandre Julliard
c2f3a6634c Avoid infinite SendMessage recursion, just like Windows does. 2002-10-09 20:36:15 +00:00
Michael Stefaniuc
8b24293b4e Fix handle conversions. 2002-10-09 18:12:47 +00:00
Eric Pouech
60a20eaf32 Fixed some NULL pointer handling errors. 2002-10-07 18:21:03 +00:00
Alexandre Julliard
a5e995ae12 Fixed printf formats for -DSTRICT handles. 2002-10-04 00:56:05 +00:00
Alexandre Julliard
613ead7f0f Fixed some handle conversions in prevision of void* handles. 2002-10-04 00:27:10 +00:00
Alexandre Julliard
54f228733a Added process_id_t and thread_it_t types to the server interface
instead of using void*, and removed a number of type casts.
2002-10-03 19:54:57 +00:00
Alexandre Julliard
a593d3d95e Build tests with -DSTRICT. 2002-10-03 19:42:45 +00:00
Patrik Stridvall
928ecb4891 Added some more autogenerated tests. 2002-10-02 19:58:27 +00:00
Alexandre Julliard
9842b19931 Make sure things still work if 16-bit dlls cannot be loaded. 2002-10-02 02:36:20 +00:00
Alexandre Julliard
c728efc3c9 Added --disable-win16 configure option. 2002-10-02 02:34:09 +00:00
Alexandre Julliard
b989620b46 Use correct 16-bit resources to avoid warnings. 2002-10-01 18:14:04 +00:00
Michael Stefaniuc
2d0acacb45 Moved some 16-bit functions from windows/cursoricon.c to
dlls/user/user16.c.
2002-09-27 22:04:54 +00:00
Alexandre Julliard
7dafa61700 Fixed a number of bugs in the handling of window parent and owner and
added a regression test (based on the work of Bill Medland).
2002-09-25 00:21:56 +00:00
Patrik Stridvall
b5bb32c09a Fixed some issues found by winapi_check. 2002-09-24 18:29:39 +00:00
Dimitrie O. Paun
9dd1279a82 - Remove export of DRAG_QueryUpdate from USER.
- Get rid of associated 16 bit code from x11drv.
- Simplifications, cleanups, etc.
2002-09-23 20:56:37 +00:00
Dimitrie O. Paun
9ffa91ef12 Have USER deal with the caret when scrolling a window. 2002-09-20 19:35:54 +00:00
Francois Gouget
71f8fc27e5 IDI_APPLICATIONW does not exist on Windows. Use IDI_APPLICATION
instead and cast to LPWSTR.
Fixed type cast warnings.
2002-09-17 00:05:34 +00:00
Alexandre Julliard
16a303b376 Replaced 'heap' .spec statement by a command line option.
Updated winebuild manpage.
2002-09-12 22:51:20 +00:00
Dimitrie O. Paun
f476a0fbdc Make all spec files grep-able. 2002-09-12 00:52:39 +00:00
Alexandre Julliard
cea2e825b2 Link all remaining dlls except kernel32 as separated dlls, by
temporarily exporting the few functions that are not properly
separated yet.
2002-09-06 18:51:31 +00:00
Michael Stefaniuc
2247af320d - Rename WIN_Handle16 to HWDN_16 and make it a macro.
- Prepare user.dll for the change of HWND to a void*.
2002-09-04 19:37:01 +00:00
Per Nystrom
e765bc1a41 Implemented GetCursorInfo. 2002-08-28 23:38:10 +00:00
Alexandre Julliard
aface53759 Fixed a number of dll separation issues. 2002-08-28 22:35:23 +00:00
Michael Stefaniuc
4a75c5c6ea Convert HACCEL to a void*. 2002-08-28 00:39:39 +00:00
Patrik Stridvall
d8f50798b6 Implement wrapper calls for the 16 bit GlobalAtom* functions. 2002-08-28 00:38:42 +00:00
Ulrich Czekalla
651c5988aa - Add a max wait time for selection notifies.
- Add new function to the x11drv to get clipboard format names of
  externally registered formats.
- When a clipboard format is registered we should pass the global atom
  value as the format identifier.
- Clipboard format name should be treated as case insensitive.
- Serialize metafile bits when requested via a clipboard selection.
- Return format ids for native formats when mapping from properties.
2002-08-27 19:19:49 +00:00
Patrik Stridvall
d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Aric Stewart
bbea20d675 Added BroadcastSystemMessageA. 2002-08-16 20:01:28 +00:00
Alexandre Julliard
f22ba0560d Added support for #pragma code_page.
Fixed a few bugs in language handling.
Added error message when Ansi->Unicode conversion in the current
codepage loses information.
2002-08-15 21:57:36 +00:00
Alexandre Julliard
41a22f2c74 Add QM_SMRESULT in wake bits too in case the changed bits get cleared
while processing a sent message.
2002-08-13 18:17:19 +00:00
Alexandre Julliard
edeee89c3e Create separate makefiles for tests for more flexibility. 2002-08-09 01:22:40 +00:00
Alexandre Julliard
526531eb6c Create at most one glue file for a single dll.
Avoid the intermediate .tmp.o file when building programs.
2002-08-01 18:36:58 +00:00
Alexandre Julliard
267ca68253 Fixed HANDLE<->HFILE conversions, since they will be different types
when handles are void*.
2002-07-31 17:20:00 +00:00
Alexandre Julliard
13f2a17eb2 Convert HTASK to void* (based on a patch by Michael Stefaniuc). 2002-07-28 23:48:27 +00:00
Jon Griffiths
273f86fc74 Stubs/docs for NotifyWinEvent,SetWinEventHook,IsWinEventHookInstalled,
UnhookWinEvent.
2002-07-10 23:20:49 +00:00
Alexandre Julliard
f5e5fcac97 Tried to make IsDialogMessageW more compatible. Changed
IsDialogMessage16/A to call IsDialogMessageW.
2002-07-05 00:23:02 +00:00
Gregg Mattinson
2e38a17021 Void functions can't return a value, even if it is the return value
from another void function.
2002-07-03 01:20:07 +00:00
Philipp Wollermann
a32dc91711 Implemented SPI_GETDESKWALLPAPER action, fixed SPI_SETDESKWALLPAPER. 2002-06-28 23:27:37 +00:00
Alexandre Julliard
75de8fe16c Added printf format checking to the ok() and trace() macros, and fixed
the resulting warnings.
2002-06-22 00:08:10 +00:00
Alexandre Julliard
77afd6c47e Made some more spec file entries optional or unnecessary.
Fixed a few DLLName/DLLFileName mismatches.
2002-06-21 19:15:45 +00:00
Alexandre Julliard
1c40426e95 Removed install_libdir targets and centralized the symlinks creation
in the main dll makefile.
2002-06-14 02:09:08 +00:00
Alexandre Julliard
a5755b10a7 Authors: Mike McCormack <mikem@codeweavers.com>, Jeremy White <jwhite@codeweavers.com>
Fixed memory leaks.
2002-06-13 23:54:55 +00:00
Paul Rupe
2e2988dec6 Faster performance in TEXT_Ellipsify for long strings. 2002-06-10 22:47:58 +00:00
Won-kyu Park
ff4f41d81e Added Korean resources. 2002-06-10 02:32:31 +00:00
Alexandre Julliard
df6fa30288 Duplicated wsprintf implementation in shlwapi. 2002-06-04 23:11:09 +00:00
Alexandre Julliard
7cae558bdc Removed some more trailing whitespace. 2002-06-01 02:55:48 +00:00
Vincent Béron
9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Francois Gouget
4c314000b9 Make the tests compile with Visual C++. 2002-05-23 02:40:07 +00:00
Alexandre Julliard
cc2ee7636d Renamed Winelib apps to .exe.so to follow the dll naming convention. 2002-05-21 19:42:29 +00:00
Eric Pouech
9259cfa855 Added 16/32 DDE message conversion.
Finished the 16 bit implementation of DDEML.
2002-05-21 18:03:15 +00:00
Alexandre Julliard
4344c368cb Got rid of GetSysColorPen. 2002-05-20 18:15:28 +00:00
Andreas Mohr
11b35c0b4c Better error messages. 2002-05-20 18:11:08 +00:00
Andreas Mohr
012478c9d3 Spelling stuff. 2002-05-20 18:01:44 +00:00
Francois Gouget
ea668d1be1 Make the 'error' string of a couple of checks consistent with the
others.
2002-05-19 22:22:06 +00:00
Alexandre Julliard
2ab7625934 Removed most imports of ntdll since we no longer import Wine internal
functions from there.
2002-05-17 03:37:12 +00:00
Alexandre Julliard
6044307c3a A few fixes for mingw cross-compilation. 2002-05-17 03:31:08 +00:00
Alexandre Julliard
0aa28b5b8d Export the debugging API from libwine instead of ntdll.
Removed debugres_[aw].
2002-05-17 02:55:48 +00:00
Alexandre Julliard
ad53383f9b Added winebuild support for generating a .dbg.c file containing the
debug channels definitions.
Made win32 the default type for spec files.
Ignore C compiler in winebuild so we can simply pass it $(DEFS).
Removed type win32 and debug_channels from spec files.
Fixed winebuild to always generate correct C identifiers (reported by
Vincent Béron).
2002-05-14 20:54:58 +00:00
Alexandre Julliard
9bb05fc48e Specify the complete source file list for a dll inside the main
makefile and get rid of the subdirectories makefiles.
2002-05-14 18:36:54 +00:00
Alexandre Julliard
67371bcc8d Added -res option to specify resources on winebuild command-line.
Added -exe mode to generate a .spec.c for an exe without having to
provide a .spec.
Removed some no longer needed spec files.
Removed .dll extension in makefiles import specifications.
2002-05-11 23:06:32 +00:00
Alexandre Julliard
32459912dc Moved imports specification from the .spec into the Makefile so that
it can be used on platforms that don't build a .spec.c file.
2002-05-09 00:05:48 +00:00
David Hammerton
ca30e48f71 Added implementation of GetWindowInfo. 2002-05-06 20:11:18 +00:00
Robert O'Callahan
71a8a74b43 Fixed bug in TEXT_WordBreak that was variously throwing Lotus Notes
into an infinite loop or causing it to crash.
2002-04-27 00:14:16 +00:00
Alexandre Julliard
5769d1de00 Better support for configure detection of missing types, added check
for ssize_t.
Removed a couple of no longer used portability functions.
Various portability fixes in port.h.
2002-04-26 19:05:15 +00:00
Bill Medland
61245b2867 First regression test for wsprintf. 2002-04-24 21:16:51 +00:00
Mike McCormack
0f7b48b890 Added a simple test set for window classes. 2002-04-21 22:05:42 +00:00
Bill Medland
28cbea801c Correct handling of zero-padded negative numbers; transfer the sign
BEFORE adding the zeroes.
2002-04-20 20:53:59 +00:00
Stefan Leichter
32b6ef349d Check for NULL pointer in DrawTextExA. 2002-04-05 21:17:00 +00:00
François Gouget
ffb6d763f4 Include wine/test.h before windows headers.
Add definitions for IDI_APPLICATIONA and IDC_ARROWA for Windows.
Fix a check in the SPI_{GET,SET}BORDER test.
Fix bad copy/paste in the SPI_{GET,SET}BORDER test.
Use eq macro to print values when something goes wrong.
2002-04-02 00:44:51 +00:00
Alexandre Julliard
740ba2ca65 Fixed pack/unpack routines for WM_DDE_EXECUTE. 2002-03-29 17:59:20 +00:00
Alexandre Julliard
a05e448d90 Renamed some 16-bit spec files to match the dll name. 2002-03-26 19:56:06 +00:00
Bill Medland
2162eb867a Initialise a stack variable. 2002-03-22 00:12:15 +00:00
Alexandre Julliard
c1bfca04e1 Changed builtin dlls file names to make it clear they are not normal
Unix libraries, and install them in $libdir/wine instead of $libdir to
avoid name conflicts in /usr/lib.
2002-03-20 22:19:06 +00:00
Francois Gouget
902540cf0b Don't show the window. 2002-03-19 02:03:17 +00:00
Alexandre Julliard
302208f12a Fixed inter-process packing of CB/LB_FINDSTRING, CB/LB_FINDSTRINGEXACT
and CB/LB_SELECTSTRING.
2002-03-11 05:06:04 +00:00
Hidenori Takeshima
e4745cbfe9 Added and fixed some Japanese resources. 2002-03-11 01:16:42 +00:00
Bill Medland
7d983d244a Pass information through arguments instead of static variables.
Add protection to prevent reading outside the buffer.
Better handling of degenerate cases.
2002-03-11 01:15:31 +00:00
Alexandre Julliard
0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Andriy Palamarchuk
812bc5298b Added SystemParametersInfo unit test. 2002-02-27 21:32:18 +00:00
Bill Medland
bc39eeec40 Correct Word breaking in centred/right justified mode; it was leaving a
trailing space which it should only do for left-justified text.
Also tighten up some comments.
2002-02-26 00:39:30 +00:00
Eric Pouech
92e838f263 Fixed DdeGetData when called for getting size. 2002-02-26 00:37:57 +00:00
Peter Hunnisett
73ab649ced New file msvcrt/excpt.h. Move some stuff out of winnt.h into it. 2002-02-25 20:10:35 +00:00
Bill Medland
7423dc0463 DrawText ellipsification on all lines, not just single-line. 2002-02-21 20:07:26 +00:00
Bill Medland
8513907f2c Drawtext tidying up ready for the next big change:
- Fix brainfade in previous delta
- Move ellipsification results to static memory; they are going to
  have to be referenced inside NextLineW and the arg list is too big
  already.
- Add the missing ellipsification result (len_under) to simplify coding.
- Slight correction to prefix tracking for when there are several
  underlined characters on a single line (DT_EXPANDTABS only).
- Allocate and free the temporary copy required for DT_MODIFYSTRING
  rather than using a fixed size stack array.
- Introduce lastline into the main loop; it simplifies the code and we
  are going to need it.
2002-02-20 18:56:18 +00:00
Bill Medland
7af9098f6b Change the way that DrawText parses the next line to display, ready to
support multiline ellipsification etc.  Rather than measuring the text
each time we add a character and breaking once it is too long and
WORDBREAK is enabled, we copy a whole text segment and then measure
it; GetTextExtentPointEx is designed to tell us how much fitted.  This
may result in a little rescanning if wordbreak is enabled but will be
well worth while when multiline path ellipsification is brought down
into the NextLine function.  Note also that the wordbreak calculation
is a little more complete (e.g.  including break-within-word for
DT_EDITCONTROL).
2002-02-19 18:25:53 +00:00
Patrik Stridvall
651a8ba880 Added some defines for compatibility with Windows headers. 2002-02-15 19:12:35 +00:00
Bill Medland
0f9013f7e0 Measure the text more reasonably. This handles intercharacter spacing
and should handle any kerning etc. that might happen. Also ensure no
wordbreaking on singleline text.
2002-02-15 18:21:59 +00:00
Bill Medland
92d77c9bb2 DrawText should not split words just because of clipping. 2002-02-14 19:21:59 +00:00
Bill Medland
cabe8ca580 Put in place a proper tab model within DrawText (also includes
simplifying TEXT_NextLineW to remove duplicate code).
2002-02-12 18:40:36 +00:00
Bill Medland
afe92e8e8a Split the path and word/end ellipsification out of the main function
and do them thoroughly. The existing method would be incorrect where
tabs were involved and in some kerning situations.
2002-02-05 18:07:04 +00:00
Patrik Stridvall
57e5784c21 Move __stdcall/__cdecl to the right place. 2002-02-02 18:42:11 +00:00
Bill Medland
fdb799aa6a Ensure that the whole modified text is returned from DrawTextExA. 2002-02-02 18:14:35 +00:00
Andreas Mohr
2295e87be8 Fixed some more missing parenthesis issues. 2002-02-02 18:06:03 +00:00
Bill Medland
001e732c41 - Introduce a significant design decision.
- Recalculate the prefix location if ellipsification alters it.  This
  carefully does NOT emulate a Microsoft bug in which reprefixing is
  wrong when the first character removed by ellipsification is the one
  that would have been underlined (under Win98 at least).
2002-01-31 20:44:39 +00:00
Bill Medland
a4605ac000 Put the prefix-underline-drawing away into it's own function so we can
see what is happening.
2002-01-29 02:46:09 +00:00
Eric Pouech
01ff68943d Fixed initialisation messages for raw DDE.
Fixed DdeCreateDataHandle for non NULL or CF_TEXT formats.
Various fixes (cosmetics, better error checking).
2002-01-18 19:30:15 +00:00
Eric Pouech
0faceb05fc Implemented interprocess DDE message posting. 2002-01-18 19:22:55 +00:00
Bill Medland
fcb8e0d77a - Don't string copy from uninitialised stack memory. In fact don't
modify the input string if it didn't change.
- Correct array size.
- Logically separate the centring from the ellipsification.
- Comment on prefix error.
2002-01-18 18:09:09 +00:00
Rein Klazes
49762a3a50 Move the implementation of comctl32._TrackMouseEvent to
user32.TrackMouseEvent and call this function in accordance with the
specs.
2002-01-15 20:41:41 +00:00
Bill Medland
fd59f34ec0 First stage of DrawText upgrade.
- Rearrange code into three distinct areas; DrawText, GrayString,
  TabbedText.
- Remove unused macros.
- Modify treatment of Tab arguments to fit with observed behaviour.
  e.g. DrawTextEx with DT_TABSTOP but null dtp will not take the
  setting from the flags.  Also only uses bits 15 to 8, not the
  higher bits.
2002-01-15 20:29:35 +00:00
Alexandre Julliard
466b2b474a Updated debug channels. 2002-01-12 21:17:10 +00:00
Patrik Stridvall
19d66cc1f6 Fixed some issues found by winapi_check. 2002-01-07 21:16:46 +00:00
Mike McCormack
0964495bc4 - Don't use event flags with ReadFileEx and WriteFileEx.
- Use overlapped structure with WriteFile, since FILE_FLAG_OVERLAPPED
  is specified.
- Cancel overlapped operations in CloseComm.
2002-01-07 18:04:50 +00:00
Sander van Leeuwen
500c201b0a Fixed DC leak. 2002-01-04 21:26:56 +00:00
Alexandre Julliard
80a3bb4fc0 Removed LoadOEMResource from USER driver. 2002-01-04 18:27:41 +00:00
Alexandre Julliard
cc2d3826f1 Use DrawFrameControl instead of bitmaps in certain cases.
Moved remaining OEM bitmaps to user32 resources.
2002-01-03 02:35:23 +00:00
Alexandre Julliard
2cc54c8c49 Moved the OEM bitmaps that don't depend on the Wine look into the
user32 resources.
2002-01-02 21:49:23 +00:00
Alexandre Julliard
193cf50a09 Removed some of the calls to HEAP_strdup* functions. 2002-01-01 00:24:30 +00:00
Andreas Mohr
6924967539 Fixed, added or implemented stubs:
- DrawMenuBarTemp(): corrected parameter count.
- CallCPLEntry16(): stub.
- SetSysColorsTemp(): fully implemented (hopefully) this undocumented
  function.
2001-12-26 20:34:12 +00:00
Michael Stefaniuc
1b3c04d2c1 Check the return value of *snprintf for C99 style overflow reporting. 2001-12-26 19:48:15 +00:00
Mike McCormack
096524c5bf Use alertable waits in PeekMessage16 and GetMessage16 so we can
process APCs for 16bit comms.
2001-12-26 19:46:40 +00:00
Alexandre Julliard
851297919b Use MapLS/UnMapLS instead of SEGPTR_* macros. 2001-12-24 20:30:24 +00:00
Alexandre Julliard
d7b76822ef Use MapLS/UnMapLS instead of SEGPTR_* macros. 2001-12-20 00:19:40 +00:00
Alexandre Julliard
8eeed94f5f Export DestroyIcon32 from user32 and use GetProcAddress to call it
from FreeResource16.
2001-12-17 21:40:56 +00:00
Alexandre Julliard
7e49205d5a Changed 16-bit USER Enum* functions to not use thunks, now that 16-bit
Winelib is no longer supported.
2001-12-17 21:37:53 +00:00
Alexandre Julliard
9ec81d1673 Got rid of dynamic thunk allocation in mouse/keyboard event procs and
window hooks.
2001-12-17 21:35:42 +00:00
Alexandre Julliard
70b7619ad6 Changed 16->32 window procedure thunks to use winebuild-generated
entry code directly.
2001-12-14 23:15:44 +00:00
Alexandre Julliard
4964c0f185 Started rewrite of painting functions for multiple processes. Moved
BeginPaint to dlls/user. Fixed bug in paint count handling.
2001-12-13 01:03:30 +00:00
Mike McCormack
5355a7870b Only RTS_CONTROL_HANDSHAKE should set CRTSCTS. 2001-12-13 00:57: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
Andriy Palamarchuk
c7de3401ac Removed Get/SetScreenSaveTimeout user driver functions because they
are not used.
2001-11-30 23:15:32 +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
Mike McCormack
cce46e5760 Check for completed overlappeds in ReadComm16 to solve problems with
programs that loop on it but don't get data.
2001-11-23 18:26:30 +00:00
Alexandre Julliard
47f9821817 Moved WIN_FindWinToRepaint functionality to the server. 2001-11-14 21:28:36 +00:00
Lawson Whitney
9eaefced36 Cast id to unsigned in GetDlgItem16. 2001-11-12 15:49:38 +00:00
Joshua Thielen
80e7837105 Changed BM_ messages SETCHECK and GETCHECK to SETCHECK16 and
GETCHECK16 in CheckDlgItem16 and IsDlgItemChecked16.
Cast UINT16 value to UINT or INT depending on sign in SetDlgItemInt16.
2001-11-09 19:18:45 +00:00
Mike McCormack
daf347ac8b Find out how much data is available when calling ReadFileEx. 2001-11-08 17:06:08 +00:00
Francois Gouget
070e749cfb Don't prefix %p with 0x.
Various English fixes.
2001-11-06 21:01:32 +00:00
Guy Albertelli
38a247fde9 Move SPY_EnterMessage call after all possible exits so that there will
be a matching SPY_ExitMessage.
2001-11-05 23:56:01 +00:00
Jeremy Newman
7c2df090af Replaced Martini glass. 2001-10-28 21:12:54 +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
Mike McCormack
c5ea29f99b Return TRUE on success in COMM_BuildOldCommDCB.
DCB16.BaudRate > 57600 means 115200.
OpenComm16 should use overlapped I/O.
2001-10-21 15:01:20 +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
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
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
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
Alexandre Julliard
2ff4faf66d Moved MAKEINTATOM to winbase.h and added Unicode version. 2001-10-12 18:43:27 +00:00
Alexandre Julliard
90d4b11b3a Renamed USER_Init into UserClientDllInitialize. 2001-10-08 20:42:14 +00:00
Gerard Patel
6559d10489 Fix sign extension problem in map_wparam_WtoA. 2001-10-05 19:42:24 +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
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
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
Aric Stewart
1e5777edf5 The behavior for wsprintfA is different that for wsprintf16 in how it
handles NULLs being passed as character parameters.
2001-09-20 19:05:58 +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
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
Guy L. Albertelli
db9b54925d Enhance SPY_GetMsgName to translate common control messages. 2001-09-07 18:38:57 +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
Dmitry Timoshkov
2b81ece365 Replaced PROFILE_ functions by RegQueryValueExA. 2001-08-22 18:02:59 +00:00
Eugene Mayevski
4252310c92 Fixed DT_RTLREADING flag interpretation. 2001-08-22 18:00:47 +00:00
Francois Gouget
588ff3743a Documentation updates (mainly thru vs. through). 2001-08-21 17:07:17 +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
e007b98e9b Fixed internal inline function that was declared extern. 2001-08-18 16:11:28 +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
de42428f23 Removed a number of direct accesses to the WND structure, replacing
them by API calls.
2001-08-10 22:51:42 +00:00
Eric Pouech
78a4134e51 - implemented correctly the HSZ as local atoms and added the needed
conversions to global atoms
- enhanced internal handle <=> pointer conversions, as well as
  validity of such objects (life time, destruction, mutual access...)
- fixed a few ANSI/Unicode issues, stores most of the data as Unicode
- started having both Ansi/Unicode DDE window procs for message A/W
  transformation
- fixed a few segmented pointer issues (mainly in DdeInitialize &
  DdeGetData)
- added most of the CBF_ flags handling
- implemented the conversation announcement (XTYP_CONNECT_CONFIRM) on
  server side
- enhanced DdeQueryConfig and implemented DdeReconnect
- implemented conversation termination (including XTYP_UNREGISTER)
- several others code clean up
- added transaction support on server side too
2001-08-09 22:07:22 +00:00
Alexandre Julliard
e6533a6b71 Fixed DrawState16 callback support. 2001-08-08 23:26:32 +00:00