Commit Graph

1414 Commits

Author SHA1 Message Date
Robert Shearman 83face5d3e - TTM_TRACKACTIVATE can have NULL lParam when deactivating.
- Factor out common code from TOOLTIPS_DelTool{A,W}.
- Update all indices correctly after delete.
2004-04-01 20:59:31 +00:00
Alexandre Julliard 9e4ed6460c .spec.c files are no longer used for 32-bit dlls. 2004-03-24 03:36:44 +00:00
Francois Gouget b948778660 Assorted spelling fixes. 2004-03-23 23:20:16 +00:00
Robert Shearman f92bb4b76a - Add cursor resource.
- Implement TB_MOVEBUTTON.
- Implement drag customise.
- Send TBN_TOOLBARCHANGE and TBN_DELETINGBUTTON.
2004-03-23 23:04:08 +00:00
Mike McCormack 052144fd7b Make sure the rebar size is above a minimum. 2004-03-19 19:14:30 +00:00
Robert Shearman 838a1ea09d - Fix SetBitmapSize.
- Fix SetButtonInfo.
2004-03-18 04:01:02 +00:00
Robert Shearman a49b8a5eed - Documentation update.
- Better hot item handling.
- Fix DrawMasked to always use the right image list and bitmap index.
2004-03-17 20:46:57 +00:00
Filip Navara ccd428e503 Support for RBBS_HIDETITLE style. 2004-03-16 19:14:30 +00:00
Huw Davies 75a1f6d0e9 When setting the buddy to 0 then we must still resize the updown
control.
2004-03-15 20:20:41 +00:00
Robert Shearman 7d22cc16d9 - Document completeness.
- Finish tooltip support.
2004-03-15 20:20:01 +00:00
Huw Davies 831098be33 Added CS_HREDRAW. 2004-03-15 20:10:32 +00:00
Robert Shearman bc2520b3b7 - Unicode notification detection should be local to each tool.
- Implement TTN_GETDISPINFOW notification.
2004-03-15 20:10:00 +00:00
Robert Shearman 9eb33c82f3 - Honour WM_SETREDRAW.
- Fix all calls of InvalidateRect.
2004-03-15 20:06:33 +00:00
Mike McCormack 464e59f6a4 Make sure to take account of hidden bands during layout. 2004-03-13 19:24:29 +00:00
Juan Lang 9a3647a303 Prevent negative coords for line, turn off redraw when initializing,
document one difference in native/builtin behavior.
2004-03-13 19:24:04 +00:00
Robert Shearman 39689d715c - Implement TB_LOADIMAGES, TB_MAPACCELERATOR{A,W}, TB_MARKBUTTON and
undocumented message 0x460.
- Better debug output of undocumented message 0x45D.
2004-03-13 19:23:41 +00:00
Robert Shearman 23983b8f83 - Add support for a toolbar global iListGap.
- Make TOOLBAR_CalcToolbar and TOOLBAR_DrawButton not rely on "magic
  numbers" and calculate sizes and positions more like native.
