This function registers a callback function to be called whenever the user has changed a palette entry in the palette window.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_GUI_palette_CB_register ( HWND hWndPalette, LPFNIG_GUIPALETTE lpfnPalette, LPVOID lpPrivate ); |
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). |
Returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
Palette Edit
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 */ ... } |