Using Win32 functions in Visual FoxPro Image Gallery
Window Property
..msdn
GetProp
RemoveProp
SetProp
Code examples:
How to write and read Window Properties for the specified window
SetProp
..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
Declaration:
BOOL SetProp(
  HWND hWnd,         // handle to window
  LPCTSTR lpString,  // atom or string
  HANDLE hData       // handle to data
);
FoxPro declaration:
DECLARE INTEGER SetProp IN user32;
    INTEGER hWnd,;
    STRING  lpString,;
    INTEGER hData

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

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

hData
[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  
FreeTranslation.com 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: 19
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.80.10.56)
7 sec.Function: 'LsaClose'
14 sec.Function: 'MQOpenQueue'
22 sec.Function: 'GetVolumeInformation'
31 sec.Function: 'WNetCancelConnection2'
39 sec.Function: 'JetOpenTable'
46 sec.Function: 'GetWindowText'
55 sec.Function: 'PathFindFileName'
1.07 min.Function: 'MoveWindow'
1.22 min.Function: 'GdipDisposeImageAttributes'
1.35 min.Function: 'AssignProcessToJobObject'
Google
Advertise here!