Home:ALL Converter>How to trigger maximize/minimize in windows programming

How to trigger maximize/minimize in windows programming

Ask Time:2011-11-26T08:26:48         Author:Nohsib

Json Formatter

For windows programming in C++, how to make active window to either maximize or minimize?

For mouse down events we use something like mi.dwFlags = MOUSEEVENTF_LEFTDOWN and send it to the system using SendInput() function. I assume these are defined in windows.h.

How to achieve the maximize or minimize on these lines?

Author:Nohsib,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/8275393/how-to-trigger-maximize-minimize-in-windows-programming
Michael :

Use the ShowWindow function, with either SW_MAXIMIZE or SW_MINIMIZE.",
2011-11-26T00:32:22
yy