Commit Graph

1504 Commits

Author SHA1 Message Date
Vitaliy Margolen ba5d267b70 Make sure TreeView gets redrawn after calling EnsureVisible. 2004-09-13 19:17:35 +00:00
Filip Navara 8a8a66c328 Fill the area next to watermark bitmap with window color and subclass
exterior wizard pages to suppress drawing background.
2004-09-13 19:17:00 +00:00
Vitaliy Margolen 4cf764f503 Send correct tracing notification messages. 2004-09-13 18:05:02 +00:00
Filip Navara 4387895d86 Correct displaying of wizard subtitle. 2004-09-13 18:02:32 +00:00
Robert Shearman 8974541d6c - Status update.
- Remove no longer valid comment.
- Minor coding style cleanups.
2004-09-09 00:26:13 +00:00
Filip Navara 3b0aaea137 Do not distinguish exterior wizard pages by their position, but
instead expect that every page in wizard that doesn't have header is
exterior.
2004-09-08 21:47:03 +00:00
Robert Shearman 7bc76766cc Implement titles. 2004-09-07 20:43:44 +00:00
Robert Shearman e18a31eb4c Add 16x16 error, info and warning icons. 2004-09-07 20:43:30 +00:00
Filip Navara 32b23b3419 - Revert incorrect change to tab control resizing from revision 1.109.
- Move the property sheet resizing code from PROPSHEET_CreatePage to
  PROPSHEET_SetCurSel. It needs to be executed on every page change
  because the application can modify it during the notifications.
2004-09-07 20:28:14 +00:00
Filip Navara 002d91199a - Draw the Wizard97 header bitmaps before drawing the header strings.
- Center the header bitmap of the new Wizard97 correctly.
- Display the correct wizard title for any wizard type and do not
  change it for reqular property sheets.
2004-09-07 19:31:50 +00:00
Robert Shearman 8f870346cb - Obey TBCDRF_NOOFFSET for the button text.
- Make anchor highlighting behave more like native version.
- Don't recalculate toolbar in TOOLBAR_Unkwn460.
- Obey WM_SETREDRAW for the WM_ERASEBKGND message as well as
  WM_PAINT.
