Looking for some explanation on how going fullscreen mode with HWND window, I found this response Win32: full-screen and hiding taskbar
The chromium response code has this line:
saved_window_info_.maximized = !!::IsZoomed(hwnd_);
from this file https://src.chromium.org/viewvc/chrome/trunk/src/ui/views/win/fullscreen_handler.cc?revision=HEAD&view=markup on line 56
I read:
var bar equal not not of mother method
Is this correct ?
What this "!!::IsZoomed()" means ?
Why not just
saved_window_info_.maximized = CWnd::IsZoomed(hwnd_);
?
The
!!is simply!and!, two negations. Double negation reduces to noop, but it casts the value tobool. So consider that an alternative syntax to(bool). It's advantage is that it:(bool).And the rest is simply
::IsZoomed, i.e. functionIsZoomedfrom top-level namespace.