Useful API functions

In this section:

The following API functions are simple to use and are occasionally useful in ClearWin+ programs. Details can be found in Microsoft SDK documentation.

BringWindowToTop

Brings the specified window to the top of the "Z order".

ClipCursor

Confines the mouse cursor to a given rectangle. Use CORE4(0) to represent the NULL pointer. Use an integer array to represent the RECT structure.

CopyFile

Copies one file to another.

CreateProcess

For simplicity use START_PROCESS@.

EnableWindow

Enables/disables a window.

FindWindow

Finds the handle of a window from its class name and/or its title.

GetDeskTopWindow

Gets the window handle of the screen.

GetWindowLong

Gets window parameters such as style and extended style.

GetWindowText

Gets the title of a window.

IsIconic

Tests if a window is minimised.

IsWindowVisible

Tests if a window is visible.

IsZoomed

Tests if a window is maximised.

MoveWindow

Changes a window's position and dimensions.*

PathFindOnPath

Searches for a specified file looking in standard system directories and on the environment PATH.

SetWindowLong

Sets window parameters such as style and extended style.

SetWindowPos

Changes a window's position, dimensions and state.*

SetWindowText

Sets the title of a window.

ShellExecute

Opens or prints a file (e.g. accesses a website, see USE_URL@).

ShowWindow

Changes a windows state: visible, minimised, etc.

WinExec

Starts another application (see also START_PROCESS@).

WinHelp

Displays a Windows help file.


* See also GET_WINDOW_LOCATION@ and its associated notes.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited