Using Win32 functions in Visual FoxPro Image Gallery
Painting and Drawing
..msdn
DrawAnimatedRects
DrawCaption
DrawEdge
DrawFrameControl
GdiFlush
GdiGetBatchLimit
GdiSetBatchLimit
GetBkMode
GetBoundsRect
GetWindowDC
GetWindowRgnBox
LockWindowUpdate
PaintDesktop
SetBkColor
SetBkMode
SetWindowRgn
WindowFromDC
Code examples:
PaintDesktop
..msdn    Add comment     W32 Constants      Translate this page
Fills the clipping region in the specified device context with the desktop pattern or wallpaper.
Code examples:
Declaration:
BOOL PaintDesktop(
    HDC hdc  // handle to DC
);
FoxPro declaration:
DECLARE INTEGER PaintDesktop IN user32;
    INTEGER hdc
Parameters:
hdc
[in] Handle to the device context.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
* fills the client part of the form with the desktop pattern
* the fill is highly volatile
LOCAL hWindow, hDC

hWindow = THIS.HWnd  && _screen.HWnd
hDC = GetDC(m.hWindow)  && GetWindowDC(...)

= PaintDesktop(m.hDC)
= ReleaseDC(m.hWindow, m.hDC)
My comment:
You may call this function from within the Paint event of a form and see what happens to form`s native controls, which controls are windowless by definition.
Word Index links for the PaintDesktop :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-01-04 14:55:33
Modified: 2008-01-04 15:09:21
Visited in last 7 days: 10
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.37), 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.132.10)
7 sec.Function: 'GetFileNameFromBrowse'
14 sec.
Function group: 'Device Input and Output'
20 sec.Function: 'CeGetFileSize'
28 sec.Function: 'waveOutClose'
36 sec.Function: 'WindowProc'
43 sec.Function: 'DrawMenuBar'
49 sec.Function: 'ImageList_Create'
58 sec.Function: 'GetLocaleInfo'
1.1 min.Function: 'waveInClose'
1.22 min.
Function group: 'Hook'
Google
Advertise here!