C# Class Fluent.NativeMethods.CHOOSECOLOR

Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Свойство Type Description
Flags int
hInstance System.IntPtr
hwndOwner System.IntPtr
lCustData System.IntPtr
lStructSize int
lpCustColors System.IntPtr
lpTemplateName System.IntPtr
lpfnHook System.IntPtr
rgbResult int

Property Details

Flags public_oe property

A set of bit flags that you can use to initialize the Color dialog box. When the dialog box returns, it sets these flags to indicate the user's input.
public int Flags
Résultat int

hInstance public_oe property

If the CC_ENABLETEMPLATEHANDLE flag is set in the Flags member, hInstance is a handle to a memory object containing a dialog box template. If the CC_ENABLETEMPLATE flag is set, hInstance is a handle to a module that contains a dialog box template named by the lpTemplateName member. If neither CC_ENABLETEMPLATEHANDLE nor CC_ENABLETEMPLATE is set, this member is ignored.
public IntPtr,System hInstance
Résultat System.IntPtr

hwndOwner public_oe property

A handle to the window that owns the dialog box. This member can be any valid window handle, or it can be NULL if the dialog box has no owner.
public IntPtr,System hwndOwner
Résultat System.IntPtr

lCustData public_oe property

Application-defined data that the system passes to the hook procedure identified by the lpfnHook member. When the system sends the WM_INITDIALOG message to the hook procedure, the message's lParam parameter is a pointer to the CHOOSECOLOR structure specified when the dialog was created. The hook procedure can use this pointer to get the lCustData value.
public IntPtr,System lCustData
Résultat System.IntPtr

lStructSize public_oe property

The length, in bytes, of the structure.
public int lStructSize
Résultat int

lpCustColors public_oe property

A pointer to an array of 16 values that contain red, green, blue (RGB) values for the custom color boxes in the dialog box. If the user modifies these colors, the system updates the array with the new RGB values. To preserve new custom colors between calls to the ChooseColor function, you should allocate static memory for the array. To create a COLORREF color value, use the RGB macro.
public IntPtr,System lpCustColors
Résultat System.IntPtr

lpTemplateName public_oe property

The name of the dialog box template resource in the module identified by the hInstance member. This template is substituted for the standard dialog box template. For numbered dialog box resources, lpTemplateName can be a value returned by the MAKEINTRESOURCE macro. This member is ignored unless the CC_ENABLETEMPLATE flag is set in the Flags member.
public IntPtr,System lpTemplateName
Résultat System.IntPtr

lpfnHook public_oe property

A pointer to a CCHookProc hook procedure that can process messages intended for the dialog box. This member is ignored unless the CC_ENABLEHOOK flag is set in the Flags member.
public IntPtr,System lpfnHook
Résultat System.IntPtr

rgbResult public_oe property

If the CC_RGBINIT flag is set, rgbResult specifies the color initially selected when the dialog box is created. If the specified color value is not among the available colors, the system selects the nearest solid color available. If rgbResult is zero or CC_RGBINIT is not set, the initially selected color is black. If the user clicks the OK button, rgbResult specifies the user's color selection. To create a COLORREF color value, use the RGB macro.
public int rgbResult
Résultat int