Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 StaticControlTypesct,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
Send Feedback on this topic to the authors