void DrawBox( int up_left_row, int up_left_col, int num_rows, int num_cols ) { MoveCursor( up_left_row, up_left_col) ; UpLeftCorner() ; DrawHorizontal (num_cols - 2) ; UpRightCorner() ; CursorToLeft(1) ; CursorDown(1) ; DrawVertical (num_rows - 2) ; MoveCursor (up_left_row, up_left_col ) ; CursorDown(1) ; DrawVertical( num_rows - 2 ) ; LowerLeftCorner() ; DrawHorizontal( num_cols - 2 ) ; LowerRightCorner() ; }
/////////////////////////////////////////////////////////////////////////////// // Draw void CXScrollBar::Draw() { if (m_bHorizontal) { DrawHorizontal(); } else { DrawVertical(); } }