2004-09-06 21:26:25 +00:00
Kevin Koltzau c95959dc7f Fix bug with chained messages. 2004-09-06 20:26:04 +00:00
Hans Leidekker 411fc5f164 Fix signed/unsigned comparison warnings. 2004-09-02 23:00:53 +00:00
Ferenc Wagner e07e1ee547 Added \n to ok() strings in the imagelist tests. 2004-09-02 20:08:15 +00:00
Francois Gouget d661e1a2a9 MSVC does not like the typeof() in the function pointer declaration.
Fix a warning.
2004-08-31 17:32:43 +00:00
Filip Navara 335983ed91 Fix loading wizard title and subtitle from resources. 2004-08-30 18:39:32 +00:00
Robert Shearman 4d7892f886 TB_MARKITEM should redraw button. 2004-08-30 18:36:55 +00:00
Robert Shearman 0aa22f989b Allow image list tests to compile and run on old platforms. 2004-08-26 18:22:31 +00:00
Mike McCormack 8b424416bb Calculate the correct size of dialog templates in the propsheet
control.
2004-08-26 18:11:43 +00:00
Francois Gouget dff5004bc0 Assorted spelling fixes. 2004-08-26 00:31:20 +00:00
Robert Shearman cdb263e588 Replace GetWindowLong by GetWindowLongPtr. 2004-08-25 17:33:01 +00:00
Robert Shearman b18e158636 - Send NM_LDOWN notification.
- NM_RDBLCLK only needs to send a NMHDR structure.
- On mouse notifications returning 0 DefWndProc should be called.
2004-08-25 02:16:32 +00:00
Mike McCormack 99c83d4c57 Tests for icon and bitmap adding and removing and bitmap drawing with
image lists.
2004-08-24 18:41:52 +00:00
Robert Shearman f1ae41c7eb Fix regression with IE's Menu Bar. 2004-08-24 18:41:27 +00:00
Huw Davies 174e6a5d28 Change dialogs to use MS Shell Dlg rather than Helv or MS Sans Serif. 2004-08-24 18:33:01 +00:00
Mike McCormack 90c25514fe Adjust the tab contents to fix the propsheet between PSM_KILLACTIVE
and PSM_SETACTIVE.
2004-08-23 17:51:19 +00:00
Kevin Koltzau 59302aed35 Make SetWindowSubclass behave with SetWindowLong subclasses.
Allow unlimited number of subclasses.
Correct issue when SendMessage is called from within a subclass proc.
Add regression test.
2004-08-22 22:29:37 +00:00
Michael Stefaniuc 14d9a7c1e9 Test case for hotspot handling. 2004-08-22 01:59:55 +00:00
Michael Stefaniuc 4cfe5286f9 - Fix hotspot handling
- Remove unused flag from the InternalDrag struct.
2004-08-22 01:59:29 +00:00
Robert Shearman 4c1438a70e - Implement insert marks.
- Rearrange TOOLBAR_INFO.
2004-08-19 19:58:49 +00:00
Ulrich Czekalla e516ce8469 Clear tooltip when text is set to NULL.
Repaint tooltip when item info changes.
2004-08-19 19:13:08 +00:00
Ulrich Czekalla 12d61c1db6 Forward focus to combobox, otherwise edit control won't get focus. 2004-08-19 19:09:15 +00:00
Ulrich Czekalla 0d173d01a8 The rectangle passed in DRAWITEMSTRUCT is slightly too large as
compared with Windows.
2004-08-19 19:06:18 +00:00
Robert Shearman 9a7cda1048 - Fix anchor highlighting.
- Remove redundant test in TOOLBAR_DrawButton.
2004-08-19 19:02:59 +00:00
Robert Shearman ab7bad7647 Always redraw dialog on changing between pages. 2004-08-17 22:09:02 +00:00
Zach Gorman 9b68d0f993 OK button should be default in non-wizard property sheets. 2004-08-16 23:17:44 +00:00
David Kredba b45744c817 Added Czech resources. 2004-08-16 20:02:09 +00:00
Zach Gorman be3d4071bf Propsheet pages need WS_EX_CONTROLPARENT style. 2004-08-16 19:50:44 +00:00
Jon Griffiths fb50426533 Make pattern brush data const. 2004-08-13 19:44:49 +00:00
Thomas Weidenmüller 0a4d8f7f7d Correct tooltips behavior. 2004-08-12 20:27:01 +00:00
Mike McCormack a3a19355cd Prevent listview from crashing when a null sort function is passed to
LVM_SORTITEMS.
2004-08-12 20:01:55 +00:00
Filip Navara ab13698998 Don't update infoPtr->dwStyle in LISTVIEW_WindowProc. It's already
handled in LISTVIEW_StyleChanged and LISTVIEW_Create processing.
Ignore WS_VSCROLL/WS_HSCROLL flags in infoPtr->dwStyle because they're
not always up-to-date.
2004-08-11 20:53:32 +00:00
Filip Navara 1076286020 Fix TOOLBAR_DrawMasked to correctly use image list mask. 2004-08-09 23:37:54 +00:00
Filip Navara 9a0f5ede42 Use correct dialog title for Wizard 97 and correctly display header
bitmap for old-style Wizard 97.
2004-08-09 22:54:14 +00:00
Eric Kohl bea0555890 Move watermark and header bitmap loading code from
PROPSHEET_CreatePage into its own function PROPSHEET_LoadWizardBitmaps
and call this function from property sheet's dialog procedure.
2004-08-09 19:48:04 +00:00
Thomas Weidenmüller 9d6f88c952 Implemented syslink control. 2004-08-06 19:17:49 +00:00
Thomas Weidenmueller 7155eff8bc Added support for PBS_MARQUEE style. 2004-08-02 22:19:50 +00:00
Dmitry Timoshkov 304f106a07 Create toolbar with a not zero default size, it allows applications
which check toolbar size before adding buttons to it work.
2004-08-02 18:25:20 +00:00
Marcus Meissner e5a5e7271d Implemented PSM_INDEXTOHWND. 2004-08-02 18:24:58 +00:00
Henning Gerhardt 68ade3b7ac Minor fixes and updates to the German resource files. 2004-07-22 20:35:07 +00:00
Filip Navara fb6aa772cd Fix CreateMappedBitmap for palette-less bitmaps. 2004-07-21 21:19:08 +00:00
Filip Navara c846f88fa2 - Properly calculate caption length when converting multi-byte string
to wide character one.
- Wizard contents shouldn't be moved by the size of watermark bitmap.
- Fix PSH_WIZARD97_[NEW/OLD] checks.
- Blit the watermark even if PSH_USEHBMWATERMARK flag isn't set and
  blit only the part that fits into the dialog.
