This feature is generally rare, but some people often ask. Its method is simpler, mainly by reloading the onsysCommand function.
Message WM_SYSCOMMAND is mapped to the onsysCommand function.
Overload minimization is as follows:
OnsysCommand (Uint Nid, Lparam Lparam)
{
IF (NID == SC_MINIMIZE) {// INSERT YOUR CODE
Return;} cdialog :: oversysCommand (NID, LPARAM);
}