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

How do I make a STATIC type window not ignore the mouse?

$
0
0
I used CreateWindowEX, and for the Class Parameter, I put in "STATIC". This creates a window with nothing in it, but the label containing the text for that window ("Test Window" in this case). Now the problem is that the STATIC window, behaves as if it's not even there. If my main VB6 form is below it because this new window is attached to my main window as its child (forcing it to always be above the main form window), my clicks go right "through" the this upper STATIC window, and will click a button on my form below! I thought a STATIC window was basically a regular form type window with no controls placed on it or code typed in it, where clicks would be captured by it, but have no effect on it. However they are not captured by it, but go right on through it to the window below (in this case, my program's main form window). Why is this happening? How do I get my created STATIC window to capture any mouse clicks that happen over it?

Viewing all articles
Browse latest Browse all 168

Trending Articles



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