2004-07-21 21:17:59 +00:00
Filip Navara cbe79616bd Use system metrics values in TOOLBAR_DrawPattern instead of hardcoded
values.
2004-07-19 19:32:16 +00:00
Filip Navara 6a9cc38d9e Make the pattern drawing in TOOLBAR_DrawPattern look better. 2004-07-16 23:20:55 +00:00
Jon Griffiths 86a0e50a1d Don't crash on NULL tab text. 2004-07-16 02:30:48 +00:00
Robert Shearman 0d9f93ab06 Implemented PSM_HWNDTOINDEX. 2004-07-12 23:48:11 +00:00
Robert Shearman cd2065f170 Add stubs for some new property sheet messages. 2004-07-12 23:30:54 +00:00
Mike McCormack 4f7ad78bd9 Create a tooltip on demand in the Listview. 2004-07-06 21:27:34 +00:00
Filip Navara 2d63dae1d9 Set the palette for image list DIBs that has 8 or less bits per
pixel.
2004-06-28 23:52:51 +00:00
Robert Shearman 41716ce9c1 Start of balloon tip support. 2004-06-28 23:52:37 +00:00
Robert Shearman 5c5a0608e5 - Clean up the mask drawing code.
- Improve bitmap not found message.
2004-06-28 20:29:00 +00:00
Jon Griffiths 438bf11a7d Implemented TCM_SETITEMEXTRA. 2004-06-04 18:11:03 +00:00
Dimitrie O. Paun 4b6ed4ed84 Clear the state image bits only if LVS_EX_CHECKBOXES is set.
Fix obvious logical error in focus handling.
Indentation and formatting fixes.
(based on a patch by Krishna Murthy).
2004-06-04 17:58:29 +00:00
Ulrich Czekalla 0178c1116b Handle case when item text is empty.
According to MSDN, length should be returned when lParam is NULL.
2004-06-02 21:34:05 +00:00
Robert Shearman b81934c2c7 Don't draw whole button pressed when separate dropdown pressed, just
the separate dropdown itself.
2004-06-02 00:36:00 +00:00
Ivan Leo Puoti 3e42f6953e Changed my name, so update copyright info. 2004-05-27 02:25:13 +00:00
Robert Shearman 01a528817c - TBN_DRAGOUT and NM_RDBLCLK notifications.
- Remove unneeded member of private toolbar struct.
2004-05-18 00:44:47 +00:00
Patrik Stridvall 36eb79144a StrSpnW doesn't exist in comctl32.dll but StrCSpnW does. 2004-05-17 20:51:27 +00:00
Filip Navara c8aba95f50 - Let the subclassing stack grow the opposite way to make the code
more transparent.
- Remove SubclassWndProc and move its logic to DefSubclassProc.
2004-05-17 19:48:24 +00:00
Maxime Bellengé 7c46a5eaa5 Add DT_END_ELLIPSIS as defaut style for text. 2004-05-12 23:03:03 +00:00
Ulrich Czekalla fc9be6a599 Handle case where iterator range contains 0 elements. 2004-05-11 22:16:54 +00:00
Maxime Bellengé d19e264640 Implemented PSH_WIZARD97_OLD and PSH_WIZARD97_NEW property sheet
styles.
2004-05-10 21:26:04 +00:00
Ilya Korniyko 4943881d28 Encoding fixes in Ukrainian translation. 2004-05-10 19:54:10 +00:00
Francois Gouget cfc3943c5f Make our ascii strings static const.
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Maxime Bellengé 7507ad2ac5 Add NM_RCLICK notification support for toolbars. 2004-05-04 02:54:11 +00:00
Maxime Bellengé 199877a6d7 Fix the size of the listview items in the customize dialog. 2004-05-03 20:05:43 +00:00
Ge van Geldorp 73d8c97f12 Always reset AUTO_RESIZE flag on exit from REBAR_ForceResize. 2004-05-02 04:21:48 +00:00
Maxime Bellengé ee1c578017 Fix TB_GETSTYLE message to return the style of the toolbar and not the
style of a button.
2004-05-02 04:21:01 +00:00
Huw Davies 7e1d83ee70 Implemented TVS_NOSCROLL. 2004-05-02 04:20:06 +00:00
Ilya Korniyko 1c279bfd89 Added Ukrainian translations. 2004-04-26 23:35:17 +00:00
Huw Davies 69f2e04ff8 Deleting column zero should only delete the column and not the item
data.
2004-04-21 22:25:04 +00:00
Krzysztof Foltman c401aa84eb - next/prev month don't stick anymore
- min/max ranges initialized to some reasonable values
- fixed some bugs caused by reversed order of arguments of MONTHCAL_CopyTime
- update current month/year after setting current date
- changing months etc doesn't send MCN_SELECT (which could be sent
  only after a particular day was clicked)
