When you need to applyProgramIn full screen display, the injection technology is used, and then the window of the injected program is subclass. The injection technology is not mentioned. Let's take a look at the full-screen source code.
Code
Case Wm_activate:
If (Wa_inactive ! = Loword (wparam ))
{
Sipshowim (sipf_off );
Shfullscreen (hwnd, shfs_hidetaskbar | Shfs_hidestarticon | Shfs_hidesipbutton );
Movewindow (hwnd, 0 , 0 , Width, height, false );
Setforegroundwindow (hwnd) (ulong) hwnd | Zero X 00000001 ));
Showwindow (shfindmenubar (hwnd), sw_hide );;
Return 1 ;
}
Case Wm_windowposchanged:
If (Getforegroundwindow () = Hwnd)
{
Shfullscreen (hwnd, shfs_hidetaskbar | Shfs_hidestarticon | Shfs_hidesipbutton );
Rect RC;
Getwindowrect (hwnd, & RC );
If (RC. Top ! = 0 )
{
Movewindow (hwnd, 0 , 0 , Width, height, false );
}
}
Break ;