Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
@ 1, 1 BTNBMP;
FILE "C:\FWH\BITMAPS\OPEN.BMP";
NOBORDER
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
@ 1, 1 BTNBMP;
FILE "C:\FWH\BITMAPS\OPEN.BMP";
NOBORDER
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
Code: Select all
METHOD SysCommand( nWParam, nLParam ) CLASS TDialog
if nWParam == SC_CLOSE .and. ::lModal
if GetCapture() != 0 // New !
ReleaseCapture() // New !
endif // New !
return .f.
endif
...