Home > Software engineering >  CMainFrame: : HTCLOSE in OnNcHitTest function return value discussion
CMainFrame: : HTCLOSE in OnNcHitTest function return value discussion

Time:09-16

Under Windows, use VS2012 development, overloading CMainFrame: : OnNcHitTest function, direct return HTCLOSE, found no effect,

Tests show that when using Areo theme, the system will not appear in the default return value HTCLOSE, under the Windows 7 Basic theme, when across the CLOSE button appears HTCLOSE return values, and the return value is only have drawn CLOSE button,

Program will not according to HTCLOSE return value, close the window,



Excuse me, other friends, now this is indeed the case?

CodePudding user response:

Windows 7 x64 sp1 classic theme, return HTCLOSE don't draw, don't close the window, HTMAXBUTTON and HTMINBUTTON is normal,
  • Related