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:
Creating a window using CreateWindowEx function
How to make a VFP form fading out when released (GDI version)
How to make a VFP form fading out when released (GDI+ version)
Obtaining window class name for the main VFP window
Placing On-screen Alert on top of all windows
Scanning the hierarchy of child windows down from the main VFP window
Splash Screen for the VFP application
How to make a VFP form fading out when released (GDI version)

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
When a VFP form is released, usually it disappears immediately. Wouldn`t it be nice to have a form slowly (or less slowly) fading out?

An obvious way of doing that is covering the form with another window, which holds the image of the original form. Once covered, the original form disappears. After that the covering window gradually changes its opacity (alpha channel) from opaque (255) to completely transparent (0).

This code sample is based on solely GDI calls, no GDI+ library is required. Beside fading, the form is shrinking too.

See also:
  • How to make a VFP form fading out when released (GDI+ version)
  • How to draw custom Window Caption on FoxPro form
  • Animating a transition of the VFP form (a wire-frame rectangle)
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    10568 bytes  
    Created: 2007-04-24 16:23:35  
    Modified: 2009-03-03 14:41:02  
    Visits in 7 days: 127  
    Listed functions:
    BitBlt
    CreateCompatibleBitmap
    CreateCompatibleDC
    CreateRectRgn
    CreateSolidBrush
    CreateWindowEx
    DeleteDC
    DeleteObject
    DestroyWindow
    FillRect
    GetDC
    GetSystemMetrics
    GetWindowDC
    GetWindowLong
    GetWindowRect
    RealGetWindowClass
    ReleaseDC
    SelectObject
    SetLayeredWindowAttributes
    SetWindowLong
    SetWindowRgn
    StretchBlt
    Printer friendly API declarations
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright © 2001-2013 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.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (50.16.36.153)
    1.54 hrs.Function: 'CreateProcessAsUser'
    Function group: 'Process and Thread'
    3.01 hrs.Example: 'How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory'
     Example: 'Encapsulating access to the Windows Services in a class'
    3.23 hrs.Function: 'AVIStreamLength'
    Function group: 'Windows Multimedia'
     Example: 'Extensible Storage Engine class library'
    4.97 hrs.Example: 'How to display Windows On-Screen Keyboard'
    5.73 hrs.Function: 'CeCreateDirectory'
    Function group: 'Remote Application Programming (RAPI)'
     Example: 'Using the FindMediaType function'
     Example: 'Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer'
    5.84 hrs.Example: 'Exporting DLL icon resources as .ICO files'
    Google
    Advertise here!