I'm wondering if there's a good way to prevent any application from Minimizing my Delphi form? I currently have a borderless VCL form and the WindowState is set to wsMaximized. I'd like to keep it in the maximized state permanently. Any advice on how to do this would be most wonderful. Thank you
Override your Form's virtual WndProc()
method and have it discard any WM_SYSCOMMAND
messages whose wParam
contains SC_MINIMIZE
or SC_RESTORE
.