本文整理汇总了C#中System.Windows.Forms.CreateParams类的典型用法代码示例。如果您正苦于以下问题:C# CreateParams类的具体用法?C# CreateParams怎么用?C# CreateParams使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CreateParams类属于System.Windows.Forms命名空间,在下文中一共展示了CreateParams类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: AddShadowToWindow
/// <summary>
/// Adds a shadow to the create params if it is supported by the operating system.
/// </summary>
public static void AddShadowToWindow(CreateParams createParams) {
if (shadowStatus == 0) {
// Test OS version
shadowStatus = -1; // shadow not supported
if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
Version ver = Environment.OSVersion.Version;
if (ver.Major > 5 || ver.Major == 5 && ver.Minor >= 1) {
shadowStatus = 1;
}
}
}
if (shadowStatus == 1) {
createParams.ClassStyle |= 0x00020000; // set CS_DROPSHADOW
}
}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:18,代码来源:AbstractCompletionWindow.cs
示例17: 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;
CreateHandle(cp);
fTrackMouseEvent = true;
TME = new TRACKMOUSEEVENT();
TME.cbSize = Marshal.SizeOf(TME);
TME.dwFlags = 2;
TME.hwndTrack = Handle;
}
开发者ID:KnowNo,项目名称:test-code-backup,代码行数:15,代码来源:UpDown.cs
示例18: ShowDesktop
private ShowDesktop() {
// create a reference window to detect show desktop
referenceWindow = new NativeWindow();
CreateParams cp = new CreateParams();
cp.ExStyle = GadgetWindow.WS_EX_TOOLWINDOW;
cp.Caption = referenceWindowCaption;
referenceWindow.CreateHandle(cp);
NativeMethods.SetWindowPos(referenceWindow.Handle,
GadgetWindow.HWND_BOTTOM, 0, 0, 0, 0, GadgetWindow.SWP_NOMOVE |
GadgetWindow.SWP_NOSIZE | GadgetWindow.SWP_NOACTIVATE |
GadgetWindow.SWP_NOSENDCHANGING);
// start a repeated timer to detect "Show Desktop" events
timer = new System.Threading.Timer(OnTimer, null,
System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite);
}
开发者ID:jwolfm98,项目名称:HardwareMonitor,代码行数:16,代码来源:ShowDesktop.cs
示例19: CreateParamsInternal
internal void CreateParamsInternal(IntPtr hWnd, Rectangle rect)
{
IntPtr parent = Win32.NativeMethods.GetParent(hWnd);
int num = 0x5400000d;
int num2 = 0x88;
this._createParams = new System.Windows.Forms.CreateParams();
this._createParams.Parent = parent;
this._createParams.ClassName = "STATIC";
this._createParams.Caption = null;
this._createParams.Style = num;
this._createParams.ExStyle = num2;
this._createParams.X = rect.X;
this._createParams.Y = rect.Y;
this._createParams.Width = rect.Width;
this._createParams.Height = rect.Height;
}
开发者ID:jxdong1013,项目名称:archivems,代码行数:16,代码来源:MaskControlBase.cs
示例20: XDWinMsgListener
internal XDWinMsgListener(ISerializer serializer)
{
serializer.Requires("serializer").IsNotNull();
this.serializer = serializer;
var p = new CreateParams
{
Width = 0,
Height = 0,
X = 0,
Y = 0,
Caption = string.Concat("TheCodeKing.Net.XDServices.", Guid.NewGuid().ToString()),
Parent = IntPtr.Zero
};
CreateHandle(p);
}
开发者ID:TheCodeKing,项目名称:XDMessaging.Net,代码行数:18,代码来源:XDWinMsgListener.cs
注:本文中的System.Windows.Forms.CreateParams类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论