Gfa_hWnd, Gfa_hWndEd, Gfa_Refresh

Window API functions.

Syntax

handle% = Gfa_hWnd

handle% = Gfa_hWndEd

Gfa_Refresh

Description

Gfa_hWnd returns the window handle of the GFA-BASIC 32 IDE as Long.

Gfa_hWndEd returns the window handle of GFA-BASIC 32 source code editor as Long.

Gfa_Refresh immediate redraw of the client area of the editor. Sometimes it is necessary to redraw the source text before an event sub has finished and the invalidated regions are redrawn.

Example

Dim h As Handle = Gfa_hWnd

Remarks

Gfa_Refresh is internally implemented as UpdateWindow(Gfa_hWndEd). A WM_PAINT message is send to the window only if the window's update region (the portion of the window's client area that must be redrawn) is not empty. Normally, when a line is changed, GFA-BASIC 32 adds the area occupied by a line to the Gfa_hWndEd window's update region with the InvalidateRect function. Eventually, Windows sends the WM_PAINT message when there are no other messages in the application queue for that window.

See Also

Gfa_StatusText

{Created by Sjouke Hamstra; Last updated: 08/10/2014 by James Gaite}