I have a MDI application and on Windows11 I have Snap enabled. Works fine with one oddity. If I do not have my application's MDI document maximized, when I move over the maximize button, the Snap window appears. I can click and entry and my application Snaps (not the MDI child window). How can I disable this as I only want the application to snap.
I added a handler for WM_NCHITTEST to my MDI child window but if I don't return HTMAXBUTTON, I get no highlighting on the button and it doesn't react to clicks. Spying on the messages the window gets I don't see anything that I might intercept to prevent Snap from showing up. Well not quite. I do see 0x118 right before Snap shows up which apparently is WM_SYSTIMER though I find nothing in WinUser.h for that message. I'm going to try and just eat that message to see what happens. Seems dangerous to just blindly not process it anytime it shows up.