 |
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: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-01-04 14:55:33 | | Modified: | 2008-01-04 15:09:21 | Visited in last 7 days: 11 |