Using Win32 functions in Visual FoxPro Image Gallery
Window
..msdn
CloseWindow
CreateWindow
CreateWindowEx
DestroyWindow
EndTask
FindWindow
FindWindowEx
GetAncestor
GetClientRect
GetDesktopWindow
GetForegroundWindow
GetGUIThreadInfo
GetParent
GetShellWindow
GetWindow
GetWindowInfo
GetWindowPlacement
GetWindowRect
GetWindowText
GetWindowTextLength
GetWindowThreadProcessId
InternalGetWindowText
IsChild
IsIconic
IsWindow
IsWindowVisible
IsZoomed
MoveWindow
RealGetWindowClass
SetForegroundWindow
SetLayeredWindowAttributes
SetParent
SetWindowPos
SetWindowText
ShowWindow
SwitchToThisWindow
Code examples:
Placing a button on the VFP form as a new child window
CreateWindow
..msdn    Add comment     W32 Constants      Translate this page
The CreateWindow function creates an overlapped, pop-up, or child window.

To use extended window styles in addition to the styles supported by CreateWindow, use the CreateWindowEx function.
Code examples:
Placing a button on the VFP form as a new child window
Declaration:
HWND CreateWindow(
  LPCTSTR lpClassName,  // registered class name
  LPCTSTR lpWindowName, // window name
  DWORD dwStyle,        // window style
  int x,                // horizontal position of window
  int y,                // vertical position of window
  int nWidth,           // window width
  int nHeight,          // window height
  HWND hWndParent,      // handle to parent or owner window
  HMENU hMenu,          // menu handle or child identifier
  HINSTANCE hInstance,  // handle to application instance
  LPVOID lpParam        // window-creation data
);
FoxPro declaration:
DECLARE INTEGER CreateWindow IN user32;
    STRING  lpClassName,;
    STRING  lpWindowName,;
    INTEGER dwStyle,;
    INTEGER x,;
    INTEGER y,;
    INTEGER nWidth,;
    INTEGER nHeight,;
    INTEGER hWndParent,;
    INTEGER hMenu,;
    INTEGER hInstance,;
    INTEGER lpParam

Parameters:
lpClassName
[in] Pointer to a null-terminated string or a class atom.

lpWindowName
[in] Pointer to a null-terminated string that specifies the window name.

dwStyle
[in] Specifies the style of the window being created.

x
[in] Specifies the initial horizontal position of the window.

y
[in] Specifies the initial vertical position of the window.

nWidth
[in] Specifies the width, in device units, of the window.

nHeight
[in] Specifies the height, in device units, of the window.

hWndParent
[in] Handle to the parent or owner window of the window being created.

hMenu
[in] Handle to a menu, or specifies a child-window identifier depending on the window style.

hInstance
Handle to the instance of the module to be associated with the window.

lpParam
[in] Pointer to a value to be passed to the window through the CREATESTRUCT structure passed in the lParam parameter the WM_CREATE message.
Return value:
If the function succeeds, the return value is a handle to the new window.
My comment:
WinMe: there is no entry point for this function in the User32 module.
Word Index links for the CreateWindow :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-02-05 08:22:39
Modified: 2002-02-05 08:30:40
Visited in last 7 days: 13
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.
Google
Advertise here!