An application sends a ZIM_GETIMAGEWIDTH to retrieve the width dimension of the specified image in the ZeeImage image list. The image will be autosized (shrunk) to fit in the client area of the ZeeImage control. This message will return the actual dimensions of the image before any resizing is done by the control to display it.
ZGM_GETIMAGEWIDTH wParam = (WPARAM)(int) iSlot; //slot or index of the image control lParam = 0; //Not used. Set to 0.
This message returns the width of the image in pixels, as it was loaded into the ZeeImage control before being displayed.
int image_width; image_width = SendMessage(himage,ZIM_GETIMAGEWIDTH,1,0);