- Added a helper function TOOLBAR_GetText() and macro TOOLBAR_HasText() to
commit9f5a8b00c00c33bd4d073c08442bd4c954fc3191
authorChris Morgan <cmorgan@wpi.edu>
Fri, 18 Aug 2000 23:42:03 +0000 (18 23:42 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 18 Aug 2000 23:42:03 +0000 (18 23:42 +0000)
treefbc8705c4e6c5de93af105cf69c1525715217118
parent8d5db55cc5915c339b04a1a8b29d1028a62d9032
- Added a helper function TOOLBAR_GetText() and macro TOOLBAR_HasText() to
  determine whether we need to call InvalidateRect() with bErase of TRUE or
  FALSE.  Reduces background erases in non-text toolbars by 80-85%.
- Fixed button state not being updated properly when LBUTTONDOWN and cursor
  leaves the toolbar.
- Removed FIXME() in TOOLBAR_DrawString for btnPtr->iString == -1, replaced
  with a source code comment.
- Removed unecessary call to TOOLBAR_CalcToolbar() in
  TOOLBAR_GetItemRect().  Optimized TOOLBAR_CalcStrings(). Fixes very
  slow responding toolbars in Ultraedit due to processing TB_GETITEMRECT
  messages.
- Optimized TOOLBAR_SetIntent(), SetRows() and SetStyle().
dlls/comctl32/toolbar.c