OPTIONS "C_CALL LABELCHECK WINFUNC NOSOURCE"
LIBRARY rexxgui
DO
FUNCDEF("GetStockObject", "void, 32u", "gdi32")
FUNCDEF("SetBkColor", "32u, void, 32u", "gdi32")
FUNCDEF("SetTextColor", "32u, void, 32u", "gdi32")
CATCH FAILURE
CONDITION("M")
RETURN
END
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_ctlcolorstatic:
settextcolor(ARG(1), 125 * 256 )
setbkcolor(ARG(1), 255 )
RETURN getstockobject(5 ) |