- int y = mWndVertGap + mTitleHeight + mClntVertGap + 1;
- dc.DrawRectangle( 0,0, w, y );
- dc.DrawRectangle( 0,y-1, mWndHorizGap + mClntHorizGap + 1, h - y );
- dc.DrawRectangle( w - ( mWndHorizGap + mClntHorizGap ), y-1,
- mWndHorizGap + mClntHorizGap, h - y );
- dc.DrawRectangle( 0, h - mWndVertGap - mClntVertGap, w, mWndVertGap + mClntVertGap );
+ int y = mWndVertGap + mTitleHeight + mClntVertGap;
+ dc.DrawRectangle( 0,0, w, y ); // Top grey part.
+ dc.DrawRectangle( 0,y-1, mWndHorizGap + mClntHorizGap, h - y ); // Left grey part.
+ dc.DrawRectangle( w - ( mWndHorizGap + mClntHorizGap ), y-1,
+ mWndHorizGap + mClntHorizGap, h - y ); // Right grey part.
+ dc.DrawRectangle( 0, h - mWndVertGap - mClntVertGap, w, mWndVertGap + mClntVertGap ); // Bottom grey part.