How do you programmatically resize and move windows with the Windows API?

前端 未结 5 1745
刺人心
刺人心 2020-12-03 04:52

How do you programmatically resize and move windows with Windows API?

The scenario is: I want to vertically tile two windows (80%/20% width proportions).

5条回答
  •  臣服心动
    2020-12-03 05:22

    You're looking for one of SetWindowPos, MoveWindow and AdjustWindowRectEx.

    Can you be more specific about the scenario so that we can recomend the most appropriate API?

提交回复
热议问题