2004-03-12 20:24:05 +00:00
Mike McCormack 18eda48e59 Don't calculate the redundant and unused REBAR_ROW structures. 2004-03-12 20:23:39 +00:00
Ulrich Czekalla 9b83d4d4dc Fix rebar band insertion and non-client calculation in pager control. 2004-03-12 19:29:51 +00:00
Ge van Geldorp c11d8b00d6 Explicitly ask for image list with screen depth as ILC_COLOR can/will
limit the depth to 4bpp now.
2004-03-11 22:46:51 +00:00
Robert Shearman cf4c3348bb Fix subclassing to support nested messages. 2004-03-11 22:38:22 +00:00
Robert Shearman 90323a1b8a Rewrite drawing code. 2004-03-11 03:50:10 +00:00
Alexandre Julliard cf8a25f0d7 Do not kill the animation thread with TerminateThread, let it finish
properly.
Fixed a couple of races with the animation thread.
2004-03-11 00:41:07 +00:00
Robert Shearman 3c6956d3ea Spelling fixes. 2004-03-11 00:39:53 +00:00
Robert Shearman 9e4771fedc - Document control completeness.
- Remove unneeded include.
- Fix TEXT define.
- Fix tabs.
- Small optimisation in DrawInsert.
2004-03-11 00:38:44 +00:00
Robert Shearman dd72963949 - Implement the drag list control.
- Fix tabs in LBItemFromPt.
2004-03-09 23:26:44 +00:00
Robert Shearman 490fbd84fb Don't allocate space for text when nMaxTextRows = 0. 2004-03-07 03:13:26 +00:00
Robert Shearman cc08578577 - Support custom check background.
- Reduce number of parameters needed for DrawString function.
2004-03-03 05:26:01 +00:00
Alexandre Julliard 589e115233 We no longer use the .exe.spec.c files. 2004-03-02 21:16:37 +00:00
Vitaliy Margolen c03dabb2fe Adjust all dimensions to match native.
Invalidate whole tab area when multi-line.
In vertical tab placement go from top to bottom.
Fix annoying visual artifacts.
2004-03-02 04:52:35 +00:00
Steve Lustbader a752885c3d Handle the firstVisible item being NULL in
TREEVIEW_UpdateScrollBars().
2004-03-01 23:10:52 +00:00
Robert Shearman 57cc6f58ba Update common control function documentation. 2004-02-27 04:40:08 +00:00
Matt Chapman 766fc7cc9c REBAR_Layout should respect the minimum size of bands even when
RBBS_FIXEDSIZE is not set.
2004-02-27 04:32:54 +00:00
Matt Chapman cc5d49f8cb REBAR_ShowBand needs to force layout of the rebar after a band is
hidden/unhidden.
2004-02-27 00:43:04 +00:00
Matt Chapman c286ca06a0 Fix a reentrancy issue in the property sheet implementation by not
caching a pointer that can change.
2004-02-25 01:24:22 +00:00
Christian Costa 1fba717981 Accept null module instance, Loadstring can handle it. 2004-02-24 01:04:27 +00:00
Maxime Bellengé 820aa3762f Fix a regression in ImageList_Create when creating a dibsection. 2004-02-24 00:58:59 +00:00
Alexandre Julliard f310fdf3a0 Removed a couple of unneeded helper functions. 2004-02-20 19:58:39 +00:00
Ulrich Czekalla 5a864b2f70 Use dibsections for the images. 2004-02-20 19:57:09 +00:00
Huw Davies 9af2de85ea If TBSTYLE_EX_HIDECLIPPEDBUTTONS is set then invalidate the area that
changes in a resize.
Don't call SWP unless we're actually adjusting anything.
2004-02-20 19:56:52 +00:00
Robert Shearman 64d68b106a - Implement string functions in comctl32.
- Use CompareString in shlwapi wherever possible instead of ugly
  helpers.
