I don't know how properly write program which will minimize instead close, and which do not prevent system from close (when I want restart system or shutdown). For now when my program is showed (window is visible for user) and I click close system, then closing system is break by my program and my program is minimized. I cant find out how to handle this special case when program should close instead minimize.... Please help me.
Bookmarks