Commit Graph

3118 Commits

Author SHA1 Message Date
Marcus Meissner c36e7b8937 Fixed cut&paste problem in SETRTS. 2002-02-26 00:39:55 +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
Guy L. Albertelli 8fe19fa7bb Implement EM_FMTLINES message based on relay trace of native. 2002-02-26 00:38:42 +00:00
Eric Pouech 92e838f263 Fixed DdeGetData when called for getting size. 2002-02-26 00:37:57 +00:00
Lionel Ulmer e88edac600 Fix crash in the X11 HAL when setting a NULL palette to a surface. 2002-02-26 00:36:21 +00:00
Guy L. Albertelli 9ce993206d Fix another bad test. Caused regression in IE 4. 2002-02-26 00:34:48 +00:00
Charles Duffy 6a45c0b4b4 Stop TOOLBAR_MeasureString from dying on empty strings. 2002-02-26 00:34:19 +00:00
Dave Hawkes 770a5bfa2d Partially repair hotspot handling. 2002-02-26 00:33:51 +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
Gerard Patel 019ae8a22f LVM_GetItemRect should not take text size in account for LVIR_LABEL in
report mode.
2002-02-25 19:00:03 +00:00
Bill Medland d10c9a47b8 Implement multiline labels in the Large Item view by using DrawText
Note that this now highlights weaknesses in the label measuring code
etc. which cannot correctly handle multiline labels.
2002-02-22 21:23:02 +00:00
Stefan Leichter 923861fbd2 Compile fix for GCC 2.7.x. 2002-02-22 21:22:06 +00:00
Peter Hunnisett 3290038929 Add spec stub for RtlGetNtVersionNumbers. 2002-02-22 21:21:38 +00:00
Gavriel State fc86225450 Change useless warning into a TRACE. 2002-02-22 21:21:09 +00:00
Peter Hunnisett 618a4e916b atexit doesn't take a _onexit_t parameter. 2002-02-22 21:20:39 +00:00
Peter Hunnisett d1a79ea2eb Add _lock,_unlock and header file for them.
Convert all msvcrt locks over to use _lock and _unlock.
Explicitly make msvcrt compile with multithreaded option.
Fix flag handling in _sopen. Add W->A call for new _swopen.
2002-02-21 20:22:00 +00:00
Guy L. Albertelli df30690e04 - Forward ordinals 40, 41, 143, 362 to appropriate routines.
- Implement ordinals 155, 350, 351, 352, 418, 436.
- Fake implementation of SHGetInverseCMAP.
- Stub ordinal 209.
- Fix definition of ordinal 7.
- Implement SHGetThreadRef and SHSetThreadRef.
2002-02-21 20:09:17 +00:00
Guy L. Albertelli a8bba78485 Fix problems in DPA_Merge exposed by previous code cleanup. 2002-02-21 20:08:29 +00:00
Bill Medland 7423dc0463 DrawText ellipsification on all lines, not just single-line. 2002-02-21 20:07:26 +00:00
Alexandre Julliard caa03388bc Preliminary version of the C unit tests run-time environment.
Added make rules for building and running C unit tests.
2002-02-20 19:03:59 +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
Lawson Whitney 8777effb78 Protect PathIsUNCServerShare from null lpszPath. 2002-02-20 18:55:06 +00:00
Lawson Whitney 533e7eeaf4 Support for nonstandard baud rate in SetCommState. 2002-02-19 18:41:56 +00:00
Stefan Leichter 55cc7d746c Added two missing exports. 2002-02-19 18:37:26 +00:00
Ondrej Macek 13f1fb23fe Fix of ListView invalidation in LISTVIEW_SetBkColor. 2002-02-19 18:32:12 +00:00
Gerard Patel 000e7606ab HCR_GetDefaultIcon should set icon number to 0 if it's missing from
the reg entry.
2002-02-19 18:31:22 +00:00
Hidenori Takeshima 6a32d2ce46 Fixed some deadlocks. 2002-02-19 18:30:26 +00:00
Hidenori Takeshima b5cb1a347a Fixes for compatibility. 2002-02-19 18:29:54 +00:00
Hidenori Takeshima d65f49a041 Fixed bugs in processing DELTA. 2002-02-19 18:26:54 +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
Patrick Haller 0e3c9d454b Fix crash in VariantTimeToDosDateTime. 2002-02-19 18:23:09 +00:00
Sander van Leeuwen 3ad8d3f0d0 Must make a copy of global handle returned by GetClipboardData; it is
not valid after we call CloseClipboard. Application is responsible for
freeing the memory (fixes copy/paste in mail body in Forte Agent).
2002-02-19 18:22:28 +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
Rein Klazes 6748e6992c In SHFileOperation() when requested to copy files, figure out when the
destination is to be treated as a directory and handle those cases.
2002-02-15 18:20:18 +00:00
Martin Dalecki be951f359a Some artwork on the default icons. 2002-02-14 19:23:01 +00:00
Bill Medland 92d77c9bb2 DrawText should not split words just because of clipping. 2002-02-14 19:21:59 +00:00
Rein Klazes 0753967327 In ShellExecute16, make sure there is a space between command and
parameters.
2002-02-14 19:20:30 +00:00
Lawson Whitney f6a3a52180 Protect against NULL wsaddrlen in ws_sockaddr_alloc. 2002-02-14 19:20:12 +00:00
Guy L. Albertelli 6f22d775e3 Partially implement SHRegWriteUSValue{A|W}. 2002-02-12 18:44:14 +00:00
Guy L. Albertelli d3a52c2890 When the commandID was being treated as the index, no check for index
greater than number of buttons was done. Now fixed.
2002-02-12 18:43:56 +00:00
Guy L. Albertelli d2ace6addd Fix regression in some programs due to CLR_DEFAULT fix. Noticed in
control-spy rebar.exe.
2002-02-12 18:43:24 +00:00
Guy L. Albertelli 8961f1624e Correct tests involved with processing the LVIF_DI_SETITEM flag. 2002-02-12 18:42:25 +00:00
Guy L. Albertelli 683c00ae3f Initialize pszText to 0 for internal ->ceItem to eliminate moves to
garbage locations.
2002-02-12 18:41:48 +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
C. Scott Ananian 48a87e6107 Filled out the implementation of fscanf and _cscanf. 2002-02-08 17:17:11 +00:00
Eric Pouech 91f3fc7d59 Fixed bug in cache init. 2002-02-08 17:11:22 +00:00
Aric Stewart 1282ef9420 Use the supplied buffer when copying item text. 2002-02-08 17:10:49 +00:00
Lawson Whitney d23cf08262 Fix off-by-one error in placing trailing \0. 2002-02-08 17:09:11 +00:00
Ori Pessach 023b1aae0a Set WS_EX_TOOLWINDOW in a tooltip's dwExStyle. 2002-02-08 17:03:57 +00:00