Share via


GweBypassCoredllThunk_t::DestroyWindow_I (Windows Embedded CE 6.0)

1/6/2010

This method destroys the specified window. The method sends a WM_DESTROY message to the window to deactivate it and removes the keyboard focus from the window. The method also destroys the menu for the window, destroys timers, removes clipboard ownership, and breaks the clipboard viewer chain if the window is at the top of the viewer chain.

If the specified window is a parent or owner window, GweBypassCoredllThunk_t::DestroyWindow_I automatically destroys the associated child or owned windows when the method destroys the parent or owner window. The method first destroys child or owned windows, and then the method destroys the parent or owner window.

GweBypassCoredllThunk_t::DestroyWindow_I also destroys modeless dialog boxes created by the CreateDialog function.

Syntax

static BOOL WINAPI DestroyWindow_I(
  HWND hwndThis
);

Parameters

  • hwndThis
    [in] Handle to the window to be destroyed.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

This method is an internal version of the DestroyWindow function.

GweBypassCoredllThunk_t::DestroyWindow_I destroys children of the specified window.

GweBypassCoredllThunk_t::DestroyWindow_I does not flush the thread message queue.

Requirements

Header gwebypasscoredllthunk.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

GweBypassCoredllThunk_t
CreateDialog
CreateWindow
CreateWindowEx
DestroyWindow
WM_DESTROY