ZeeImage Control Message

ZIM_SETEXPAND


ZIM_SETEXPAND

An application sends a ZGM_SETEXPAND message to change the way images that are smaller in resolution than the client area of the ZeeImage control are displayed in the control. When the EXPAND attribute of the image is set to FALSE, a small image is only displayed as its image resolution or smaller.

ZIM_SETEXPAND
wParam = (WPARAM)(int) iSlot;              //Slot or index of the image in the ZeeImage control
lParam = (BOOL) bFLAG;                     //TRUE or FALSE value for EXPAND attribute of the image.

Parameters

iSlot
The value of wParam. An integer value representing the index of the image in the ZeeImage control.

bFLAG
The value of lParam. BOOLEAN value to set the EXPAND attribute of the image indicated with wParam. The EXPAND attribute is set to FALSE by default.

Return Values

This message does not return a value.

Example


//set image in slot 200 to expand to full size of the ZeeImage control client area.
SendMessage(himage,ZGM_SETEXPAND,200,TRUE);

Note:

When the EXPAND attribute is set to TRUE, a small image will scale to fill the client area of the ZeeImage control, keeping its original aspect ratio. This means you might have an image that is a 32x32 bit ICON being displayed at up to full screen. An individual pixel of the original image might be a hundred or more pixels square when displayed.

Copyright © 2020 by David Hillard