Am 01.10.2014 um 16:28 schrieb Dmitry Timoshkov dmitry@baikal.ru:
My understanding is that not the absence of minimize/maximize button prevents an ability to programmatically minimize/maximize a window, but an item in the system menu. I'd suggest to also add a test for sending WM_SYSCOMMAND/SC_MINIMIZE/SC_MAXIMIZE behaviour.
I did some informal testing on a WS_SYSMENU | WS_POPUP window (no WS_MINIMIZEBOX), and WM_SYSCOMMAND(SC_MINIMIZE, 0) minimizes the window. A right click on the window in the task bar does not offer a minimize item. Windows adds this if I set WS_MINIMIZEBOX.