CRect::MoveToY
呼叫此函式將矩形移動至 y 指定絕對的 Y 座標。
void MoveToY(
int y
) throw( );
參數
- y
矩形左上角的絕對的 Y 座標。
範例
CRect rect(0, 0, 100, 100);
rect.MoveToY(10);
// rect is now (0, 10, 100, 110);
ASSERT(rect == CRect(0, 10, 100, 110));
需求
Header: atltypes.h