Esempio n. 1
0
        private void SetWindowStyle()
        {
            var       helper         = new WindowInteropHelper(this);
            const int gwlExstyle     = -20;
            const int wsExNoactivate = 0x08000000;

            NativeWin32.SetWindowLong(helper.Handle, gwlExstyle, (IntPtr)(wsExNoactivate | wsExNoactivate));
        }
        private void SetWindowStyle()
        {
            var       hwnd           = new WindowInteropHelper(this).Handle;
            const int gwlExstyle     = (-20);
            const int wsExNoactivate = 0x08000000;
            const int wsExToolWindow = 0x00000080;

            NativeWin32.SetWindowLong(hwnd, gwlExstyle, (IntPtr)(wsExNoactivate | wsExToolWindow));
        }
Esempio n. 3
0
        private void Custdesk_Load(object sender, EventArgs e)
        {
            IntPtr HWND        = this.Handle;
            int    GWL_EXSTYLE = (-20);
            IntPtr t           = (IntPtr)(0x8000000);

            NativeWin32.SetWindowLong(HWND, GWL_EXSTYLE, t);
            uint i = NativeWin32.GetWindowLong(HWND, GWL_EXSTYLE);
            uint b = NativeWin32.GetWindowLong(HWND, -16);

            settingPl.BackColor = Color.FromArgb(180, 44, 62, 80);
            sizeTest();
            clock();
            backChange();
        }