Ignore:
Timestamp:
Sep 27, 2006, 5:08:37 PM (15 years ago)
Author:
Eugene Romanenko
Message:

cleanup, small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/settingsDlg.cpp

    r91 r133  
    6464static void setZoomCombo( HWND combo, SHORT cbind, double zoom )
    6565{
    66     if ( cbind != -1 )
    67     {
     66    if ( cbind != -1 ) {
    6867        char buf[ 255 ] = "";
    69         WinSendMsg( combo, LM_QUERYITEMTEXT,
    70                     MPFROM2SHORT( cbind, sizeof( buf ) ), MPFROMP( buf ) );
     68        WinQueryLboxItemText( combo, cbind, buf, sizeof( buf ) );
    7169        WinSetWindowText( combo, buf );
    7270    }
    7371
    74     if ( zoom != 0 )
    75     {
     72    if ( zoom != 0 ) {
    7673        std::string z = str( zoom * 100.0 ) + "%";
    7774        WinSetWindowText( combo, z.c_str() );
     
    106103            std::string spage = getLocalizedString( SD_SINGLE_PAGE );
    107104            std::string cont = getLocalizedString( SD_CONTINUOUS );
    108             WinSendMsg( hLayout, LM_INSERTITEM, MPFROMSHORT(LIT_END),
    109                         MPFROMP( spage.c_str() ) );
    110             WinSendMsg( hLayout, LM_INSERTITEM, MPFROMSHORT(LIT_END),
    111                         MPFROMP( cont.c_str() ) );
     105            WinInsertLboxItem( hLayout, LIT_END, spage.c_str() );
     106            WinInsertLboxItem( hLayout, LIT_END, cont.c_str() );
    112107            if ( _this->settings->layout == SinglePage ) {
    113108                WinSetWindowText( hLayout, spage.c_str() );
Note: See TracChangeset for help on using the changeset viewer.