- changed (hit && MCHT_CALENDARDATE) to (hit == MCHT_CALENDARDATE)
2004-04-21 22:24:09 +00:00
Krzysztof Foltman 3ae8f73caf - make monthcal a child of datetime (it was a sibling before, causing
completely incorrect message flow)
- update monthcal after date change in datetime
- choose different coordinates when DTS_SHOWNONE is not used
- embedded monthcal is now 200 pixels wide
- selecting a day in embedded monthcal updates the datetime and hides
  the monthcal
- changing months/years by clicking month name/year in title bar works
- embedded month calendar is correctly destroyed (it used to stick on
  the screen long after the datetime's container was closed)
2004-04-21 22:23:36 +00:00
Francois Gouget 52c0832161 Make Unicode strings static const. 2004-04-20 01:12:17 +00:00
Francois Gouget ebf0eb3138 Make static Unicode strings const. 2004-04-20 00:34:52 +00:00
Robert Shearman 9509912e41 - Optimise accessing toolbar style by storing it in the TOOLBAR_INFO
structure.
- Replace {Get,Set}WindowLong by {Get,Set}WindowLongPtr where
  appropriate.
2004-04-19 02:57:38 +00:00
Martin Fuchs 5307b3f598 Return TRUE for TVM_EXPAND if treeview item is already expanded. 2004-04-14 04:27:59 +00:00
Filip Navara 0c954aebbd Force resize before calling RBN_HEIGHTCHANGE notification. 2004-04-14 04:27:16 +00:00
Huw Davies 8e106f2f7b Fix dumb error from rev. 1.158. 2004-04-07 19:05:55 +00:00
Robert Shearman e2d6529d9c - Fix LButtonDown from previous change.
- Don't use BF_ADJUST flag for dropdown buttons.
- Fix LButtonDblClk.
2004-04-01 20:59:59 +00:00
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