ImageGear for C and C++ on Windows v19.9 - Updated
IG_ARTX_button_text_get
API Reference Guide > ArtX Component API Reference > ArtX Component Objects Reference > HIG_ARTX_BUTTON > IG_ARTX_button_text_get

This function queries button text string.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_ARTX_button_text_get(
        HIG_ARTX_BUTTON hMark,
        LPSTR lpszTextBuffer,
        LPAT_UINT pnDataSize
);

Arguments:

Name Type Description
hMark HIG_ARTX_BUTTON Annotation handle.
lpszTextBuffer LPSTR Pointer to buffer for output string.
pnDataSize LPAT_UINT Pointer to the variable that on input contains the size of the buffer specified by lpszTextBuffer parameter. On output it contains the number of bytes copied to lpszTextBuffer buffer. If text attribute is not empty in the button, then it is copied into output buffer lpszTextBuffer and number of bytes copied is placed into pnDataSize. If lpszTextBuffer is NULL and pnDataSize is not NULL, then on output pnDataSize contains the size required to store annotation text. If lpszTextBuffer is not NULL and pnDataSize is not NULL and there is no text in the button, then on output pnDataSize contains zero.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.