Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

General window operations
[Windowing functions]

Defines

Functions


Define Documentation

#define GetFocus   GetFocusChild
 

See also:
GetFocusChild

Definition at line 4000 of file window.h.

#define GetForegroundWindow   GetActiveWindow
 

See also:
GetActiveWindow

Definition at line 4034 of file window.h.

#define GetMainWinMetrics iItem   )     (WinMainMetrics[iItem])
 

Get main window metrics.

Definition at line 4189 of file window.h.

#define GetWindowElementColor iItem   )     (WinElementColors[iItem])
 

Get window element color.

Definition at line 4370 of file window.h.

#define SetFocus   SetFocusChild
 

See also:
SetFocusChild

Definition at line 3994 of file window.h.

#define SetForegroundWindow   SetActiveWindow
 

See also:
SetActiveWindow

Definition at line 4040 of file window.h.


Function Documentation

HDC GUIAPI BeginPaint HWND  hWnd  ) 
 

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.

Parameters:
hWnd The handle to the window.
Returns:
The device context.
See also:
EndPaint

int GUIAPI ClientHeightToWindowHeight DWORD  dwStyle,
int  ch,
BOOL  hasMenu
 

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.

Parameters:
dwStyle The style of the main window.
ch The height of the client area.
hasMenu Indicates whether the main window has menu.
Returns:
The height of the main window.
See also:
ClientWidthToWindowWidth

void GUIAPI ClientToScreen HWND  hWnd,
int *  x,
int *  y
 

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.

Parameters:
hWnd The handle to the window.
x The pointer to the x coordinate.
y The pointer to the y coordinate.
See also:
ScreenToClient

int GUIAPI ClientWidthToWindowWidth DWORD  dwStyle,
int  cw
 

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.

Parameters:
dwStyle The style of the main window.
cw The width of the client area.
Returns:
The width of the main window.
See also:
ClientHeightToWindowHeight

BOOL GUIAPI EnableWindow HWND  hWnd,
BOOL  fEnable
 

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.

Parameters:
hWnd The handle to the window.
fEnable Indicates whether to enable or disable the window, TRUE for enable.
Returns:
The old enable state of the window.
See also:
IsWindowEnabled

void GUIAPI EndPaint HWND  hWnd,
HDC  hdc
 

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.

Parameters:
hWnd The handle to the window.
hdc The device context returned by BeginPaint.
See also:
BeginPaint

BOOL GUIAPI ExcludeWindowExStyle HWND  hWnd,
DWORD  dwStyle
 

Removes the specific extended style of a window.

This function removes the specific extended style of the window specified by hWnd.

Parameters:
hWnd The handle to the window.
dwStyle The specific extended style which will be removed.
Returns:
TRUE on success, otherwise FALSE.
See also:
ExcludeWindowStyle

BOOL GUIAPI ExcludeWindowStyle HWND  hWnd,
DWORD  dwStyle
 

Removes the specific style of a window.

This function removes the specific style of the window specified by hWnd.

Parameters:
hWnd The handle to the window.
dwStyle The specific style which will be removed.
Returns:
TRUE on success, otherwise FALSE.
See also:
ExcludeWindowStyle

HWND GUIAPI GetActiveWindow void   ) 
 

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.

Returns:
The handle to the active main window.
See also:
SetActiveWindow, GetFocusChild

HWND GUIAPI GetCapture void   ) 
 

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.

Returns:
The handle to the window that has captured the mouse, 0 for no window captures the mouse.
See also:
SetCapture

BOOL GUIAPI GetClientRect HWND  hWnd,
PRECT  prc
 

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).

Parameters:
hWnd The handle to the window.
prc The pointer to a RECT structure receives the client rectangle.
Returns:
TRUE on sucess, otherwise FALSE.
Note:
Note that the coordinates of the upper-left corner are always zero.
See also:
MoveWindow

HWND GUIAPI GetFirstHosted HWND  hHosting  ) 
 

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.

Parameters:
hHosting The handle to the hosting main window.
Returns:
The handle to the first hosted main window. If an invalid window handle is passed for hHosting, HWND_INVALID will be returned. If tihs main window do not have a hosted window, HWND_NULL will be returned.
See also:
GetHosting, GetNextHosted

