static bool hSetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, SetWindowPosFlags uFlags) { if (!SetWindowPosHook.ImportHook) { SetWindowPosHook.Uninstall(); } bool Rst = SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags); if (!SetWindowPosHook.ImportHook) { SetWindowPosHook.Install(); } ShowIntro(hWnd); return(Rst); }
static IntPtr hCreateWindowEx(WindowStylesEx dwExStyle, string lpClassName, string lpWindowName, WindowStyles dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, IntPtr hMenu, IntPtr hInstance, IntPtr lpParam) { if (!CreateWindowExWHook.ImportHook) { CreateWindowExWHook.Uninstall(); } IntPtr Result = CreateWindowExW(dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); if (!CreateWindowExWHook.ImportHook) { CreateWindowExWHook.Install(); } ShowIntro(Result); return(Result); }
static bool hMoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint) { if (!MoveWindowHook.ImportHook) { MoveWindowHook.Uninstall(); } bool Rst = MoveWindow(hWnd, X, Y, nWidth, nHeight, bRepaint); if (!MoveWindowHook.ImportHook) { MoveWindowHook.Install(); } ShowIntro(hWnd); return(Rst); }
static bool hShowWindow(IntPtr hWnd, int nCmdShow) { if (!ShowWindowHook.ImportHook) { ShowWindowHook.Uninstall(); } bool Rst = ShowWindow(hWnd, nCmdShow); if (!ShowWindowHook.ImportHook) { ShowWindowHook.Install(); } if (nCmdShow != SW_HIDE) { ShowIntro(hWnd); } return(Rst); }