IG_GUI_palette_CB_register
This function registers a callback function to be called whenever the user has changed a palette entry in the palette window.
Declaration:
|
Copy Code
|
AT_ERRCOUNT ACCUAPI IG_GUI_palette_CB_register (
HWND hWndPalette,
LPFNIG_GUIPALETTE lpfnPalette,
LPVOID lpPrivate
);
|
Arguments:
Name |
Type |
Description |
hWndPalette |
HWND |
Handle of Palette window. |
lpfnPalette |
LPFNIG_GUIPALETTE |
Far pointer to Palette callback function; called when palette changes. |
lpPrivate |
LPVOID |
Far pointer to private data area (passed to callback function). |
Return Value:
Returns the number of ImageGear errors that occurred during this function call.
Supported Raster Image Formats:
This function does not process image pixels.
Sample:
Palette Edit
Example:
|
Copy Code
|
LPFNIG_GUIPALETTE MyPaletteCBFunc; /* Declare type of callback func */
HWND hWndPalette; /* Global Palette window handle */
{
static char cPrivate[200]; /* Private data area */
...
IG_GUI_palette_CB_register(hWndPalette, MyPaletteCBFunc, (LPVOID) &cPrivate);
/* See also the example under LPFNIG_GUIPALETTE */
...
}
|