22 #ifndef HODJNPODJ_HNPLIBS_CMESSBOX_H 23 #define HODJNPODJ_HNPLIBS_CMESSBOX_H 25 #include "bagel/afxwin.h" 26 #include "bagel/hodjnpodj/hnplibs/cbofdlg.h" 27 #include "bagel/hodjnpodj/hnplibs/text.h" 32 #define TEXT_COLOR RGB(0, 0, 0) // displayed text color 34 #define MESSAGE_COL 16 // first message box positioning 35 #define MESSAGE_ROW 60 37 #define MESSAGE_WIDTH 186 // standard message box dims 38 #define MESSAGE_HEIGHT 20 40 #define MESSAGE2_ROW_OFFSET ( MESSAGE_HEIGHT + 4 ) // Row offset from first 43 #define IDD_GAMEOVER 201 47 CText *m_cTextMessage1, *m_cTextMessage2;
48 const char *m_pMessage1, *m_pMessage2;
52 CMessageBox(
CWnd *pParent,
CPalette *pPalette,
const char *msg1,
const char *msg2 =
nullptr,
const int dx = -1,
const int dy = -1);
54 void ClearDialogImage();
58 enum { IDD = IDD_GAMEOVER };
68 afx_msg
void OnPaint();
69 virtual void OnOK()
override;
70 virtual void OnCancel()
override;
71 virtual bool OnInitDialog()
override;
72 afx_msg
void OnDestroy();
73 afx_msg
bool OnEraseBkgnd(
CDC *pDC);
Definition: afxwin.h:1141
Definition: minwindef.h:292
Definition: cmessbox.h:45