Ignore:
Timestamp:
Mar 21, 2000, 6:30:46 PM (25 years ago)
Author:
cbratschi
Message:

bug fixes and improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/toolbar.cpp

    r3154 r3182  
    1 /* $Id: toolbar.cpp,v 1.3 2000-03-18 16:17:31 cbratschi Exp $ */
     1/* $Id: toolbar.cpp,v 1.4 2000-03-21 17:30:44 cbratschi Exp $ */
    22/*
    33 * Toolbar control
     
    759759
    760760    tbNotify.iItem    = pos;
    761     tbNotify.tbButton = (TBBUTTON*)btnPtr;
     761    tbNotify.tbButton.iBitmap   = btnPtr->iBitmap;
     762    tbNotify.tbButton.idCommand = btnPtr->idCommand;
     763    tbNotify.tbButton.fsState   = btnPtr->fsState;
     764    tbNotify.tbButton.fsStyle   = btnPtr->fsStyle;
     765    tbNotify.tbButton.dwData    = btnPtr->dwData;
     766    tbNotify.tbButton.iString   = btnPtr->iString;
     767
    762768    tbNotify.cchText  = MAXTOOLNAME;
    763769    if (unicode)
     
    843849
    844850    tbNotify.iItem    = i;
    845     tbNotify.tbButton = (TBBUTTON*)btnPtr;
     851    tbNotify.tbButton.iBitmap   = btnPtr->iBitmap;
     852    tbNotify.tbButton.idCommand = btnPtr->idCommand;
     853    tbNotify.tbButton.fsState   = btnPtr->fsState;
     854    tbNotify.tbButton.fsStyle   = btnPtr->fsStyle;
     855    tbNotify.tbButton.dwData    = btnPtr->dwData;
     856    tbNotify.tbButton.iString   = btnPtr->iString;
    846857    tbNotify.cchText  = 0;
    847858    tbNotify.pszText  = NULL;
Note: See TracChangeset for help on using the changeset viewer.