- Timestamp:
- May 10, 2010, 8:01:31 AM (11 years ago)
- Location:
- trunk/Lucide
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/gui/toolbar.cpp
r451 r453 164 164 pOldTbProc = WinSubclassWindow( hToolBar, tbProc ); 165 165 166 // used for different purposes 167 char pgnum[ 32 ]; 168 HPS hps; 169 166 170 AddBtnStruct bs; 167 171 … … 236 240 0,0,0,0, hToolBar, HWND_TOP, TBID_PAGENUM, NULL, NULL ); 237 241 WinSetPresParam( cs.ctrlHandle, PP_FONTNAMESIZE, deffontlen, deffont ); 238 cs.cx = 50; 239 cs.cy = 0; 242 // calculate the width 243 snprintf( pgnum, sizeof( pgnum ), "%d", 99999 ); 244 hps = WinGetPS( cs.ctrlHandle ); 245 cs.cx = getStringPixSize( hps, pgnum ) + 4; 246 WinReleasePS( hps ); 247 248 cs.cy = 2; 240 249 cs.bubbleText = NULL; 241 250 WinSendMsg( hToolBar, TBM_ADDCONTROL, (MPARAM)&cs, MPVOID ); … … 248 257 WinSetPresParam( cs.ctrlHandle, PP_BACKGROUNDCOLORINDEX, sizeof( ULONG ), &syscmenu ); 249 258 char *pgfrm = newstrdupL( TB_PAGENUM ); 250 char pgnum[ 32 ]; 251 snprintf( pgnum, sizeof( pgnum ), pgfrm, 9999 ); 259 snprintf( pgnum, sizeof( pgnum ), pgfrm, 99999 ); 252 260 delete pgfrm; 253 HPShps = WinGetPS( cs.ctrlHandle );254 cs.cx = getStringPixSize( hps, pgnum ) + 4;261 hps = WinGetPS( cs.ctrlHandle ); 262 cs.cx = getStringPixSize( hps, pgnum ); 255 263 WinReleasePS( hps ); 256 264 cs.cy = 0; -
trunk/Lucide/lng/Lucide_de.lng
r451 r453 165 165 # 166 166 AD_ABOUT=ber 167 AD_DESCRIPTION=Plugin-basierter Dokumentbetrachter fr zahlreiche rDateiformate167 AD_DESCRIPTION=Plugin-basierter Dokumentbetrachter fr zahlreiche Dateiformate 168 168 AD_COPYRIGHTS=(c) Eugene Romanenko, Dmitry A. Kuminov (netlabs.org) in Zusammenarbeit mit Serenity Systems International 169 169 AD_OK=~OK
Note: See TracChangeset
for help on using the changeset viewer.