共用方式為


Windows Functions

Send Feedback

The following table shows the windows functions with a description of the purpose of each.

Programming element PPC SP Description
AdjustWindowRectEx X X This function calculates the required size of the rectangle of a window with extended style based on the desired client-rectangle size.
BeginDeferWindowPos X X This function allocates memory for a multiple-window position structure and returns the handle to the structure.
BringWindowToTop X X This function brings the specified window to the top of the z-order.
CallWindowProc X X This function passes message information to the specified window procedure.
ChildWindowFromPoint X X This function determines which, if any, of the child windows belonging to a parent window contains the specified point.
CreateWindow X X This function creates an overlapped, pop-up, or child window.
CreateWindowEx X X This function creates an overlapped, pop-up, or child window with an extended style; otherwise, this function is identical to the CreateWindow function.
DeferWindowPos X X This function updates the specified multiple-window position structure for the specified window.
DefWindowProc X X This function calls the default window procedure to provide default processing for any window messages that an application does not process.
DestroyWindow X X This function destroys the specified window.
EndDeferWindowPos X X This function simultaneously updates the position and size of one or more windows in a single screen-refreshing cycle.
EnumWindows X X This function enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function.
EnumWindowsProc X X This function is an application-defined callback function that receives top-level window handles as a result of a call to the EnumWindows function.
FindWindow X X This function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows.
GetClientRect X X This function retrieves the coordinates of a window's client area.
GetDesktopWindow X X This function returns a handle to the desktop window.
GetForegroundWindow X X This function returns the handle to the foreground window — the window with which the user is currently working.
GetParent X X This function retrieves the handle to the specified child window's parent window.
GetWindow X X This function retrieves the handle to a window that has the specified relationship to the specified window.
GetWindowRect X X This function retrieves the dimensions of the bounding rectangle of the specified window.
GetWindowText X X This function copies the text of the specified window's title bar — if it has one — into a buffer.
GetWindowTextLength X X This function retrieves the length, in characters, of the specified window's title bar text — if the window has a title bar.
GetWindowThreadProcessId X X This function retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window.
IsChild X X This function tests whether a window is a child window or descendant window of a specified parent window.
IsWindow X X This function determines whether the specified window handle identifies an existing window.
IsWindowVisible X X This function retrieves the visibility state of the specified window.
MoveWindow X X This function changes the position and dimensions of the specified window.
SetForegroundWindow X X This function puts the thread that created the specified window into the foreground and activates the window.
SetParent X X This function changes the parent window of the specified child window.
SetWindowPos X X This function changes the size, position, and z-order of a child, pop-up, or top-level window.
SetWindowText X X This function changes the text of the specified window's title bar, if it has one.
ShowWindow X X This function sets the specified window's show state.
WindowFromPoint X X This function retrieves the handle to the window that contains the specified point.
WindowProc X X This function is an application-defined callback function that processes messages sent to a window.
WinMain X X This function is called by the system as the initial entry point for Windows CE-based applications.

See Also

Windows Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.