DynaPDF Manual - Page 126

Previous Page 125   Index   Next Page 127

Function Reference
Page 126 of 818
AddButtonImageEx
Syntax:
SI32 pdfAddButtonImageEx(
const PPDF* IPDF,
// Instance pointer
UI32 BtnHandle,
// Handle of the button which should get the image
TButtonState State,
// Button state
const char* Caption, // Caption to be printed over the image or NULL
void* hBitmap)
// HBITMAP handle of a memory bitmap
The function adds a memory bitmap to a push button in the same ways as AddButtonImage() but
accepts a HBITMAP handle as input image. The usage of the function is described under
AddButtonImage().
Remarks:
The bitmap must not be selected into a device context when the application calls this function. This
function is not thread-safe; it must be synchronized in multi-threaded applications.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
AddButtonImageEx2
Syntax:
LBOOL pdfAddButtonImageEx2(
const PPDF* IPDF,
// Instance pointer
UI32 BtnHandle,
// Handle of the button which should get the image
TButtonState State,
// Button state
const char* Caption, // Caption to be printed over the image or NULL
const void* Buffer,
// Image buffer
UI32 BufSize)
// Buffer size in bytes
The function adds an image to a push button in the same way as AddButtonImage(), but accepts an
image buffer as input. Buffer must contain a valid image buffer. The function supports all image
formats that InsertImageEx() supports.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: AddButtonImage

Next topic: AddContinueText, AddDeviceNProcessColorants


Start Chat