 |
CopyIcon ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Copies the specified icon from another module to the current module. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-04-05 22:42:22 | | Modified: | 2006-04-05 22:44:22 | Visited in last 7 days: 18 |