Using Win32 functions in Visual FoxPro Image Gallery
Desktop Window Manager (DWM)
Code examples:
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
..msdn    Add comment     W32 Constants      Translate this page
Extends the window frame behind the client area.
Code examples:
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
DECLARE INTEGER DwmExtendFrameIntoClientArea IN Dwmapi;
    INTEGER hWindow,;
    STRING @pMarInset
FoxPro declaration:
HRESULT WINAPI DwmExtendFrameIntoClientArea(
        HWND hWnd,
  __in  const MARGINS *pMarInset
The handle to the window in which the frame will be extended into the client area.

pMarInset [in]
A pointer to a MARGINS structure that describes the margins to use when extending the frame into the client area.
Return value:
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
    LOCAL cBuffer

    * margins: left, right, top, bottom
    cBuffer =;
        num2dword(3) +;
        num2dword(3) +;
        num2dword(80) +;

    nResult = DwmExtendFrameIntoClientArea(;
        THIS.HWnd, @cBuffer)
My comment:
Minimum supported client: Windows Vista.
Note: works for top-level forms only (ShowWindow=2).

This function is used to extend the application frame into the client area. With some extra work, controls can be integrated into the extra space on the frame.

A transparent form is created by calling this function with all negative margins.

Word Index links for the DwmExtendFrameIntoClientArea :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2011-01-12 19:58:57
Modified: 2011-01-16 09:40:28
Visited in last 7 days: 112
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
17 sec.Function: 'DestroyPhysicalMonitors'
32 sec.Function: 'AddPrinter'
48 sec.Function: 'HeapAlloc'
1.07 min.Function: 'GdiSetBatchLimit'
1.33 min.Function: 'GetUserDefaultLCID'
1.62 min.Function: 'GetKeyboardType'
1.88 min.Function: 'CryptAcquireContext'
2.13 min.Function: 'AVIStreamGetFrame'
2.37 min.Function: 'GetProcessHeaps'
2.6 min.Function: 'DeleteFileTransacted'
Advertise here!