22 #ifndef BAGEL_BOFLIB_GUI_DIALOG_H 23 #define BAGEL_BOFLIB_GUI_DIALOG_H 25 #include "bagel/boflib/gui/window.h" 26 #include "bagel/boflib/gfx/bitmap.h" 33 #define BOFDLG_TRANSPARENT 0x00000001 34 #define BOFDLG_SAVEBACKGND 0x00000002 36 #define BOFDLG_DEFAULT (BOFDLG_TRANSPARENT ) 42 int _nReturnValue = 0;
44 bool _bFirstTime =
false;
45 bool _bTempBitmap =
false;
46 bool _bEndDialog =
false;
47 bool _bHavePainted =
false;
50 virtual ErrorCode paint(
CBofRect *pRect);
51 virtual ErrorCode paintBackground();
52 virtual ErrorCode saveBackground();
53 virtual ErrorCode killBackground();
55 void onPaint(
CBofRect *pRect)
override;
56 void onClose()
override;
57 virtual void onInitDialog();
68 CBofDialog(
const char *pszFileName,
CBofWindow *pParent, uint32 nID = 0, uint32 lFlags = BOFDLG_DEFAULT);
86 ErrorCode
create(
const char *pszName,
int x,
int y,
int nWidth,
int nHeight,
CBofWindow *pParent, uint32 nControlID = 0)
override;
128 _nReturnValue = nValue;
136 return _nReturnValue;
void setFlags(uint32 lFlags)
Definition: dialog.h:101
uint32 getFlags() const
Definition: dialog.h:108
void setReturnValue(int nValue)
Definition: dialog.h:127
void endModal()
Definition: dialog.h:120
int getReturnValue() const
Definition: dialog.h:135
ErrorCode create(const char *pszName, int x, int y, int nWidth, int nHeight, CBofWindow *pParent, uint32 nControlID=0) override