menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Delegate DrawStateProc - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Delegate DrawStateProc

    This function is an application-defined callback function that renders a complex image for the DrawState function.

    Namespace: Syncfusion.WinForms.Core
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public delegate bool DrawStateProc(IntPtr hdc, IntPtr lData, IntPtr wData, int cx, int cy);
    Parameters
    Type Name Description
    System.IntPtr hdc

    A handle to the Device Context.

    System.IntPtr lData

    Specifies information about the image, which the application passed to DrawState.

    System.IntPtr wData

    This specifies information about the image, which the application passed to DrawState.

    System.Int32 cx

    The image width, in device units, as specified by the call to DrawState.

    System.Int32 cy

    The image height, in device units, as specified by the call to DrawState.

    Returns
    Type Description
    System.Boolean

    If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.

    Constructors

    DrawStateProc(Object, IntPtr)

    Declaration
    public DrawStateProc(object object, IntPtr method)
    Parameters
    Type Name Description
    System.Object object
    System.IntPtr method

    Methods

    BeginInvoke(IntPtr, IntPtr, IntPtr, Int32, Int32, AsyncCallback, Object)

    Declaration
    public virtual IAsyncResult BeginInvoke(IntPtr hdc, IntPtr lData, IntPtr wData, int cx, int cy, AsyncCallback callback, object object)
    Parameters
    Type Name Description
    System.IntPtr hdc
    System.IntPtr lData
    System.IntPtr wData
    System.Int32 cx
    System.Int32 cy
    System.AsyncCallback callback
    System.Object object
    Returns
    Type
    System.IAsyncResult

    EndInvoke(IAsyncResult)

    Declaration
    public virtual bool EndInvoke(IAsyncResult result)
    Parameters
    Type Name Description
    System.IAsyncResult result
    Returns
    Type
    System.Boolean

    Invoke(IntPtr, IntPtr, IntPtr, Int32, Int32)

    Declaration
    public virtual bool Invoke(IntPtr hdc, IntPtr lData, IntPtr wData, int cx, int cy)
    Parameters
    Type Name Description
    System.IntPtr hdc
    System.IntPtr lData
    System.IntPtr wData
    System.Int32 cx
    System.Int32 cy
    Returns
    Type
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved