Using Win32 functions in Visual FoxPro Image Gallery
Resource
..msdn
BeginUpdateResource
CopyImage
EndUpdateResource
FindResource
LoadImage
LoadResource
LoadString
LockResource
SizeofResource
UpdateResource
Code examples:
CopyImage
..msdn    Add comment     W32 Constants      Translate this page
Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one. If necessary, the function stretches the bits to fit the desired size of the new image.
Code examples:
Declaration:
HANDLE CopyImage(
    HANDLE hImage,
    UINT uType,
    int cxDesired,
    int cyDesired,
    UINT fuFlags
);
FoxPro declaration:
DECLARE INTEGER CopyImage IN user32;
    INTEGER hImage,;
    INTEGER uType,;
    INTEGER cxDesired,;
    INTEGER cyDesired,;
    INTEGER fuFlags;

Parameters:
hImage
[in] Handle to the image to be copied.

uType
[in] Specifies the type of image to be copied.

cxDesired
[in] Specifies the desired width, in pixels, of the image.

cyDesired
[in] Specifies the desired height, in pixels, of the image.

fuFlags
[in] This parameter can be one or more of the predefined values.
Return value:
If the function succeeds, the return value is the handle to the newly created image.
My comment:
When you are finished using the resource, you can release its associated memory by calling one of the functions: DeleteObject, DestroyCursor, DestroyIcon -- depending on the type of the object.
Word Index links for the CopyImage :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-08-02 18:44:35
Modified: 2004-08-02 18:50:24
Visited in last 7 days: 9
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.178.153)
10 sec.Function: 'SetClipboardData'
20 sec.Function: 'GetUserName'
32 sec.Function: 'NetUserGetInfo'
42 sec.Function: 'RevertToSelf'
52 sec.Function: 'UpdateResource'
1.03 min.Function: 'ConnectNamedPipe'
1.22 min.Function: 'SendARP'
1.4 min.Function: 'SetVolumeLabel'
1.6 min.Function: 'GetCurrencyFormat'
1.78 min.Function: 'OpenSemaphore'
Google
Advertise here!