Share via


SetForegroundWindow_I (Windows CE 5.0)

Send Feedback

This function puts the thread that created the specified window into the foreground and activates the window.

BOOL WINAPI SetForegroundWindow_I(  HWND hwnd);

Parameters

  • hwnd
    [in] Handle to the window that you want to activate and bring to the foreground.

Return Values

A nonzero value indicates that SetForegroundWindow_I successfully brought the window to the foreground. Zero indicates that SetForegroundWindow_I did not bring the window to the foreground.

Remarks

The foreground window is the window at the top of the z-order. The foreground window is also the window with which the user is working. In a pre-emptive multitasking environment, you should generally let the user control which window becomes the foreground window.

The thread that owns the window does not receive an increased priority.

Requirements

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

See Also

GetForegroundWindow_I | SetActiveWindow | SetForegroundWindow

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.