Changeset 129 for trunk/Lucide/SOURCE


Ignore:
Timestamp:
Sep 17, 2006, 3:55:13 PM (15 years ago)
Author:
Eugene Romanenko
Message:

find/findagain bitmaps replaced (closes #71), added 'zoom in/out' toolbar button

Location:
trunk/Lucide/SOURCE/gui
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/Lucide.rc

    r122 r129  
    1717BITMAP IDB_FIND         "bitmaps\\find.bmp"
    1818BITMAP IDB_FINDAGAIN    "bitmaps\\findagain.bmp"
     19BITMAP IDB_MGLASS       "bitmaps\\mglass.bmp"
    1920
    2021POINTER IDP_HAND        "bitmaps\\hand.ptr"
  • trunk/Lucide/SOURCE/gui/Lucide_res.H

    r122 r129  
    5555#define IDB_FIND        30
    5656#define IDB_FINDAGAIN   31
     57#define IDB_MGLASS              32
    5758
    5859#define IDM_MAINMENU    100
  • trunk/Lucide/SOURCE/gui/lucide.cpp

    r122 r129  
    159159    WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_FITWIDTH), (MPARAM)scalable );
    160160    WinEnableMenuItem( hWndMenu, CM_ZOOM_IN_OUT, scalable );
     161    WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_ZOOM_IN_OUT), (MPARAM)scalable );
    161162    WinEnableControl( hToolBar, TBID_ZOOM, scalable );
    162163    BOOL rotable = doc->isRotable( ev );
     
    257258        WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_FITWIDTH), (MPARAM)FALSE );
    258259        WinEnableMenuItem( hWndMenu, CM_ZOOM_IN_OUT, FALSE );
     260        WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_ZOOM_IN_OUT), (MPARAM)FALSE );
    259261        WinEnableControl( hToolBar, TBID_ZOOM, FALSE );
    260262
     
    615617        WinSendMsg( hWndMenu, MM_SETITEMATTR, MPFROM2SHORT( CM_ZOOM_IN_OUT, TRUE ),
    616618                MPFROM2SHORT( MIA_CHECKED, isZoom ? MIA_CHECKED : FALSE ) );
     619        WinSendMsg( hToolBar, TBM_SETCHECK, MPFROMSHORT( CM_ZOOM_IN_OUT ), (MPARAM)isZoom );
    617620        docViewer->setZoomMode( isZoom );
    618621    }
  • trunk/Lucide/SOURCE/gui/messages.cpp

    r127 r129  
    4949const char *TBHINT_FIND          = "TBHINT_FIND";
    5050const char *TBHINT_FINDAGAIN     = "TBHINT_FINDAGAIN";
     51const char *TBHINT_ZOOM_IN_OUT   = "TBHINT_ZOOM_IN_OUT";
    5152// toolbar's page number
    5253const char *TB_PAGENUM           = "TB_PAGENUM";
  • trunk/Lucide/SOURCE/gui/messages.h

    r127 r129  
    5050extern const char *TBHINT_FIND;
    5151extern const char *TBHINT_FINDAGAIN;
     52extern const char *TBHINT_ZOOM_IN_OUT;
    5253// toolbar's page number
    5354extern const char *TB_PAGENUM;
  • trunk/Lucide/SOURCE/gui/toolbar.cpp

    r121 r129  
    348348    WinSendMsg( hToolBar, TBM_ADDBUTTON, (MPARAM)&bs, MPVOID );
    349349
     350    WinSendMsg( hToolBar, TBM_ADDSEPARATOR, MPVOID, MPVOID );
     351
     352    bs.cmd = CM_ZOOM_IN_OUT;
     353    bs.bubbleText = newstrdupL( TBHINT_ZOOM_IN_OUT );
     354    bs.bubbleRes = 0;
     355    bs.bubbleHmod = NULLHANDLE;
     356    bs.pictRes = IDB_MGLASS;
     357    bs.pictHmod = NULLHANDLE;
     358    bs.menuRes = 0;
     359    bs.menuHmod = NULLHANDLE;
     360    bs.checked = FALSE;
     361    bs.enabled = TRUE;
     362    WinSendMsg( hToolBar, TBM_ADDBUTTON, (MPARAM)&bs, MPVOID );
     363
    350364    return hToolBar;
    351365}
Note: See TracChangeset for help on using the changeset viewer.