CPF.Windows
Specifies a Windows bitmap format. This field is read-only.
Specifies the Windows enhanced metafile format. This
field is read-only.
Specifies the Windows metafile format, which Win Forms
does not directly use. This
field is read-only.
Specifies the Windows symbolic link format, which Win
Forms does not directly use. This
field is read-only.
Specifies the Windows data interchange format, which Win
Forms does not directly use. This
field is read-only.
Specifies the Tagged Image File Format (TIFF), which Win
Forms does not directly use. This
field is read-only.
Specifies the standard Windows original equipment
manufacturer (OEM) text format. This field is read-only.
Specifies the Windows palette format. This
field is read-only.
Specifies the Windows pen data format, which consists of
pen strokes for handwriting software; Win Forms does not use this format. This
field is read-only.
Specifies the Resource Interchange File Format (RIFF)
audio format, which Win Forms does not directly use. This field is read-only.
Specifies the wave audio format, which Win Forms does not
directly use. This field is read-only.
Specifies the Windows file drop format, which Win Forms
does not directly use. This
field is read-only.
Specifies the Windows culture format, which Win Forms does
not directly use. This field is read-only.
Specifies text consisting of HTML data. This
field is read-only.
Specifies text consisting of Rich Text Format (RTF) data. This
field is read-only.
Specifies a comma-separated value (CSV) format, which is a
common interchange format used by spreadsheets. This format is not used directly
by Win Forms. This
field is read-only.
Name of the window class to subclass. The default value for this field
is null, indicating that the window is not a subclass of an existing
window class. To subclass an existing window class, store the window
class name in this field. For example, to subclass the standard edit
control, set this field to "EDIT".
The initial caption your control will have.
Window style bits. This must be a combination of WS_XXX style flags and
other control-specific style flags.
Extended window style bits. This must be a combination of WS_EX_XXX
style flags.
Class style bits. This must be a combination of CS_XXX style flags. This
field is ignored if the className field is not null.
The left portion of the initial proposed location.
The top portion of the initial proposed location.
The initially proposed width.
The initially proposed height.
The controls parent.
Any extra information that the underlying handle might want.
[To be supplied.]
Pointer to the name.
Size of the stream in bytes.
The stream mode.
Supported locking modes.
'0' means does not support lock modes.
Only for IStorage objects
Only valid for IStorage objects.
Caller is responsible for freeing the name memory.
Callee is repsonsible for allocating the name memory.
Read only, and each change to a storage or stream element is written as it occurs.
Fails if the given storage object already exists.
[STGM_DIRECT] [STGM_READ] [STGM_FAILIFTHERE] [STGM_SHARE_DENY_WRITE]
Specifies the window handle of the message.
Specifies the ID number for the message.
Specifies the of the message.
Specifies the of the message.
Specifies the return value of the message.
Creates a new object.
Initializes a new instance of the class.
[This event is raised on the NIN_BALLOONUSERCLICK message.]
[This event is raised on the NIN_BALLOONTIMEOUT message.]
[This event is raised on the NIN_BALLOONSHOW or NIN_BALLOONHIDE message.]
Gets or sets the BalloonTip icon displayed when
the mouse hovers over a system tray icon.
Gets or sets the BalloonTip title displayed when
the mouse hovers over a system tray icon.
Gets or sets context menu
for the tray icon.
Gets or sets the current
icon.
Gets or sets the ToolTip text displayed when
the mouse hovers over a system tray icon.
Gets or sets a value indicating whether the icon is visible in the Windows System Tray.
Occurs when the user clicks the icon in the system tray.
Occurs when the user double-clicks the icon in the system tray.
Occurs when the
user presses a mouse button while the pointer is over the icon in the system tray.
Occurs
when the user moves the mouse pointer over the icon in the system tray.
Occurs when the
user releases the mouse button while the pointer
is over the icon in the system tray.
Disposes of the resources (other than memory) used by the
.
This method raised the BalloonTipClosed event.
This method raised the BalloonTipShown event.
This method actually raises the Click event. Inheriting classes should
override this if they wish to be notified of a Click event. (This is far
preferable to actually adding an event handler.) They should not,
however, forget to call base.onClick(e); before exiting, to ensure that
other recipients do actually get the event.
Inheriting classes should override this method to handle this event.
Call base.onDoubleClick to send this event to any registered event listeners.
Inheriting classes should override this method to handle this event.
Call base.OnMouseClick to send this event to any registered event listeners.
Inheriting classes should override this method to handle this event.
Call base.OnMouseDoubleClick to send this event to any registered event listeners.
Raises the event.
Inheriting classes should override this method to handle this event.
Call base.onMouseDown to send this event to any registered event listeners.
Inheriting classes should override this method to handle this event.
Call base.onMouseMove to send this event to any registered event listeners.
Inheriting classes should override this method to handle this event.
Call base.onMouseUp to send this event to any registered event listeners.
Displays a balloon tooltip in the taskbar.
The system enforces minimum and maximum timeout values. Timeout
values that are too large are set to the maximum value and values
that are too small default to the minimum value. The operating system's
default minimum and maximum timeout values are 10 seconds and 30 seconds,
respectively.
No more than one balloon ToolTip at at time is displayed for the taskbar.
If an application attempts to display a ToolTip when one is already being displayed,
the ToolTip will not appear until the existing balloon ToolTip has been visible for at
least the system minimum timeout value. For example, a balloon ToolTip with timeout
set to 30 seconds has been visible for seven seconds when another application attempts
to display a balloon ToolTip. If the system minimum timeout is ten seconds, the first
ToolTip displays for an additional three seconds before being replaced by the second ToolTip.
Displays a balloon tooltip in the taskbar with the specified title,
text, and icon for a duration of the specified timeout value.
The system enforces minimum and maximum timeout values. Timeout
values that are too large are set to the maximum value and values
that are too small default to the minimum value. The operating system's
default minimum and maximum timeout values are 10 seconds and 30 seconds,
respectively.
No more than one balloon ToolTip at at time is displayed for the taskbar.
If an application attempts to display a ToolTip when one is already being displayed,
the ToolTip will not appear until the existing balloon ToolTip has been visible for at
least the system minimum timeout value. For example, a balloon ToolTip with timeout
set to 30 seconds has been visible for seven seconds when another application attempts
to display a balloon ToolTip. If the system minimum timeout is ten seconds, the first
ToolTip displays for an additional three seconds before being replaced by the second ToolTip.
Shows the context menu for the tray icon.
Updates the icon in the system tray.
Handles the mouse-down event
Handles the mouse-move event
Handles the mouse-up event
Defines a placeholder window that the NotifyIcon is attached to.
Create a new NotifyIcon, and bind the window to the NotifyIcon component.
Pass messages on to the NotifyIcon object's wndproc handler.
No Icon.
A Information Icon.
A Warning Icon.
A Error Icon.
Called by a data consumer to obtain data from a source data object.
The GetData method renders the data described in the specified FORMATETC
structure and transfers it through the specified STGMEDIUM structure.
The caller then assumes responsibility for releasing the STGMEDIUM structure.
Called by a data consumer to obtain data from a source data object.
This method differs from the GetData method in that the caller must
allocate and free the specified storage medium.
Determines whether the data object is capable of rendering the data
described in the FORMATETC structure. Objects attempting a paste or
drop operation can call this method before calling IDataObject::GetData
to get an indication of whether the operation may be successful.
Provides a standard FORMATETC structure that is logically equivalent to one that is more
complex. You use this method to determine whether two different
FORMATETC structures would return the same data, removing the need
for duplicate rendering.
Called by an object containing a data source to transfer data to
the object that implements this method.
Creates an object for enumerating the FORMATETC structures for a
data object. These structures are used in calls to IDataObject::GetData
or IDataObject::SetData.
Called by an object supporting an advise sink to create a connection between
a data object and the advise sink. This enables the advise sink to be
notified of changes in the data of the object.
Destroys a notification connection that had been previously set up.
Creates an object that can be used to enumerate the current advisory connections.
Retrieves the next celt items in the enumeration sequence. If there are
fewer than the requested number of elements left in the sequence, it
retrieves the remaining elements. The number of elements actually
retrieved is returned through pceltFetched (unless the caller passed
in NULL for that parameter).
Skips over the next specified number of elements in the enumeration sequence.
Resets the enumeration sequence to the beginning.
Creates another enumerator that contains the same enumeration state as
the current one. Using this function, a client can record a particular
point in the enumeration sequence and then return to that point at a
later time. The new enumerator supports the same interface as the original one.
注册debug消息,委托要自己保存,不要直接用临时的Lambda
Retrieves the bits of the specified compatible bitmap and copies them into a buffer as a DIB using the specified format.
A handle to the device context.
A handle to the bitmap. This must be a compatible bitmap (DDB).
The first scan line to retrieve.
The number of scan lines to retrieve.
A pointer to a buffer to receive the bitmap data. If this parameter is , the function passes the dimensions and format of the bitmap to the structure pointed to by the parameter.
A pointer to a structure that specifies the desired format for the DIB data.
The format of the bmiColors member of the structure. It must be one of the following values.
If the lpvBits parameter is non-NULL and the function succeeds, the return value is the number of scan lines copied from the bitmap.
If the lpvBits parameter is NULL and GetDIBits successfully fills the structure, the return value is nonzero.
If the function fails, the return value is zero.
This function can return the following value: ERROR_INVALID_PARAMETER (87 (0×57))
不使用
数据长度
数据地址
Text format. Each line ends with a carriage return/linefeed (CR-LF) combination. A null character signals the end of the data. Use this format for ANSI text.
A handle to a bitmap
A memory object containing a BITMAPINFO structure followed by the bitmap bits.
Unicode text format. Each line ends with a carriage return/linefeed (CR-LF) combination. A null character signals the end of the data.
A handle to type HDROP that identifies a list of files.
The length of the structure, in bytes. Before calling the GetWindowPlacement or SetWindowPlacement functions, set this member to sizeof(WINDOWPLACEMENT).
GetWindowPlacement and SetWindowPlacement fail if this member is not set correctly.
Specifies flags that control the position of the minimized window and the method by which the window is restored.
The current show state of the window.
The coordinates of the window's upper-left corner when the window is minimized.
The coordinates of the window's upper-left corner when the window is maximized.
The window's coordinates when the window is in the restored position.
Gets the default (empty) value.
Movement has occurred. Cannot be combined with TOUCHEVENTF_DOWN.
The corresponding touch point was established through a new contact. Cannot be combined with TOUCHEVENTF_MOVE or TOUCHEVENTF_UP.
A touch point was removed.
A touch point is in range. This flag is used to enable touch hover support on compatible hardware. Applications that do not want support for hover can ignore this flag.
Indicates that this TOUCHINPUT structure corresponds to a primary contact point. See the following text for more information on primary touch points.
When received using GetTouchInputInfo, this input was not coalesced.
The touch event came from the user's palm.
Stat flags for .
Stat includes the name.
Stat doesn't include the name.
为了防止多屏幕拖动的时候抖动
处理WindowProc
RenderToBitmap=true,图像渲染到这个位图里,界面将不显示
窗体位置和尺寸,屏幕像素
初始化Windows平台
net5以上才有用的,为了兼容aot,自动注册COM的。 如果你要使用Winform控件出现com问题,你可以把这个改成false