Group: Desktop Window Manager (DWM) - Library: dwmapi
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
DECLARE INTEGER DwmExtendFrameIntoClientArea IN Dwmapi;
INTEGER hWindow,;
STRING @pMarInset
HRESULT WINAPI DwmExtendFrameIntoClientArea(
HWND hWnd,
__in const MARGINS *pMarInset
);
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.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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.