Is this the essential code? But how is the background code of the smaller window differentiated from that of the larger window?
Code: Select all
fbgfxHwnd = GetConsoleWindow()
ws = GetWindowLongPtr( fbgfxHwnd, GWL_STYLE )
SetWindowLongPtr( fbgfxHwnd, GWL_STYLE, ws xor (WS_MAXIMIZEBOX or WS_MINIMIZEBOX) )