CONST REO_NULL = 0
CONST REO_READWRITEMASK = &H3F
CONST REO_DONTNEEDPALETTE = &H20
CONST REO_BLANK = &H10
CONST REO_DYNAMICSIZE = &H08
CONST REO_INVERTEDSELECT = &H04
CONST REO_BELOWBASELINE = &H02
CONST REO_RESIZABLE = &H01
DECLARE FUNCTION InsertBitmapFromFile LIB "REImage.dll" ALIAS "InsertBitmapFromFile" (rEdit AS LONG, FileName AS STRING, dwFlags AS LONG) AS INTEGER
DECLARE SUB Form_Load
CREATE Form AS QFORM
CAPTION = "Form1"
Width = 320
Height = 240
Center
CREATE RichEdit1 AS QRICHEDIT
Left = 0
Top = 0
Width = 312
Height = 213
Align = 5
AddStrings "RichEdit1"
END CREATE
onShow = Form_Load
END CREATE
Form.SHOWMODAL
SUB Form_Load
DIM s AS STRING
s = "Spiral.bmp"
InsertBitmapFromFile(RichEdit1.Handle, s , REO_RESIZABLE)
END SUB
|