This file contains the basic WIN32 API interface to a "window"
An example of usage
BasicWin.f contains the following definitions of interest:
GetHandle: ( -- hWnd)
return the window handle
PutHandle: ( hWnd)
set the window handle
SendMessage: ( lparam wparam msg -- result)
Show: ( -- )
show the window
Hide: ( -- )
hide the window
GetWindowLong: ( offset -- n)
get window memory contents at offset
SetWindowLong: ( n offset)
set window memory contents at offset
GetWindowRect: ( -- b r t l)
get window bounding rectangle
GetSize: ( -- cx cy)
returns dimension of window rectangle
SetSize: ( cx cy)
set window dimensions of window rectangle
GetClientSize: ( -- cx cy)
returns dimension of window's client area
GetPosition: ( -- x y)
returns position of upper-left corner
SetPosition: ( x y)
set position of upper-left corner
Destroy: ( -- )
destroy the window
GetID: ( -- id)
retrieve window identifier
SetID: ( id)
set the window identifier
GetStyle: ( -- style)
retrieve basic window style
SetStyle: ( style)
set the basic window style
+Style: ( style)
add to the basic window style
-Style: ( style)
remove from the basic window style
GetExStyle: ( -- exStyle)
retrieve extended window style
SetExStyle: ( exStyle)
set the extended window style
+ExStyle: ( exStyle)
add to the extended window style
-ExStyle: ( exStyle)
add to the extended window style
GetParent: ( -- hParent)
get handle of the window's parent window
SetParent: ( hWnd)
changes the parent window of the window
Enable: ( -- )
enables mouse and keyboard input to the window or control
Disable: ( -- )
disables mouse and keyboard input to the window or control
SetFocus: ( -- )
sets the keyboard focus to this window
IsVisible: ( -- f)
ff=window not visible
SetText: ( szText)
send text to window/control
GetText: ( -- a n)
get window/control text