Hello Guillaume,
There is an easy way to do this. First you capture the panel image as a
bitmal, then paste the
bitmap to the clipboard.
Here is a snippet of the callback function that would do this:
/*--------------------------------------------------------------------------
-*/
/* Copy the image of the panel to the Clipboard.
*/
/*--------------------------------------------------------------------------
-*/
void CVICALLBACK CopyPanelImageCallback (int menuBar, int menuItem,
void *callbackData, int panel)
{
int bitmap;
GetPanelDisplayBitmap (panel, VAL_VISIBLE_AREA, VAL_ENTIRE_OBJECT,
&bitmap);
ClipboardPutBitmap (bitmap);
DiscardBitmap (bitmap);
}
I found this in the example that shi
ps with CVI 5.5 in the following
directory:
"c:\MeasurementStudio\cvi\samples\userint\clipbord.c"
Cheers,
Azucena
"Guillaume Dargaud" wrote in message
news:38ec51b3@newsgroups.ni.com...
> I'd like to capture the screen from a LabWindows/CVI 5.5 prog.
> How do I do something similar to the [PrtScr] key that put the screen in
the
> clipboard ?
> -----------
> Guillaume Dargaud
> CNR/IFA
> http://sung3.ifsi.rm.cnr.it/~dargaud/
> http://sung3.ifsi.rm.cnr.it/~domec/
> http://sung3.ifsi.rm.cnr.it/~chooyu/
> "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as
> equals." - Winston Churchill.
>
>