Share via


StaticControlView_t::DrawStaticImage (Windows Embedded CE 6.0)

1/6/2010

This method draws an image on a static control. The image can be either a bitmap or an icon.

Syntax

static void DrawStaticImage(
  HWND hwnd,
  enum StaticControlType sct,
  HDC hdc,
  HBRUSH hbrBk,
  HANDLE hImage
);

Parameters

  • hwnd
    [in] Handle to the window control.
  • sct
    [in] StaticControlType value that specifies the type of the static control. The following table shows the possible values.

    Value Description

    sctLeft

    Left-aligned text

    sctCenter

    Center-aligned text

    sctRight

    Right-aligned text

    sctIcon

    Icon

    sctLeftNoWordWrap

    Left-aligned text with no word wrap

    sctBitmap

    Bitmap

    sctCenterImage

    A centered image

  • hdc
    [in] Handle to the device context for the window.
  • hbrBk
    [in] Handle to the background brush to use when drawing the static control.
  • hImage
    [in] Handle to the image that you want to draw. This image must be a bitmap or an icon.

Requirements

Header statctlview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

StaticControlView_t
StaticControlType