Ignore:
Timestamp:
Aug 7, 2006, 4:34:19 PM (15 years ago)
Author:
Eugene Romanenko
Message:

font substitution fixes, fixed missed 'Page' in NLS-file

File:
1 edited

Legend:

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

    r91 r94  
    4343#include "luutils.h"
    4444#include "tb_spl.h"
     45#include "messages.h"
    4546
    4647
     
    167168void IndexWindow::loadPagesList()
    168169{
     170    char *msgpage = newstrdupL( MSGS_PAGE );
    169171    CNRINFO ci;
    170172    ci.cb = sizeof( CNRINFO );
     
    174176    WinSendMsg( hWndIndex, CM_SETCNRINFO, MPFROMP( &ci ), MPFROMLONG( CMA_FLWINDOWATTR ) );
    175177
    176     char pgbuf[ 20 ];
     178    char pgbuf[ 64 ];
    177179    for ( int i = 0; i < totalpages; i++ )
    178180    {
    179         snprintf( pgbuf, sizeof(pgbuf), "Page %d", i + 1 );
     181        snprintf( pgbuf, sizeof(pgbuf), "%s %d", msgpage, i + 1 );
    180182        RECORDINSERT ri;
    181183        TreeRecord *pr = (TreeRecord *)WinSendMsg( hWndIndex, CM_ALLOCRECORD,
     
    198200        WinSendMsg( hWndIndex, CM_INSERTRECORD, MPFROMP( pr ), MPFROMP( &ri ) );
    199201    }
     202    delete msgpage;
    200203}
    201204
     
    225228        return true;
    226229    }
    227        
     230
    228231    SHORT atr = ( parent == NULL ) ? CMA_FIRST : CMA_FIRSTCHILD;
    229232    TreeRecord *pr = (TreeRecord *)WinSendMsg( hWndIndex, CM_QUERYRECORD,
Note: See TracChangeset for help on using the changeset viewer.