/* * toolBarHelp - update tool bar hint text */ static void toolBarHelp( HWND hwnd, ctl_id id, bool isdown ) { ss *p; hwnd = hwnd; SetMenuHelpString( NULL ); if( isdown ) { p = toolBarHead; while( p != NULL ) { tool_item *item = (tool_item *)p; if( item->id == id ) { SetMenuHelpString( item->help ); break; } p = p->next; } } UpdateStatusWindow(); } /* toolBarHelp */
/* * RefreshFontbar - turn font bar on/off to reflect current editflag state */ void RefreshFontbar( void ) { static DLGPROC proc; if( EditFlags.Fontbar ) { if( hFontbar != NULL ) { return; } proc = (DLGPROC) MakeProcInstance( (FARPROC) FtDlgProc, InstanceHandle ); hFontbar = CreateDialog( InstanceHandle, "FTBAR", Root, proc ); SetMenuHelpString( "Ctrl affects all syntax elements" ); } else { if( hFontbar == NULL ) { return; } SendMessage( hFontbar, WM_CLOSE, 0, 0L ); FreeProcInstance( (FARPROC) proc ); SetMenuHelpString( "" ); } UpdateStatusWindow(); } /* RefreshFontbar */