Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 2.21 KB

File metadata and controls

59 lines (43 loc) · 2.21 KB

Home

Function name : OpenClipboard

Group: Clipboard - Library: user32


The OpenClipboard function opens the clipboard for examination and prevents other applications from modifying the clipboard content


Code examples:

Testing Clipboard functions: emptying the clipboard
Enumerating data formats currently available on the clipboard
Placing an arbitrary rectangular area of main VFP window on the Clipboard
How to copy the image of a form to the Clipboard using Bitmap API functions
Storing content of the Clipboard to a bitmap file
Getting a bit more than the _CLIPTEXT offers
Bitmap Class for Visual FoxPro application
Converting Unicode data from the Clipboard to a character string using a given code page
Passing data records between VFP applications via the Clipboard
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
GDI+: Storing content of the Clipboard to a bitmap file
Monitoring clipboard content changes (VFP9)

Declaration:

BOOL OpenClipboard(
  HWND hWndNewOwner   // handle to window
);  

FoxPro declaration:

DECLARE INTEGER OpenClipboard IN user32;
	INTEGER hwnd  

Parameters:

hWndNewOwner [in] Handle to the window to be associated with the open clipboard. If this parameter is NULL, the open clipboard is associated with the current task.


Return value:

If the function succeeds, the return value is TRUE


Comments:

An application should call the CloseClipboard function after every successful call to OpenClipboard.