22 #ifndef HODJNPODJ_HNPLIBS_RULES_H 23 #define HODJNPODJ_HNPLIBS_RULES_H 25 #include "bagel/hodjnpodj/hnplibs/dibdoc.h" 30 #define IDD_RULES_DIALOG 900 31 #define IDC_RULES_OKAY 900 33 #define IDC_RULES_ARROWDN 901 34 #define IDC_RULES_ARROWUP 902 35 #define IDC_RULES_INVALID 903 41 CRules(
CWnd *pParent =
nullptr,
const char *pszPathName =
nullptr,
42 CPalette *pPalette =
nullptr,
const char *pszSoundPath =
nullptr);
44 void UpdateScroll(
int nPage);
45 void ClearDialogImage();
46 void RefreshBackground();
50 bool SetupKeyboardHook();
51 void RemoveKeyboardHook();
53 static CDibDoc *LoadScrollDIB(
const char *pSpec,
CRect *pRect);
54 static bool PaintScrollDIB(
CDC *pDC,
CDibDoc *pDibDoc);
60 bool CreateWorkAreas(
CDC *pDC);
61 void UnfurlScroll(
CDC *pDC);
62 void UpdateMore(
CDC *pDC);
63 void WritePage(
CDC *pDC,
int nPage);
64 void ShowWaitCursor();
65 void DoWaitCursor(
int nCode)
override {
71 bool m_bKeyboardHook =
false;
78 CRect ScrollTopCurlRect,
83 enum { IDD = IDD_RULES_DIALOG };
94 virtual bool OnInitDialog()
override;
95 afx_msg
bool OnEraseBkgnd(
CDC *pDC);
96 virtual void OnOK()
override;
97 virtual void OnCancel()
override;
98 afx_msg
void OnDestroy();
99 afx_msg
void OnPaint();
100 afx_msg
void OnShowWindow(
bool bShow,
unsigned int nStatus);
101 afx_msg
void OnSize(
unsigned int nType,
int cx,
int cy);
102 afx_msg
void OnMouseMove(
unsigned int nFlags,
CPoint point);
103 afx_msg
bool OnSetCursor(
CWnd *pWnd,
unsigned int nHitTest,
unsigned int message);
104 afx_msg
void OnLButtonDown(
unsigned int nFlags,
CPoint point);
105 afx_msg
void OnActivate(
unsigned int nState,
CWnd *pWndOther,
bool bMinimized)
override;
107 DECLARE_MESSAGE_MAP()
Definition: afxwin.h:1141
Definition: minwindef.h:292
Definition: afxwin.h:1116
Definition: afxwin.h:1599
virtual void DoWaitCursor(int nCode)
Definition: atltypes.h:131
Definition: atltypes.h:79