Ryan
Ryan

Reputation: 29

How to get the window state of a C++ console application

I'm writing a console app in C++ but can't seem to find how to figure out the console window state (i.e. normal, minimized, etc.). Any idea on how to do this?

Upvotes: 0

Views: 468

Answers (1)

Cheers and hth. - Alf
Cheers and hth. - Alf

Reputation: 145457

For Windows use GetConsoleWindow to get a handle to the window, then e.g. GetWindowPlacement.

But what on Earth are you planning to use this information for?

Upvotes: 1

Related Questions