|
|
|
|
|
|
|
|
Get main window metrics.
|
|
|
Get window element color.
|
|
|
|
|
|
|
|
|
Prepares a window for painting. This function prepares the specified window hWnd for painting. This function is called in the handler of MSG_PAINT message normally. It returns a device context including the update region of the window. When you are done with the device context, you should call EndPaint to finish the painting of the window.
|
|
||||||||||||||||
|
Calculates main window height from the height of the client area. This function calculates the main window height from the height of the client area.
|
|
||||||||||||||||
|
Converts the client coordinates of a point to screen coordinates. This function converts the client coordinates of the specified point (*x,*y) in the specified window hWnd to screen coordinates.
|
|
||||||||||||
|
Calculates main window width from the width of the client area. This function calculates the main window width from the width of the client area.
|
|
||||||||||||
|
Enables of disables a window. This function enables or disables mouse and keyboard input to the specified window hWnd. When input is disabled, the window does not receive input such as mouse clicks and key presses. When input is enabled, the window receives all input.
|
|
||||||||||||
|
Marks the end of painting in a window. This function marks the end of painting in the specified window. This function is required for each call to the BeginPaint function, but only after painting is complete.
|
|
||||||||||||
|
Removes the specific extended style of a window. This function removes the specific extended style of the window specified by hWnd.
|
|
||||||||||||
|
Removes the specific style of a window. This function removes the specific style of the window specified by hWnd.
|
|
|
Retrieves the main window handle to the active main window. This function retrives the main window handle to the active main window which receives the input.
|
|
|
Retrives the handle to the window (if any) that has captured the mouse. This function retrieves the handle to the window (if any) that has captured the mouse. Only one window at a time can capture the mouse; this window receives mouse input whether or not the cursor is within its borders.
|
|
||||||||||||
|
Retrives the client rectangle of a window. This function retrives the coordinates of the client area of the window specified by hWnd. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are always (0,0).
|
|
|
Retrives the first hosted main window of a main window. This function retrives the first hosted main window of the specified main window hMainWnd. For MiniGUI-Threads, HWND_DESKTOP has no any "hosted" window, so do not use this function for it.
|
|
|
Retrieves the handle to the window's active child that has the keyboard focus. This function retrives the handle to the window's active child that has the keyboard focus.
|
|
|
Retrives the hosting main window of a main window. This function retrives the hosting main window of the specified main window hWnd. The hosting main window creates the message queue, which shared with all hosted main window of it. The hosting window of a top-level main window is HWND_DESKTOP. HWND_DESKTOP has no hosting window, do not use this function for it.
|
|
|
Retrives the handle to the main window contains a window. This function retrives the handle to the main window which contains the specified window hWnd.
|
|
||||||||||||
|
Retrives the next control in a window. This function retrives the next child of the specified window hWnd. If you pass 0 for the argument of hChild, the function will return the first child of the window.
/* * Sample code for GetNextChild: * Travles all child of a window \a hWnd. */ HWND child = HWND_DESKTOP; do { child = GetNextChild (hWnd, child); } while (child != HWND_DESKTOP); |
|
||||||||||||
|
Retrives the next hosted main window of a main window. This function retrives the next hosted main window of the specified main window hHosting. For MiniGUI-Threads, HWND_DESKTOP has no any "hosted" window, so do not use this function for it.
|
|
|
Retrives the next main window in the system according to the zorder. This function retrives the next main window of the specified main window hMainWnd.
|
|
|
Retrieves the handle to a child window's parent window. This function retrieves the handle to the specified child window's parent window.
|
|
||||||||||||
|
Retrives the bounding box of the update region of a window. This function retrives the bounding box of the update region of the specified window hWnd.
|
|
|
Retrives the first additional data of a window. This function retrives the first additional data of the specified window hWnd.
|
|
|
Retrives the second additional data of a window. This function retrives the second additional data of the specified window hWnd.
|
|
|
Returns the current background color of a window. This function returns the pixel value of the current background color of the window specified by hWnd.
|
|
|
Retrives the callback procedure of a window. This function retrives the window callback procedure of the specified window hWnd.
|
|
|
Retrives the caption of a window. This function retrives the caption of the specified window hWnd.
|
|
|
Retrives the additional data of a control class. This function retrives the additional data of the control class to which the specified control hWnd belongs.
|
|
|
Retrives the current cursor of a window. This function retrives the current cursor of the specified window hWnd.
|
|
||||||||||||
|
Returns the pixel value used to draw the specific window element of a window. This function returns the pixel value used to draw the specific window element of the window specified by hwnd.
|
|
||||||||||||
|
Returns the metrics value of an element of a window. This function returns the metrics value of the specific window element of the window specified by hwnd.
|
|
|
Retrives the extended style of a window. This function retrives the extended style of the window specified by hWnd.
|
|
|
Retrives the default font of a window. This function retrives the default font of the specified window hWnd.
|
|
||||||||||||
|
Retrives the dimensions of the bounding rectangle of a window. This function retrives the dimension of the bounding rectangle of the specified window hWnd. The dimensions are given in parent's client coordinates (screen coordinates for main window) that are relative to the upper-left corner of the parent's client area (screen).
|
|
|
Retrives the style of a window. This function retrives the style of the window specified by hWnd.
|
|
||||||||||||||||
|
Copies the text of a window's into a buffer. This function copies the text of the specified window hWnd into the buffer pointed to by spString. The function gets the window text by sending an MSG_GETTEXT message to the window.
|
|
|
Retrieves the length of a window's text. This function retrieves the length, in characters, of the specified window's text. The function retrieves the length of the text by sending an MSG_GETTEXTLENGTH message to the window.
|
|
|
Retrives the handle to the window (if any) which is just beneath the mouse cursor. This function retrieves the handle to the window (if any) that is under the mouse cursor. If a parent window and a child window are all under the mouse cursor, the handle to the child window will be returned.
|
|
||||||||||||
|
Includes the specific extended style of a window. This function includes the specific extended style of the window specified by hWnd.
|
|
||||||||||||
|
Includes the specific style of a window. This function includes the specific style of the window specified by hWnd.
|
|
||||||||||||||||
|
Makes a rectangle region in the client area of a window invalid. This function adds a rectangle pointed to by prc to the specified window's update region. The update region represents the portion of the window's client area that must be redrawn, and erase background if argument bReaseBkgnd is set.
|
|
|
Determines whether a window is a control. This function determines whether the specified window hWnd is a control.
|
|
|
Determines whether a window handle identifies a dialog window. This function determines whether the specified window handle hWnd identifies a dialog window.
|
|
|
Determines whether a window is a main window. This function determines whether the specified window hWnd is a main window or not.
|
|
|
Determines whether a window handle identifies an existing window. This function determines whether the specified window handle hWnd identifies an existing window.
|
|
|
Determines whether the specified window is enabled for mouse and keyboard input. This function returns the enable/disable state of the window specified by hWnd.
|
|
|
Retrieves the visibility state of a window. This function retrives the visibility state of the specified window hWnd.
|
|
||||||||||||||||||||||||||||
|
Changes the position and dimensions of a window. This function changes the position and dimensions of the specified window hWnd. For a main window, the position and dimensions are relative to the upper-left corner of the screen. For a control, they are relative to the upper-left corner of the parent window's client area.
|
|
|
Releases the mouse capture from a window and restores normal mouse input processing. This function releases the mouse capture from a window and restores normal mouse input processing. A window that has captured the mouse receives all mouse input, regardless of the position of the cursor.
|
|
||||||||||||||||
|
Converts the screen coordinates of a point to client coordinates. This function converts the screen coordinates of the specified point (*x,*y) to client coordinates of the specified window hWnd.
|
|
||||||||||||||||
|
Converts the screen coordinates of a point to window coordinates. This function converts the screen coordinates of the specified point (*x,*y) to the window coordinates of the specfied window hWnd.
|
|
||||||||||||||||||||||||
|
Scrolls the content of a window's client area. This function scrolls the content of the specified window's client area.
|
|
|
Sets a main window to be the active main window. This function sets the specified main window hMainWnd to be the active main window which receives the input.
|
|
|
Sets the mouse capture to the specified window. This function sets the mouse capture to the specified wind |