Share via


StaticControlView_t::DrawStaticImage

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

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Statctlview.hpp.

See Also

StaticControlType

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.