Corvin
Corvin

Reputation: 990

Is there a way to programmatically set window size to be bigger than display resolution?

I have run into a weird necessity to make a certain window in the system of a really big height, one that is larger than my display's resolution. I have written a simple WinAPI program that sets a window size by calling SetWindowPos and I have encountered that if the height is greater than current display's resolution, then it is simply set to be equal to screen height.

This is obviously some Windows trick and I am wondering if there is a way to override that and set an arbitrary size for the window.

Upvotes: 1

Views: 512

Answers (1)

Hans Passant
Hans Passant

Reputation: 941218

You need to implement a message handler for WM_MINMAXINFO.

Upvotes: 1

Related Questions