GweBypassCoredllThunk_t::DestroyWindow_I (Windows CE 5.0)

Send Feedback

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.

static BOOL WINAPI DestroyWindow_I(HWND hwndThis);

Parameters

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

Return Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: GweBypassCoredllThunk.hpp.

See Also

CreateDialog | CreateWindow | CreateWindowEx | DestroyWindow | WM_DESTROY

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.