當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.CreateParams類代碼示例

本文整理匯總了C#中System.Windows.Forms.CreateParams的典型用法代碼示例。如果您正苦於以下問題:C# CreateParams類的具體用法?C# CreateParams怎麽用?C# CreateParams使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CreateParams類屬於System.Windows.Forms命名空間,在下文中一共展示了CreateParams類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: DeviceChangeNotificationWindow

		public DeviceChangeNotificationWindow()
		{
			CreateParams Params = new CreateParams();
			Params.ExStyle = WS_EX_TOOLWINDOW;
			Params.Style = WS_POPUP;
			CreateHandle(Params);
		}
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:7,代碼來源:DeviceChangeNotificationWindow.cs

示例2: MessageWindow

 /// <summary>
 /// Create new message window thread.
 /// 新しいメッセージウィンドウを作る
 /// </summary>
 public MessageWindow()
 {
     MessageHandlers = new Dictionary<int, MessageHandler>();
     System.Windows.Forms.CreateParams cp = new System.Windows.Forms.CreateParams();
     cp.ClassName = "Message";
     CreateHandle(cp);
 }
開發者ID:ttsuki,項目名稱:ttsuki,代碼行數:11,代碼來源:MessageWindow.cs

示例3: DeviceWatcherWindow

        public DeviceWatcherWindow(string Caption)
        {
            CreateParams cp = new CreateParams();
            cp.Caption = Caption;

            this.CreateHandle(cp);
        }
開發者ID:mono,項目名稱:ipod-sharp,代碼行數:7,代碼來源:DeviceWatcherWindow.cs

示例4: ShellHook

        public ShellHook(IntPtr hWnd)
        {
            CreateParams cp = new CreateParams();

            /*// Fill in the CreateParams details.
            cp.Caption = "Click here";
            cp.ClassName = "Button";

            // Set the position on the form
            cp.X = 100;
            cp.Y = 100;
            cp.Height = 100;
            cp.Width = 100;

            // Specify the form as the parent.
            cp.Parent = User32.GetDesktopWindow();

            // Create as a child of the specified parent
            cp.Style = (int) WindowStyle.WS_POPUP;// WS_CHILD | WS_VISIBLE;
            cp.ExStyle = (int)WindowStyleEx.WS_EX_TOOLWINDOW;*/

            // Create the actual window
            this.CreateHandle(cp);

            // User32.SetShellWindow(hWnd);
            User32.SetTaskmanWindow(hWnd);
            if (User32.RegisterShellHookWindow(this.Handle))
            {
                WM_ShellHook = User32.RegisterWindowMessage("SHELLHOOK");
            #if DEBUG
                Console.WriteLine("WM_ShellHook: " + WM_ShellHook.ToString());
            #endif
            }
        }
開發者ID:lemkepf,項目名稱:ClipHub,代碼行數:34,代碼來源:ShellHook.cs

示例5: Everything

        public Everything()
        {
            var cp = new CreateParams
            {
                Caption = "PSEverything IPC Window",
                ClassName = "Static",
                ClassStyle = 0,
                Style = 0,
                ExStyle = 0,
                X = 0,
                Y = 0,
                Height = 1,
                Width = 1,
                Parent = IntPtr.Zero,
                Param = null
            };

            CreateHandle(cp);

            var cs = new ChangeFilterStruct
            {
                Size = (uint) Marshal.SizeOf(typeof (ChangeFilterStruct))
            };

            if (!Win32.ChangeWindowMessageFilterEx(Handle, WindowMessage.CopyData, ChangeWindowMessageFilterExAction.Allow, ref cs))
            {
                throw new Win32Exception(Marshal.GetLastWin32Error(), "Error allowing WM_COPYDATA mesasage from lower privilege processes.");
            }
        }
開發者ID:austinwagner,項目名稱:PSEverything,代碼行數:29,代碼來源:Everything.cs

示例6: StartListening

 internal void StartListening()
 {
     ApplicationContext ctx = new ApplicationContext();
     CreateParams cp = new CreateParams();
     cp.Parent = (IntPtr)(-3); //Without this, WndProc will also intercept messages delivered to regular windows forms
     this.CreateHandle(cp);
     Application.Run(ctx);
 }
開發者ID:hpavlov,項目名稱:occurec,代碼行數:8,代碼來源:ObservatoryController.cs

示例7: Create

			internal void Create() {
				CreateParams _CP = new CreateParams();

				if (System.Environment.OSVersion.Version.Major >= 5)
					_CP.Parent = (IntPtr)HWND_MESSAGE;

				CreateHandle(_CP);
			}
開發者ID:divyang4481,項目名稱:lextudio,代碼行數:8,代碼來源:ClipboardWatcherFeature.cs

示例8: ReceiverWindow

    /// <summary>
    /// Create a Windows Message receiving window object.
    /// </summary>
    public ReceiverWindow()
    {
      CreateParams createParams = new CreateParams();
      createParams.ExStyle = 0x80;
      createParams.Style = unchecked((int) 0x80000000);

      base.CreateHandle(createParams);
    }
