Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.79 KB

DestroyWindow.md

File metadata and controls

56 lines (40 loc) · 1.79 KB

Home

Function name : DestroyWindow

Group: Window - Library: user32


The DestroyWindow function destroys the specified window. The function sends WM_DESTROY and WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus from it.


Code examples:

Placing a button on the VFP form as a new child window
Splash Screen for the VFP application
Using Common Controls: the Header Control
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Placing On-screen Alert on top of all windows
How to make a VFP form fading out when released (GDI+ version)
How to make a VFP form fading out when released (GDI version)
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Using Month Calendar Control (VFP9, Comctl32.dll)
Displaying dimmed window behind VFP top-level form

Declaration:

BOOL DestroyWindow(
  HWND hWnd   // handle to window to destroy
);  

FoxPro declaration:

DECLARE INTEGER DestroyWindow IN user32;
	INTEGER hWnd  

Parameters:

hWnd [in] Handle to the window to be destroyed.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

See also: EndTask, PostMessage.