ZeeGrid Control Message

ZGM_ENABLEPASTE


ZGM_ENABLEPASTE

An application sends a ZGM_ENABLEPASTE message to enable or disable the users ability to use ctrl+V to paste from the Windows clipboard into the ZeeGrid at the cursor position.

ZGM_ENABLEPASTE
wParam = (WPARAM) (BOOL) fEnable;  //enable flag
lParam = 0;                        //not used; must be zero

Parameters

fEnable
Value of wParam. A value of TRUE will enable pasting from the Windows clipboard to the ZeeGrid at the cursor postion. A value of FALSE will disable pasting from the clipboard to the ZeeGrid.

Return Values

This message does not return a value.

Remarks

Pasting is disabled by default. Only cells that have edit values of "1" can be pasted to. Pasting that requires expansion of the columns in ZeeGrid will fail, resulting in a messagebox displaying that the operation could not be fully completed. A pasting operation that requires additional rows in the ZeeGrid will depend on the setting of ZGM_EXPANDROWSONPASTE.

Copyright © 2002-2016 by David Hillard