開發者ID:astalavister,項目名稱:IR-Server-Suite,代碼行數:11,代碼來源:ReceiverWindow.cs

示例9: CallbackWindow

		internal CallbackWindow(CallbackWindowControlChangeHandler ptrMixerControlChange, CallbackWindowLineChangeHandler ptrMixerLineChange)
		{
			CreateParams cp = new CreateParams();

			mPtrMixerControlChange	= ptrMixerControlChange;
			mPtrMixerLineChange		= ptrMixerLineChange;

			this.CreateHandle(cp);
		}
開發者ID:djarik,項目名稱:signlator,代碼行數:9,代碼來源:CallbackWindow.cs

示例10: Start

    public void Start()
    {
      CreateParams createParams = new CreateParams();

      createParams.ExStyle = 0x08000000;
      createParams.Style = unchecked((int)0x80000000);

      CreateHandle(createParams);
    }
開發者ID:arangas,項目名稱:MediaPortal-1,代碼行數:9,代碼來源:MixerEventListener.cs

示例11: TrackingToolTip

        /// <summary>
        /// Initialize tracking tooltip control
        /// </summary>
        public TrackingToolTip()
        {
            // create params for a tracking tooltip window
            CreateParams cp = new CreateParams();
            cp.ExStyle = (int)WS.EX_TOPMOST;
            cp.ClassName = WINDOW_CLASS.TOOLTIPS;
            cp.Style = unchecked((int)(WS.POPUP | TTS.ALWAYSTIP | TTS.NOPREFIX));

            // create the winow
            CreateHandle(cp);
        }
開發者ID:gmilazzoitag,項目名稱:OpenLiveWriter,代碼行數:14,代碼來源:TrackingToolTip.cs

示例12: SettingsDlg

        public SettingsDlg(IntPtr parent)
        {
            CreateParams cp = new CreateParams();
            cp.ClassName = "Button";
            cp.Style = WS_VISIBLE | WS_CHILD;
            cp.Parent = parent;
            cp.Width = 300;
            cp.Height = 300;
            cp.X = 100;
            cp.Y = 100;

            this.CreateHandle(cp);
        }
開發者ID:alexryassky,項目名稱:actionlogger,代碼行數:13,代碼來源:SettingsDialog.cs

示例13: DevNotifyNativeWindow

        internal DevNotifyNativeWindow(OnHandleChangeDelegate delHandleChanged, OnDeviceChangeDelegate delDeviceChange)
        {
            mDelHandleChanged = delHandleChanged;
            mDelDeviceChange = delDeviceChange;

            CreateParams cp = new CreateParams();
            cp.Caption = WINDOW_CAPTION;
            cp.X = -100;
            cp.Y = -100;
            cp.Width = 50;
            cp.Height = 50;
            CreateHandle(cp);
        }
開發者ID:GSharp-Project,項目名稱:GSharp,代碼行數:13,代碼來源:DevNotifyNativeWindow.cs

示例14: NativeUpDown

 public NativeUpDown(UpDown OwnerControl) {
     CreateParams cp = new CreateParams();
     cp.ClassName = "msctls_updown32";
     cp.X = cp.Y = 0;
     cp.Width = OwnerControl.Width;
     cp.Height = OwnerControl.Height;
     cp.Parent = OwnerControl.Handle;
     cp.Style = 0x50000040;
     this.CreateHandle(cp);
     this.fTrackMouseEvent = true;
     this.TME = new QTTabBarLib.Interop.TRACKMOUSEEVENT();
     this.TME.cbSize = Marshal.SizeOf(this.TME);
     this.TME.dwFlags = 2;
     this.TME.hwndTrack = base.Handle;
 }
開發者ID:KnowNo,項目名稱:test-code-backup,代碼行數:15,代碼來源:UpDown.cs

示例15: XDListener

        /// <summary>
        /// The non-obsolete constructor used internally for creating new instances of XDListener.
        /// </summary>
        /// <param name="nonObsolete"></param>
        internal XDListener(bool nonObsolete)
        {
            // create a top-level native window
            CreateParams p = new CreateParams();
            p.Width = 0;
            p.Height = 0;
            p.X = 0;
            p.Y = 0;
            p.Caption = string.Concat("TheCodeKing.Net.XDServices.",Guid.NewGuid().ToString());
            p.Parent = IntPtr.Zero;
            base.CreateHandle(p);

            this.networkRelay = new NetworkRelayListener(XDBroadcast.CreateBroadcast(XDTransportMode.WindowsMessaging), 
                                                            XDListener.CreateListener(XDTransportMode.MailSlot));
        }
開發者ID:stacyjeptha,項目名稱:EntitySpaces-Architecture,代碼行數:19,代碼來源:XDListener.cs


注:本文中的System.Windows.Forms.CreateParams類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。