You can't put an ActiveX control on the clipboard, but you can persist an ActiveX control and save its persisted state on the clipboard. Take a look at the IPersistStream COM interface. You could query the ActiveX control for IPersistStream, persist to a stream via IPersistStream::Save, then set the persisted stream to the STGMEDIUM pstm member, which is an IStream. When you wanted to paste, you could create a new control, query the ActiveX control for IPersistStream, then load the persisted state via IPersistStream::Load. If you wanted to save the persisted states of multiple ActiveX controls on the clipboard, you could create an IStorage, create a stream for each control that you wanted to persist and persist each control to a stream, then save the ISto
rage to the STGMEDIUM pstg member, which is an IStorage.
- Elton