Using Win32 functions in Visual FoxPro Image Gallery
Window Property
Code examples:
How to write and read Window Properties for the specified window
..msdn    Add comment     W32 Constants      Translate this page
Adds a new entry or changes an existing entry in the property list of the specified window.
Code examples:
How to write and read Window Properties for the specified window
BOOL SetProp(
  HWND hWnd,         // handle to window
  LPCTSTR lpString,  // atom or string
  HANDLE hData       // handle to data
FoxPro declaration:
    INTEGER hWnd,;
    STRING  lpString,;
    INTEGER hData

[in] Handle to the window whose property list receives the new entry.

[in] Pointer to a null-terminated string or contains an atom that identifies a string.

[in] Handle to the data to be copied to the property list. The data handle can identify any value useful to the application.
Return value:
If the data handle and string are added to the property list, the return value is nonzero. If the function fails, the return value is zero.
My comment:
If VFP application sets a property for a window, it should allocate required amount of memory for the property data (for example, by calling GlobalAlloc), and hold this memory either until the window is destroyed, or the RemoveProp is called.
Word Index links for the SetProp :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-12-02 19:01:41
Modified: 2011-01-16 21:57:01
Visited in last 7 days: 68
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
17 sec.Function: 'CopyImage'
32 sec.Function: 'GetMouseMovePointsEx'
47 sec.Function: 'WinHttpAddRequestHeaders'
1.03 min.Function: 'CeOidGetInfoEx'
1.33 min.Function: 'CryptExportKey'
Function group: 'Cryptography Reference'
1.6 min.Function: 'GdipCreateTexture'
1.87 min.Function: 'CreateHardLink'
2.13 min.Function: 'DwmExtendFrameIntoClientArea'
2.45 min.Function: 'CryptDecrypt'
2.75 min.Function: 'GetAclInformation'
Advertise here!