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:
| hWndPalette | Handle of Palette window. |
| lpfnPalette | Far pointer to Palette callback function; called when palette changes. |
| lpPrivate | 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 */ ... } |
|
