$OPTIMIZE ON
$TYPECHECK ON
$INCLUDE "rapidq.inc"
$ESCAPECHARS ON
DECLARE FUNCTION GetDC LIB "User32" ALIAS "GetDC" (hWnd AS LONG) AS LONG
DECLARE FUNCTION BitBlt LIB "Gdi32" ALIAS "BitBlt" (hdcDest AS LONG, nXDest AS LONG, nYDest AS LONG, nWidth AS LONG, nHeight AS LONG, hdcSrc AS LONG, nXSrc AS LONG, nYSrc AS LONG, dwRop AS LONG) AS LONG
CONST SRCCOPY = &H00CC0020
DECLARE SUB Button_OnClick
CREATE Form AS QFORM
Height = 300
Width = 300
Center
CREATE Button AS QBUTTON
CAPTION = "&Go!"
Top = 35
Left = 5
OnClick = Button_OnClick
END CREATE
END CREATE
CREATE Bitmap AS QBITMAP
Height = 25
Width = 25
BMP = "rq.bmp"
END CREATE
Form.SHOWMODAL
SUB Button_OnClick
BitBlt(GetDC(Form.Handle), 100, 100, 25, 25, Bitmap.Handle, 0, 0, SRCCOPY)
END SUB
|