HWND GUIAPI GetFocusChild HWND  hParent  ) 
 

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.

Parameters:
hParent The handle to the parent window.
Returns:
The handle to the active child.
See also:
SetFocusChild, SetNullFoucs

HWND GUIAPI GetHosting HWND  hMainWnd  ) 
 

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.

Parameters:
hMainWnd The handle to the main window.
Returns:
The handle to the hosting main window. A valid window must have a hosting window. If error occurs, such as a invalid handle or HWND_DESKTOP is passed as hMainWnd, HWND_INVALID is returned.
See also:
GetFirstHosted, GetNextHosted

HWND GUIAPI GetMainWindowHandle HWND  hWnd  ) 
 

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.

Parameters:
hWnd The handle to the window.
Returns:
The handle to the main window, HWND_INVALID indicates an error.
Note:
For a main window, this function always returns the handle to itself. For HWND_DESKTOP, HWND_DESKTOP is returned.
See also:
GetParent

HWND GUIAPI GetNextChild HWND  hWnd,
HWND  hChild
 

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.

Parameters:
hWnd The handle to the window.
hChild The handle to a child of the window.
Returns:
The handle of the next child. If you pass HWND_NULL for the argument of hChild, it will return the first child of the window. When the child you passed is the last one, this function will return 0. If hWnd is not the parent of hChild, this function will return HWND_INVALID.
See also:
GetNextMainWindow
Note:
Do not use HWND_DESKTOP for hWnd or hChild.
Example:

