I have a program that I don't want users to be able to minimize.
I have set up a SystemCommand routine to catch SC_MINIMIZE which keeps users from clicking the little button.. (also known as SC_ICON) but it doesn't catch the Windows-M that can also minimize programs.
How do I go about catching that Windows-M..
Here is my current setup:
procedure SysCommand(var Message: TWMSYSCOMMAND); message WM_SYSCOMAND;
procedure TProgram.SysCommand(var Message: TWMSYSCOMMAND);
if Message.CmdType and $FFF0 = SC_MINIMIZE then Message.result:=0
I seem to remember this working for me on my Win98 box.. but now it's not working on my Win2K box..