Tae-Sung Shin
Tae-Sung Shin

Reputation: 20633

How to programmatically resize a view in MFC?

To my surprise, I can't easily find a solution. I want to set initial size of a view in MFC. How can I do that?

Upvotes: 1

Views: 2741

Answers (1)

Jerry Coffin
Jerry Coffin

Reputation: 490048

You don't size a view, but you can size the view's parent frame window:

GetParentFrame()->MoveWindow(x, y, width, height);

Upvotes: 4

Related Questions