2004-02-20 05:16:37 +00:00
Dimitrie O. Paun e879638d36 LVN_BEGINRDRAG is implemented now. Fix typo. 2004-02-20 05:12:49 +00:00
Aric Stewart d240ae8d62 Implemented LISTVIEW_ApproximateViewRect for LVS_REPORT. 2004-02-20 01:05:39 +00:00
Fabian Cenedese 7142a4e0b2 ListView should behave in OWNERDRAW as in FULLROWSELECT. This allows
to select cells not in the first column in REPORT mode with OWNERDRAW
style set.
2004-02-17 22:47:51 +00:00
Robert Shearman 997ce1926e Forward some wrapper functions since we don't care about compatibility
with Win98 in this case.
2004-02-17 22:47:21 +00:00
Robert Shearman 187c8b71ce Move string functions to separate file. 2004-02-17 21:02:18 +00:00
Robert Shearman 41596e8031 - Fix some traces.
- The TBM_GET*HOTLIST functions take imagelist ID in wParam.
- Implement TBM_GETSTRING{A,W}.
- Implement undocumented 0x462 message.
2004-02-17 20:28:19 +00:00
Robert Shearman 524cad7413 Documentation update. 2004-02-17 20:23:05 +00:00
Mike Hearn d04f253aa9 Grow the treeview control expander button by 1px in each direction to
match the native look.
2004-02-16 22:19:29 +00:00
Aric Stewart e56178d9d5 Work toward properly updating the SelectionMark when the selected
state changed inside a listbox.
2004-02-13 22:40:37 +00:00
Huw Davies d9558dbd19 Fix a TRACE. 2004-02-12 20:06:04 +00:00
Huw Davies 951b0a2271 Only redraw button in PressButton and Indeterminate if its state has
changed.
2004-02-11 05:26:30 +00:00
Huw Davies e722167e0d Honour TB_SETMAXTEXTROWS. 2004-02-11 04:02:29 +00:00
Ulrich Czekalla 54b6ccd501 Add support for BTNS_WHOLEDROPDOWN.
Populate button rect when sending TBN_DROPDOWN.
2004-02-10 20:08:45 +00:00
Dmitry Timoshkov e6f01981fc Add partial support for some undocumented toolbar messages. 2004-02-10 01:34:47 +00:00
Francois Gouget ad5ff7ceeb Assorted spelling and case fixes. 2004-02-09 22:07:42 +00:00
Huw Davies a1edb9204f TB_ADDBUTTONS can pass a string ptr instead of an index.
TB_GETBUTTONINFO only returns a string if it's not in the internal
string list.
2004-02-09 21:47:01 +00:00
Huw Davies 89ef25e218 Use the BTNS_* toolbar button style defines rather than the outdated
TBSTYLE_*.
2004-02-09 21:01:10 +00:00
Huw Davies 6b27cde3a2 Add a missing return. 2004-02-07 01:28:10 +00:00
Vitaliy Margolen a6637ddb5d - Fix handling of TCS_RAGGEDRIGHT style.
- Clip UpDown control only if it is present.
- Add ToDos.
2004-02-07 01:02:03 +00:00
Robert Shearman 436145e975 Fix nGrow initialization in DPA_CreateEx. 2004-02-06 05:16:32 +00:00
Jon Griffiths ed39e7c039 Draw disabled toolbar buttons correctly. 2004-02-03 00:08:34 +00:00
Ulrich Czekalla 710bd6fb6a We should forward WM_COMMAND notification to the active page for any
additional non-standard controls in the property sheet frame.
2004-01-27 20:11:05 +00:00
Francois Gouget 231fbff8d0 Add trailing '\n's to ok() calls. 2004-01-27 04:01:10 +00:00
Francois Gouget 6b6ed724ae Add missing '\n's to debug traces. 2004-01-27 00:01:43 +00:00
Alexandre Julliard 4e47ccb490 There is no need for a private heap in comctl32, memory allocations
should go to the standard process heap (reported by Ge van Geldorp).
2004-01-26 20:23:08 +00:00
Alexandre Julliard d07c1004e3 Moved a few remaining 16-bit definitions out of the standard headers. 2004-01-23 22:51:41 +00:00
Huw Davies d21266ad74 The tab control should be multiline. 2004-01-23 20:47:11 +00:00
Ge van Geldorp adeaa30555 Discard mouse button up events if no button is currently pressed. 2004-01-23 20:46:47 +00:00
Ge van Geldorp 0472291e4c Generate all binary resources using bin2res. 2004-01-23 02:11:53 +00:00
Huw Davies 84e7547ef1 Move the selection to the previous sibling if it can't go to the next
or the parent.
Fix the selection change logic.
2004-01-21 22:16:02 +00:00
Francois Gouget a5aa8dc1d0 DPA_Create is missing from all recent import libraries so use
GetProcAddress to load it.
Add '\n' to 'ok' calls.
2004-01-19 21:47:35 +00:00
Francois Gouget 4cd80a3637 Add trailing '\n's to ok() calls. 2004-01-19 21:43:43 +00:00
Vincent Béron 7b11e537b0 Get rid of a W->A cross call in ImageList_LoadImageW. 2004-01-16 02:01:46 +00:00
Francois Gouget eb10f347e6 Fix a race that caused the Microsoft Viewers 'file extraction'
animation to sometimes have a pink background.
2004-01-13 05:07:56 +00:00
Alexandre Julliard 502f6c5634 Removed incorrect uses of DUMMYUNIONNAME. 2004-01-07 00:47:35 +00:00
Francois Gouget 640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Mike McCormack 2de64d4b08 On a RB_SETBANDINFO message only redraw the rebar if something
changed.
2004-01-02 20:46:05 +00:00
Duane Clark 88c25c86e5 Reinitialize thumb when trackbar size is changed. 2003-12-30 19:10:15 +00:00
Mike Hearn a25b352f47 Remove flat scrollbar stub fixmes. 2003-12-13 01:33:51 +00:00
Vik Kumar 7ad932efda Added Japanese translation. 2003-12-12 05:57:22 +00:00
Jon Griffiths b56583ec1a Don't call GetWindowLong for every comparison while sorting. 2003-12-10 00:37:14 +00:00
Jon Griffiths 0e04023b91 Added Thai translation. 2003-12-04 04:46:13 +00:00
Vitaliy Margolen 036dcf167e - Fix drawing of HotTracked tabs & buttons.
- More tab size fixes in different styles.
- Don't use new padding until style changes.
- Fix left alignment of labels &| icons.
- Don't draw over UpDown control.
- Fully erase tabs when scrolling.
- More tests.
2003-12-02 03:31:44 +00:00
Dmitry Timoshkov 2964888d05 A general cleanup of the version resources in Wine DLLs. 2003-11-30 05:59:29 +00:00
Huw Davies 6cfbf89529 Merge {Set,Insert}Item[AW] to {Set,Insert}ItemT. 2003-11-27 01:11:01 +00:00
Ulrich Czekalla 1afef2c732 In TREEVIEW_EnsureVisible handle case where firstVisible is NULL. 2003-11-27 00:55:18 +00:00
Huw Davies 96b9057097 Merge GetItem[AW] into GetItemT. 2003-11-26 22:26:19 +00:00
Aric Stewart d78dfc8e44 Redraw if bold state changes. 2003-11-26 22:07:17 +00:00
Robert Shearman 7d6afc5ddc - Add support for TBSTYLE_EX_MIXEDBUTTONS.
- Add support for TBSTYLE_EX_HIDECLIPPEDBUTTONS.
- Replace 'magic numbers' with #define'd constants.
- Fix TBN_INITCUSTOMIZE.
- Add support for TBN_CUSTHELP and TBN_RESET.
- Fix TB_SETEXTENDEDSTYLE (it appears it should or the new style,
  rather than set).
