I have two forms. Sometimes form2 is set to be the child of form1 using SetParent API
WM_SysCommand triggers (by subclassing) when any Close,Maximize or Minimze is clicked whenever form2 is NOT a child of form1, however when it is a child, WM_SYSCommand does not trigger.
However, using Spy++ I cannot find any messages reporting to the parent (form1) that indicates clicking on form2's Close, max,min buttons. I can see SysCommand msgs from form1 when clicking on its own buttons.
Where are form2's msgs going when its the child of form1?
thanks,
WM_SysCommand triggers (by subclassing) when any Close,Maximize or Minimze is clicked whenever form2 is NOT a child of form1, however when it is a child, WM_SYSCommand does not trigger.
However, using Spy++ I cannot find any messages reporting to the parent (form1) that indicates clicking on form2's Close, max,min buttons. I can see SysCommand msgs from form1 when clicking on its own buttons.
Where are form2's msgs going when its the child of form1?
thanks,