Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

PaintTiledBitmap

Paints a bitmap, tiling it if necessary.

C

void WINAPI SftTabs_PaintTiledBitmap(HDC hDC, HBITMAP hBitmap, int xOrg, int yOrg, const LPRECT lpRect);

Parameters

hDC

The device context used to draw the bitmap.

hBitmap

A bitmap handle describing the bitmap to be painted.

xOrg, yOrg

Defines the horizontal (xOrg) and vertical (yOrg) offset to be used to align the bitmap. The value specified must be greater than or equal to 0. If 0 is specified, the bitmap is aligned with coordinates 0/0 of the device context hDC.

lpRect

The area where the bitmap is painted, expressed in coordinates suitable for the device context hDC.

Comments

The PaintTiledBitmap function paints a bitmap, tiling it if necessary.

This function is provided to easily paint a bitmap on a dialog or window background. If the bitmap is smaller than the area to be painted, the bitmap will be tiled.

It is possible to specify a background bitmap for a tab control using the SFTTABS_CONTROL structure members hOutsideBitmap and hInsideBitmap. These bitmaps, particularly the client area portion, are only visible if the tab control is not obscured by other windows. Tab pages will automatically use the defined background color or background bitmap, but tabbed windows will not.

See Also C/C++ API | C++ Classes | Notifications


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.