- Fix TB_SETSTYLE (this is meant to be for setting the control style,
  not the button style).
2003-11-26 22:05:02 +00:00
Ulrich Czekalla 12f7a36132 Always recompute an item's text width in the case of text callbacks
and when its attributes change.
2003-11-26 22:03:58 +00:00
Huw Davies 5693ecd212 Unicodification. Based on a patch by Aric Stewart. 2003-11-26 03:37:30 +00:00
Rein Klazes 8ba9b5fc7e Use button face color for the image mask when adding a bitmap to the
toolbar, not the color of the top left pixel of the image.
2003-11-25 01:45:50 +00:00
Rein Klazes 7f7cde0eee Fix some confusion between number of bitmaps and number of buttons in
TOOLBAR_ReplaceBitmap().
2003-11-21 21:30:48 +00:00
Huw Davies 4a8e33954e We need to send TVN_EXPAND* on collapsing either when the user has
initiated it with the mouse/keybaord or in response to a TVM_EXPAND
when the state is not TVIS_EXPANDEDONCE.  This brings the logic into
line with TREEVIEW_Expand.
2003-11-21 21:30:20 +00:00
Dimitrie O. Paun c594043316 Make the controls send notifications to the parent window passed to
them in CREATESTRUCT.  Based on a treeview patch by Igor Grahek.
2003-11-20 22:04:13 +00:00
Dimitrie O. Paun 6443ee58bc Cleanup the edit wndproc a bit. 2003-11-20 04:19:59 +00:00
Dimitrie O. Paun e5762652d2 Remove some dead code: hwndParent is not used anywhere. 2003-11-20 04:19:41 +00:00
Ivan Leo Murray-Smith 15a9d28707 Added/updated Italian resources. 2003-11-19 02:14:44 +00:00
Huw Davies a63270f183 Unswap Page Up & Down and fix TBS_DOWNISLEFT.
NM_* notifications go via WM_NOTIFY not WN_?SCROLL.
Pull the notification window from the CreateStruct.
Send a TB_THUMBPOSITION at the end of a drag.
2003-11-18 19:39:40 +00:00
Rein Klazes b76e883344 The LVN_GETDISPINFO notify message should point to the same iSubItem
as in the call to LISTVIEW_GetItemT, valid or not. Fix a badly placed
brace.
2003-11-18 19:38:30 +00:00
Aric Stewart 89ba8760f3 We need to make sure that customdraw_fill is called even if
CDRF_NOTIFYITEMDRAW is not being used because we used the text and
background colors from that struct later.
2003-11-18 00:04:27 +00:00
Rein Klazes 7b6b9d6e93 Ignore invalid iSubItem in LISTVIEW_GetItemT(). 2003-11-17 20:01:49 +00:00
Huw Davies 83e9fd8513 Implemented LVS_EX_CHECKBOXES. 2003-11-13 20:50:25 +00:00
Dmitry Timoshkov d6872aff18 Avoid setting infoPtr->firstVisible to NULL in TREEVIEW_Sort. 2003-11-13 20:49:00 +00:00
Huw Davies 50c9ff030f Fix some weird logic in ImageList_Write. 2003-11-12 22:41:44 +00:00
Huw Davies ac24a0a692 A multicolumn listview should get a customdraw notification for the
item as well as one for subitem 0.
2003-11-12 22:41:27 +00:00
Huw Davies 818c5861c4 Add support for LVS_EX_SUBITEMIMAGES. 2003-11-11 00:26:15 +00:00
Robert Shearman fc58ef8119 Added chevron support. 2003-11-09 00:28:24 +00:00
Huw Davies a7c4fa8119 ReleaseCapture on lbuttondown if the cursor is outside an item, just
like the native one does.
2003-11-09 00:27:20 +00:00
Huw Davies 4de17c3724 LISTVIEW_GetSubItemRect should succeed if subitem == 0 whatever mode
the listview is in.
2003-11-05 00:35:57 +00:00
Rein Klazes 56121b7161 Correctly place a toolbar with CCS_BOTTOM style at the bottom, not the
top.
2003-11-05 00:35:28 +00:00
Huw Davies e63e39f2c5 PropSheetPageProc callback should always have hwnd = 0. 2003-11-04 04:23:00 +00:00
Alexandre Julliard 55cb8177b5 Authors: Ulrich Czekalla <ulrich@codeweavers.com>, Huw Davies <huw@codeweavers.com>
Added drag and drop support to listview.
2003-11-04 04:22:37 +00:00
Huw Davies 3ce815e7f3 Fix a fixme. 2003-11-04 04:22:07 +00:00
Huw Davies f94159cdb2 Don't get confused if PSN_SETACTIVE returns a positive number that
isn't a resource id.
2003-11-03 22:15:39 +00:00
Huw Davies b37adfb4b5 Make the listview send its notifications to the parent window passed
to it in CREATESTRUCT.  Based on a treeview patch by Igor Grahek.
2003-11-03 22:15:22 +00:00
Robert Shearman 90f3057b41 - Use the style returned in custom draw structure to draw the button,
as apps may modify the style this way.
- Disabled buttons can become hot.
- Retrieve image list for drawing after getting image list ID (in
  I_IMAGECALLBACK case).
2003-10-31 00:08:39 +00:00
Vitaliy Margolen 785bae8aae - Fix tab size for TCS_OWNERDRAWFIXED style.
- Correct size recalculation after setting tab width.
- Fix button sizes to match native.
- Center both vertically and horizontally tab text & icon.
- Use correct left/center alignment flags.
2003-10-31 00:06:42 +00:00
Francois Gouget f405629e8e Weekly spelling fixes. 2003-10-28 21:45:30 +00:00
Hans Leidekker a2977cf5b8 Added Dutch translations. 2003-10-27 22:04:36 +00:00
Robert Shearman fad1e1108e Don't store band text if "" is passed into SetBandInfo. 2003-10-24 04:18:42 +00:00
Maxime Bellengé ed3847247e Fix TAB_DeleteItem and TAB_DeleteAllItems regressions introduced by
the last TAB_InvalidateTabArea changes.
Correct the indentation for these functions.
2003-10-21 23:44:03 +00:00
Mike McCormack 8a6ca5ad3f Don't use free'd pointer in status control - found by Valgrind. 2003-10-21 23:43:14 +00:00
Adam Gundy c2d90611f6 Only send TVN_ITEMEXPANDING for items marked as having children. 2003-10-15 21:01:54 +00:00
Maxime Bellengé 5b99b3df29 - Implemented HEADER_SetBitmapMargin and HEADER_GetBitmapMargin.
- Get rid of some magic numbers in HEADER_DrawItem.
- Fixed the drawing of images from imagelist when the
  HDF_BITMAP_ON_RIGHT flag is set.
