Using Win32 functions in Visual FoxPro Image Gallery
Desktop Window Manager (DWM)
DwmExtendFrameIntoClientArea
Code examples:
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
DwmExtendFrameIntoClientArea
..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)
Declaration:
DECLARE INTEGER DwmExtendFrameIntoClientArea IN Dwmapi;
    INTEGER hWindow,;
    STRING @pMarInset
FoxPro declaration:
HRESULT WINAPI DwmExtendFrameIntoClientArea(
        HWND hWnd,
  __in  const MARGINS *pMarInset
);
Parameters:
hWnd
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.
Usage:
PROCEDURE ExtendFrame
    LOCAL cBuffer

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

    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  
FreeTranslation.com 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: 139
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.93.187)
15 sec.Function: 'GetEnhMetaFile'
30 sec.Function: 'GetUdpTable'
44 sec.Function: 'WNetGetUniversalName'
59 sec.Function: 'FindClose'
1.23 min.
Function group: 'Authentication'
1.47 min.Function: 'IsIconic'
1.67 min.Function: 'NetWkstaGetInfo'
1.92 min.Function: 'HeapWalk'
2.15 min.Function: 'AVIStreamTimeToSample'
2.35 min.Function: 'GetWindowLong'
Google
Advertise here!