Geekin' It Real

More than just a living, coding is a lifestyle.

Differences in WM_NCHITTEST with DWM enabled

I was messing around with handling WM_NCHITTEST.  I have the frame extended over the entire client area so I thought it would be useful to translate HTCLIENT to HTCAPTION.  No problem there.

But just for kicks, I decided to also [temporarily] translate HTMINBUTTON, HTMAXBUTTON, and HTCLOSE to HTCAPTION and that's where it got interesting.  With the DWM rendering the non-client area, the minimize, maximize, and close buttons still worked normally.  So I disabled the non-client area rendering on the window and they worked like the caption, as I had intended.

Published 18-09-2007 10:36 by bbenson
Filed Under: ,


No Comments
Anonymous comments are disabled
Powered by Community Server, by Telligent Systems