2003-10-14 20:13:42 +00:00
Maxime Bellengé 8147ee1095 Only redraw the necessary area of the tab component and not the whole
component like windows does.
2003-10-14 20:12:05 +00:00
Vitaliy Margolen bd7bdbce3f Fix setting size of tab control. 2003-10-14 01:16:16 +00:00
Dimitrie O. Paun fbdfd910c1 Remove SYMBOLFILE and LDDLLFLAGS from Makefiles. 2003-10-11 01:09:15 +00:00
Daniel Marmier ee1eb63b31 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-07 03:30:47 +00:00
Dimitrie O. Paun 54e6b0d938 Extract binary resources to files, to fit the standard. 2003-10-03 05:01:33 +00:00
Pavel Roskin 5b7f03cf9f Ignore window caption from PROPSHEETHEADER in wizards. Update window
caption when changing pages.
2003-10-02 04:26:53 +00:00
Dimitrie O. Paun 7de279a73a Rename COMCTL32_{Alloc,ReAlloc,Free} to {Alloc,ReAlloc,Free}. 2003-09-22 21:32:33 +00:00
Vincent Béron bf5f07a5b4 Yet another batch of French resources updates. 2003-09-22 21:16:56 +00:00
Maxime Bellengé e5cd5a778a When an item is activated, we should send a NMITEMACTIVATE struct and
not a NMHDR one.
2003-09-22 19:27:33 +00:00
Alexandre Julliard 10aacbf3ef Renamed the COMCTL32_* functions to use the exported name. 2003-09-17 22:42:04 +00:00
Alexandre Julliard f5cb3dde17 Moved undocumented functions out of the exported commctrl.h. 2003-09-17 20:15:21 +00:00
Alexandre Julliard 1084a8ba93 Moved out of windef.h a few definitions that don't belong there
(reported by Filip Navara).
2003-09-17 04:31:27 +00:00
Alexandre Julliard 9d61596624 SLOWORD and SHIWORD do not exist on Win32 (reported by Filip Navara). 2003-09-17 04:28:28 +00:00
Filip Navara 2773106058 Fixed definitions of TTTOOLINFOA/W_V1_SIZE and
REBARBANDINFOA/W_V3_SIZE.
2003-09-16 01:17:25 +00:00
Robert Shearman d973bfb1c1 - Make sure dropdown arrow is always centered.
- Add support for the TBNRF_HIDEHELP customization flag, but emit a
  FIXME when it isn't present.
2003-09-12 00:21:57 +00:00
Robert Shearman 5dbf835b43 Add proper names to ordinal-only functions. 2003-09-11 01:04:24 +00:00
György 'Nog' Jeney 80428c4c9d Fix invalid C constructs (spotted by Marcus Meissner). 2003-09-11 01:03:27 +00:00
Alexandre Julliard cf52644a1c Removed the A/W constants for builtin cursors, icons and resource
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Francois Gouget ae50013017 Fix the case of product and company names. 2003-09-08 19:38:45 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Dimitrie O. Paun 6d0019fb0e Adjust selection ranges before we insert the item so we don't mix the
new selection with the existing ones (reported by Eric Pouech).
2003-09-04 19:38:44 +00:00
Stefan Leichter c7a539d8e1 Updated minor version number. 2003-09-04 00:04:16 +00:00
Kevin Groeneveld 3219ae74fb Change default range of up-down control to match range used in
window.
2003-09-02 23:05:21 +00:00
Maxime Bellengé bcd1222650 Implemented TAB_SetMinTabWidth and TAB_HighlightItem. 2003-09-02 00:56:43 +00:00