Quantcast
Channel: VBForums - API
Viewing all articles
Browse latest Browse all 168

SysCommand

$
0
0
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,

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>