#uselib "gdi32"
#func SetBkColor "SetBkColor" sptr,sptr
#cfunc CreateSolidBrush "CreateSolidBrush" sptr
#func DeleteObject "DeleteObject" sptr
#func SetTextColor "SetTextColor" sptr,sptr
#uselib "user32.dll"
#func SetClassLong "SetClassLongA" sptr,sptr,sptr
#define WHITE_BRUSH $00000000
#define GCL_HBRBACKGROUND $FFFFFFF6
#define BLACK_BRUSH $00000004
#define ctype crgb(%1,%2,%3) (%1|(%2<<8)|(%3<<16))
#define WM_CTLCOLORLISTBOX 0x0134
hbrush = CreateSolidBrush ( crgb ( 0, 0, 0 ) )
oncmd gosub *text, WM_CTLCOLORLISTBOX
onexit *exit
objmode 2
font msgothic, 42
objsize 200, 200
liststr = "\n\n人\n類\n補\n完計画"
listbox list, 100, liststr
stop
*text
SetClassLong objinfo ( 0, 2 ), GCL_HBRBACKGROUND, hbursh
SetBkColor wparam, crgb( 0, 0, 0 )
SetTextColor wparam, crgb( 255, 255, 255 )
return hbrush
*exit
DeleteObject hbursh
end