Using Win32 functions in Visual FoxPro Image Gallery
Icon
..msdn
CopyIcon
DestroyIcon
DrawIcon
ExtractAssociatedIcon
ExtractIcon
GetIconInfo
LoadIcon
Code examples:
Storing screen shot of a form to bitmap file
CopyIcon
..msdn    Add comment     W32 Constants      Translate this page
Copies the specified icon from another module to the current module.
Code examples:
Storing screen shot of a form to bitmap file
Declaration:
HICON CopyIcon(
    HICON hIcon
);
FoxPro declaration:
DECLARE INTEGER CopyIcon IN user32 INTEGER hIcon
Parameters:
hIcon
[in] Handle to the icon to be copied.
Return value:
If the function succeeds, the return value is a handle to the duplicate icon.
My comment:
The CopyIcon function enables an application or dynamic-link library (DLL) to get its own handle to an icon owned by another module. If the other module is freed, the application icon will still be able to use the icon.

Before closing, an application must call the DestroyIcon function to free any system resources associated with the icon.

See also: LoadIcon, DrawIcon.
Word Index links for the CopyIcon :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-04-05 22:42:22
Modified: 2006-04-05 22:44:22
Visited in last 7 days: 7
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.161.166.171)
10 sec.Example: 'Using Shell for performing operations on files'
46 sec.Example: 'Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)'
51 sec.Function: 'MAPIFindNext'
Function group: 'Simple MAPI'
Google
Advertise here!