static void msgString( int line_no, char *str ) { int height; RECT rect; HDC hdc; if( !AllowDisplay || BAD_ID( MessageWindow ) ) { return; } GetClientRect( MessageWindow, &rect ); height = FontHeight( WIN_FONT( &MessageBar ) ); rect.top += (line_no - 1) * height; rect.bottom = rect.top + height; hdc = TextGetDC( MessageWindow, WIN_STYLE( &MessageBar ) ); FillRect( hdc, &rect, ColorBrush( WIN_BACKCOLOR( &MessageBar ) ) ); TextReleaseDC( MessageWindow, hdc ); WriteString( MessageWindow, 0, rect.top, WIN_STYLE( &MessageBar ), str ); }
/* * drawRepeatString - draw the current repeat string */ static void drawRepeatString( void ) { int height; RECT rect; HDC hdc; if( !AllowDisplay || BAD_ID( repeat_window_id ) ) { return; } GetClientRect( repeat_window_id, &rect ); height = FontHeight( WIN_TEXT_FONT( &RepeatCountWindow ) ); rect.bottom = rect.top + height; hdc = TextGetDC( repeat_window_id, WIN_TEXT_STYLE( &RepeatCountWindow ) ); FillRect( hdc, &rect, ColorBrush( WIN_TEXT_BACKCOLOR( &RepeatCountWindow ) ) ); TextReleaseDC( repeat_window_id, hdc ); WriteString( repeat_window_id, 0, rect.top, WIN_TEXT_STYLE( &RepeatCountWindow ), repString ); } /* drawRepeatString */