/*
 * 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);

HWND GUIAPI GetNextHosted HWND  hHosting,
HWND  hHosted
 

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.

Parameters:
hHosting The handle to the hosting main window.
hHosted The handle to a known hosted main window. This function will return the next hosted main window.
Returns:
Handle to the next hosted main window. Returns 0 when hHosted is the last hosted main window; HWND_INVALID when error occurs. If hHosted is 0, this call equals GetFirstHosted(hHosting). If an invalid window handle is passed as hHosting or hHosted, HWND_INVALID will be returned; If hHosted is not the hosted window of hHosting, HWND_INVALID will be returned.
See also:
GetFirstHosted

HWND GUIAPI GetNextMainWindow HWND  hMainWnd  ) 
 

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.

Parameters:
hMainWnd The handle to the main window.
Returns:
The handle of the next main window. If you pass HWND_NULL for the argument of hMainWnd, it will return the topmost main window. When the main window you passed is the bottommost one, this function will return HWND_NULL. If hMainWnd is not a main window, the function will return HWND_INVALID.
See also:
GetNextChild

HWND GUIAPI GetParent HWND  hWnd  ) 
 

Retrieves the handle to a child window's parent window.

This function retrieves the handle to the specified child window's parent window.

Parameters:
hWnd The handle to the child window.
Returns:
The handle to the parent, HWND_INVALID indicates an error.
Note:
For a main window, this function always returns 0. For HWND_DESKTOP or an invalid window handle, HWND_INVALID will be returned.
See also:
GetMainWindowHandle

BOOL GUIAPI GetUpdateRect HWND  hWnd,
RECT update_rect
 

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.

Parameters:
hWnd The handle to the window.
update_rect The pointer to a RECT structure which will contains the bounding box of the update region.
Returns:
TRUE on success, otherwise FALSE.
See also:
InvalidateRect

DWORD GUIAPI GetWindowAdditionalData HWND  hWnd  ) 
 

Retrives the first additional data of a window.

This function retrives the first additional data of the specified window hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The first additional data of the window.
See also:
SetWindowAdditionalData

DWORD GUIAPI GetWindowAdditionalData2 HWND  hWnd  ) 
 

Retrives the second additional data of a window.

This function retrives the second additional data of the specified window hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The second additional data of the window.
See also:
SetWindowAdditionalData2

int GUIAPI GetWindowBkColor HWND  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.

Parameters:
hWnd The handle to the window.
Returns:
The pixel value of the background color.
See also:
SetWindowBkColor

WNDPROC GUIAPI GetWindowCallbackProc HWND  hWnd  ) 
 

Retrives the callback procedure of a window.

This function retrives the window callback procedure of the specified window hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The callback procedure of the window.
See also:
SetWindowCallbackProc

const char *GUIAPI GetWindowCaption HWND  hWnd  ) 
 

Retrives the caption of a window.

This function retrives the caption of the specified window hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The pointer to the caption string of the window.
See also:
SetWindowCaption

DWORD GUIAPI GetWindowClassAdditionalData HWND  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.

Parameters:
hWnd The handle to the control.
Returns:
The additional data of the control class to which the control belongs.
Note:
Note that this function always returns zero for the main window.
See also:
SetWindowClassAdditionalData

HCURSOR GUIAPI GetWindowCursor HWND  hWnd  ) 
 

Retrives the current cursor of a window.

This function retrives the current cursor of the specified window hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The handle to the cursor.
See also:
SetWindowCursor

gal_pixel GUIAPI GetWindowElementColorEx HWND  hwnd,
Uint16  item
 

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.

Parameters:
hwnd The handle to the window. If you pass 0 for this argument, this function will return the default element pixel value.
item The number of window element, can be one of the following values:
  • BKC_CAPTION_NORMAL
    The background color of caption in normal status.
  • FGC_CAPTION_NORMAL
    The foreground color of caption in normal status.
  • BKC_CAPTION_ACTIVED
    The background color of caption in active status.
  • FGC_CAPTION_ACTIVED
    The foreground color of caption in active status.
  • BKC_CAPTION_DISABLED
    The background color of caption in disabled status.
  • FGC_CAPTION_DISABLED
    The foreground color of caption in disabled status.
  • WEC_FRAME_NORMAL
    The color of window frame in normal status.
  • WEC_FRAME_ACTIVED
    The color of window frame in active status.
  • WEC_FRAME_DISABLED
    The color of window frame in disabled status.
  • FGC_MENUBAR_NORMAL
    The foreground color of menubar in normal status.
  • BKC_MENUBAR_HILITE
    The background color of menubar in high-lighted status.
  • FGC_MENUBAR_HILITE
    The foreground color of menubar in high-lighted status.
  • FGC_MENUBAR_DISABLED
    The foreground color of menubar in disalbed status.
  • FGC_MENUITEM_NORMAL
    The foreground color of menu item in normal status.
  • BKC_MENUITEM_HILITE
    The background color of menu item in high-lighted status.
  • FGC_MENUITEM_HILITE
    The foreground color of menu item in high-lighted status.
  • FGC_MENUITEM_DISABLED
    The foreground color of menu item in disabled status.
  • BKC_PPPMENUTITLE
    The background color of title of popup menu.
  • FGC_PPPMENUTITLE
    The foreground color of title of popup menu.
  • WED_3DBOX_REVERSE
    The reverse color of a 3D box.
  • WEC_3DBOX_LIGHT
    The light color of a 3D box.
  • WEC_3DBOX_DARK
    The dark color of a 3D box.
  • FGC_CONTROL_DISABLED
    The default foreground color of control in disabled status.
  • BKC_HILIGHT_LOSTFOCUS
    The background color of high-lighted but losted focus control.
  • FGC_HILIGHT_NORMAL
    The foreground color of high-lighted control in normal status.
  • FGC_HILIGHT_DISABLED
    The foreground color of high-lighted control in disabled status.
  • BKC_DIALOG
    The default background color of dialog box.
  • BKC_TIP
    The default background color of a tool-tip window.

Returns:
The pixel value of the window element.
See also:
SetWindowElementColorEx

int GUIAPI GetWindowElementMetricsEx HWND  hwnd,
Uint16  item
 

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.

Parameters:
hwnd The handle to the window. If you pass 0 for this argument, this function will return the default element metrics.
item The number of the window element, can be one of the following value:
  • MWM_MINWIDTH
    The minimal width of a main window.
  • MWM_MINHEIGHT
    The minimal height of a main window.
  • MWM_BORDER
    The width of the border of a main window.
  • MWM_THICKFRAME
    The width of the thick frame of a main window.
  • MWM_THINFRAME
    The width of the thin frame of a main window.
  • MWM_CAPTIONY
    The height of the caption of a main window.
  • MWM_ICONX
    The width of an icon.
  • MWM_ICONY
    The height of an icon.
  • MWM_MENUBARY
    The height of the menu bar of a main window.
  • MWM_MENUBAROFFX
    The x-offset of the menu bar of a main window.
  • MWM_MENUBAROFFY
    The y-offset of the menu bar of a main window.
  • MWM_MENUITEMY
    The height of a menu item.
  • MWM_INTERMENUITEMX
    The horizontal interval space between two menu items.
  • MWM_INTERMENUITEMY
    The vertical interval space between two menu items.
  • MWM_MENUITEMOFFX
    The horizontal offset of a menu item.
  • MWM_MENUTOPMARGIN
    The top margin of a menu item.
  • MWM_MENUBOTTOMMARGIN
    The bottom margin of a menu item.
  • MWM_MENULEFTMARGIN
    The bottom margin of a menu item.
  • MWM_MENURIGHTMARGIN
    The right margin of a menu item.
  • MWM_MENUITEMMINX
    The minimal width of a menu item.
  • MWM_MENUSEPARATORY
    The height of a separator menu item.
  • MWM_MENUSEPARATORX
    The width of a separator menu item.
  • MWM_SB_HEIGHT
    The height of the button on the scroll bar.
  • MWM_SB_WIDTH
    The width of the button on the scroll bar.
  • MWM_SB_INTERX
  • MWM_CXVSCROLL
    The width of a vertical scroll bar.
  • MWM_CYVSCROLL
    The height of a vertical scroll bar.
  • MWM_CXHSCROLL
    The width of a horizontal scroll bar.
  • MWM_CYHSCROLL
    The height of a horizontal scroll bar.
  • MWM_MINBARLEN
    The minimal track-bar length of a scroll bar.
  • MWM_DEFBARLEN
    The default track-bar length of a scroll bar.

Returns:
The metrics value of the window element, -1 for error.
See also:
SetWindowElementMetricsEx

DWORD GUIAPI GetWindowExStyle HWND  hWnd  ) 
 

Retrives the extended style of a window.

This function retrives the extended style of the window specified by hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The extended style of the window.
See also:
GetWindowStyle

PLOGFONT GUIAPI GetWindowFont HWND  hWnd  ) 
 

Retrives the default font of a window.

This function retrives the default font of the specified window hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The default logical font of the window.
See also:
SetWindowFont

BOOL GUIAPI GetWindowRect HWND  hWnd,
PRECT  prc
 

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).

Parameters:
hWnd The handle to the window.
prc The pointer to a RECT structure which will contains the window rectangle.
Returns:
TRUE on success, otherwise FALSE.
See also:
GetClientRect

DWORD GUIAPI GetWindowStyle HWND  hWnd  ) 
 

Retrives the style of a window.

This function retrives the style of the window specified by hWnd.

Parameters:
hWnd The handle to the window.
Returns:
The style of the window.
See also:
GetWindowExStyle

int GUIAPI GetWindowText HWND  hWnd,
char *  spString,
int  nMaxLen
 

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.

Parameters:
hWnd The handle to the window.
spString The pointer to a buffer receives the text.
nMaxLen The maximal number of characters can be copied to the buffer.
Returns:
The length of the window text string.
See also:
GetWindowCaption, SetWindowText

int GUIAPI GetWindowTextLength HWND  hWnd  ) 
 

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.

Parameters:
hWnd The handle to the window.
Returns:
The length of the window's text.
See also:
GetWindowText

HWND GUIAPI GetWindowUnderCursor void   ) 
 

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.

Returns:
The handle to the window under the mouse cursor, 0 for no window is under the mouse.

BOOL GUIAPI IncludeWindowExStyle HWND  hWnd,
DWORD  dwStyle
 

Includes the specific extended style of a window.

This function includes the specific extended style of the window specified by hWnd.

Parameters:
hWnd The handle to the window.
dwStyle The specific extended style which will be included.
Returns:
TRUE on success, otherwise FALSE.
See also:
IncludeWindowStyle

BOOL GUIAPI IncludeWindowStyle HWND  hWnd,
DWORD  dwStyle
 

Includes the specific style of a window.

This function includes the specific style of the window specified by hWnd.

Parameters:
hWnd The handle to the window.
dwStyle The specific style which will be included.
Returns:
TRUE on success, otherwise FALSE.
See also:
IncludeWindowStyle

BOOL GUIAPI InvalidateRect HWND  hWnd,
const RECT prc,
BOOL  bEraseBkgnd
 

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.

Parameters:
hWnd The handle to the window.
prc The pointer to a RECT structure which defines the invalid rectangle.
bEraseBkgnd Indicates whether the background should be erased.
Returns:
TRUE on success, otherwise FALSE.
See also:
MSG_PAINT

BOOL GUIAPI IsControl HWND  hWnd  ) 
 

Determines whether a window is a control.

This function determines whether the specified window hWnd is a control.

Parameters:
hWnd The handle to the window.
Returns:
TRUE for control, otherwise FALSE.
See also:
IsMainWindow, IsWindow

BOOL GUIAPI IsDialog HWND  hWnd  ) 
 

Determines whether a window handle identifies a dialog window.

This function determines whether the specified window handle hWnd identifies a dialog window.

Parameters:
hWnd The window handle.
Returns:
TRUE for dialog window, otherwise FALSE.
See also:
IsMainWindow, IsControl

BOOL GUIAPI IsMainWindow HWND  hWnd  ) 
 

Determines whether a window is a main window.

This function determines whether the specified window hWnd is a main window or not.

Parameters:
hWnd The handle to the window.
Returns:
TRUE for main window, otherwise FALSE.
See also:
IsControl, IsWindow

BOOL GUIAPI IsWindow HWND  hWnd  ) 
 

Determines whether a window handle identifies an existing window.

This function determines whether the specified window handle hWnd identifies an existing window.

Parameters:
hWnd The window handle.
Returns:
TRUE for window, otherwise FALSE.
See also:
IsMainWindow, IsControl

BOOL GUIAPI IsWindowEnabled HWND  hWnd  ) 
 

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.

Parameters:
hWnd The handle to the window.
Returns:
The enable/disable state of the window, TRUE for enabled.
See also:
EnableWindow

BOOL GUIAPI IsWindowVisible HWND  hWnd  ) 
 

Retrieves the visibility state of a window.

This function retrives the visibility state of the specified window hWnd.

Parameters:
hWnd The handle to the window.
Returns:
TRUE if visible, otherwise FALSE.
See also:
ShowWindow

BOOL GUIAPI MoveWindow HWND  hWnd,
int  x,
int  y,
int  w,
int  h,
BOOL  fPaint
 

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.

Parameters:
hWnd The handle to the window.
x The new x coordinate of the upper-left corner of the window.
y The new y coordinate of the upper-left corner of the window.
w The new width of the window.
h The new height of the window.
fPaint Indicates whether the window should be repainted.
Returns:
TRUE on success, otherwise FALSE.
See also:
ScrollWindow

void GUIAPI ReleaseCapture void   ) 
 

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.

See also:
GetCapture, SetCapture

void GUIAPI ScreenToClient HWND  hWnd,
int *  x,
int *  y
 

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.

Parameters:
hWnd The handle to the window.
x The pointer to the x coordinate.
y The pointer to the y coordinate.
See also:
ClientToScreen

void GUIAPI ScreenToWindow HWND  hWnd,
int *  x,
int *  y
 

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.

Parameters:
hWnd The handle to the window.
x The pointer to the x coordinate.
y The pointer to the y coordinate.
See also:
WindowToScreen

void GUIAPI ScrollWindow HWND  hWnd,
int  iOffx,
int  iOffy,
const RECT rc1,
const RECT rc2
 

Scrolls the content of a window's client area.

This function scrolls the content of the specified window's client area.

Parameters:
hWnd The handle to the window.
iOffx The new x coordinate of the origin in the client coordinates system after scrolling.
iOffy The new y coordinate of the origin in the client coordinates system after scrolling.
rc1 The rectangle of the area which will be scrolled actually. NULL for whole client area.
rc2 A rectangle, all children covered totally by this rectangle will be moved after scrolling. All of the children will be moved if rc2 is NULL.
See also:
MoveWindow

HWND GUIAPI SetActiveWindow HWND  hMainWnd  ) 
 

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.

Parameters:
hMainWnd The handle to the new active main window.
Returns:
The handle to the old active main window.
See also:
GetActiveWindow, SetFocusChild

HWND GUIAPI SetCapture HWND  hWnd  ) 
 

Sets the mouse capture to the specified window.

This function sets the mouse capture to the specified wind