22#ifndef BAGEL_METAGAME_GTL_PAWN_H
23#define BAGEL_METAGAME_GTL_PAWN_H
25#include "bagel/hodjnpodj/metagame/bgen/invent.h"
26#include "bagel/hodjnpodj/metagame/bgen/item.h"
33#define PAWN_SPEC "art\\mlscroll.bmp"
36#define PAWN_CURL_DX 500
37#define PAWN_CURL_DY 50
38#define PAWN_BORDER_DX 60
39#define PAWN_BORDER_DY 60
41#define PAWN_TITLEZONE_DX 100
42#define PAWN_TITLEZONE_DY 40
43#define PAWN_TITLEZONE_DDY -10
45#define PAWN_TEXTZONE_DX 75
46#define PAWN_TEXTZONE_DY 40
47#define PAWN_TEXTZONE_DDY 20
48#define PAWN_TEXTZONE_DDDY 5
50#define PAWN_COSTZONE_DX 75
51#define PAWN_COSTZONE_DY 20
52#define PAWN_COSTZONE_DDY 20
53#define PAWN_COSTZONE_DDDY 5
55#define PAWN_BITMAP_DX 59
56#define PAWN_BITMAP_DY 59
57#define PAWN_BITMAP_DDX 5
58#define PAWN_BITMAP_DDY 5
60#define IDD_PAWN_DIALOG 940
61#define IDC_PAWN_OKAY 940
63#define IDC_PAWN_DOLLAR 941
65#define PAWN_TEXT_COLOR RGB(128,0,128)
66#define PAWN_MORE_COLOR RGB(0,0,0)
67#define PAWN_BLURB_COLOR RGB(0,0,255)
71 bool bFirstTime =
true;
76 int SelectedItem(
CPoint point);
78 static void UpdatePawn(
CDC *pDC);
79 static void UpdateContent(
CDC *pDC);
80 static void UpdateItem(
CDC *pDC,
CItem *pItem,
int nX,
int nY);
81 static void UpdatePage(
CDC *pDC);
82 static void UpdateCrowns(
CDC *pDC);
83 static void ClearDialogImage();
84 static void RefreshBackground();
85 static void ShowWaitCursor();
86 static void DoArrowCursor();
94 bool SetupKeyboardHook();
95 void RemoveKeyboardHook();
97 bool CreateWorkAreas(
CDC *pDC);
100 bool m_bKeyboardHook =
false;
108 enum { IDD = IDD_PAWN_DIALOG };
119 virtual bool OnInitDialog()
override;
120 afx_msg
bool OnEraseBkgnd(
CDC *pDC);
121 virtual void OnOK()
override;
122 virtual void OnCancel()
override;
123 afx_msg
void OnDestroy();
124 afx_msg
void OnPaint();
125 afx_msg
void OnShowWindow(
bool bShow,
unsigned int nStatus);
126 afx_msg
void OnSize(
unsigned int nType,
int cx,
int cy);
127 afx_msg
void OnMouseMove(
unsigned int nFlags,
CPoint point);
128 afx_msg
bool OnSetCursor(
CWnd *pWnd,
unsigned int nHitTest,
unsigned int message);
129 afx_msg
void OnLButtonDown(
unsigned int nFlags,
CPoint point);
130 afx_msg
void OnActivate(
unsigned int nState,
CWnd *pWndOther,
bool bMinimized)
override;
132 DECLARE_MESSAGE_MAP()
virtual void DoWaitCursor(int nCode)
Definition: afxwin.h:1599
Definition: atltypes.h:79
Definition: atltypes.h:131
Definition: afxwin.h:1141
Definition: minwindef.h:292
Definition: afxwin.h:1116