Ejemplo n.º 1
0
        public FormScreenSaver(MainForm main)
        {
            InitializeComponent();
            this.main = main;
            main.SetFormScreenSaver(this);

            FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            StartPosition   = FormStartPosition.Manual;
            TopMost         = true;
            ShowInTaskbar   = false;

            pb_screenSaver.BringToFront();

            // 키보드 후킹
            intLLKey = KeyboardHooking.SetHook(KeyboardHooking.hookProc);
            KeyboardHooking.BlockCtrlAltDel();
        }
Ejemplo n.º 2
0
        // 폼 클로즈
        private void FormScreenSaver_FormClosing(object sender, FormClosingEventArgs e)
        {
            // 폼 애니메이션(아래서 위로)
            AnimateWindow(this.Handle, 500,
                          AnimateWindowFlags.AW_VER_NEGATIVE | AnimateWindowFlags.AW_HIDE);

            if (KeyboardHooking.WINDOWSTATUS == KeyboardHooking.SWP_HIDEWINDOW)
            {
                KeyboardHooking.TaskBarShow(); // 작업표시줄 드러냄
            }

            // 키보드 후킹 해제
            KeyboardHooking.UnHookWindowsEx(intLLKey);
            KeyboardHooking.UnBlockCtrlAltDel();

            main.rcvRssi = default(int);

            this.Dispose();
        }
Ejemplo n.º 3
0
 // 폼 액티베이티드
 private void FormScreenSaver_Activated(object sender, EventArgs e)
 {
     KeyboardHooking.TaskBarHide(); // 작업표시줄 숨김
 }