| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "KeypadDialog.h" |
| 23 |
#include "gr.h" |
| 24 |
#include "doorway.h" |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
class CDoorwayDialog : public CKeypadDialog { |
| 30 |
|
| 31 |
public: |
| 32 |
CDoorwayDialog(CWnd *pParent = NULL); |
| 33 |
void UpdateKeypad(int mask); |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
enum { IDD = IDD_DOORWAYKEYPAD }; |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
protected: |
| 45 |
virtual void DoDataExchange(CDataExchange *pDX); |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
protected: |
| 50 |
|
| 51 |
|
| 52 |
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar); |
| 53 |
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar); |
| 54 |
afx_msg void OnSize(UINT nType, int cx, int cy); |
| 55 |
afx_msg void OnPaint(); |
| 56 |
virtual BOOL OnInitDialog(); |
| 57 |
afx_msg void OnDoorwayPlaceDoorway(); |
| 58 |
afx_msg void OnNextDoor(); |
| 59 |
afx_msg void OnPrevDoor(); |
| 60 |
afx_msg void OnDoorwayLocked(); |
| 61 |
afx_msg void OnKey1Check(); |
| 62 |
afx_msg void OnKey2Check(); |
| 63 |
afx_msg void OnKey3Check(); |
| 64 |
afx_msg void OnKey4Check(); |
| 65 |
afx_msg void OnKey5Check(); |
| 66 |
afx_msg void OnKey6Check(); |
| 67 |
afx_msg void OnKey7Check(); |
| 68 |
afx_msg void OnKey8Check(); |
| 69 |
afx_msg void OnDoorwayAttachDoor(); |
| 70 |
afx_msg void OnDoorwayAuto(); |
| 71 |
afx_msg void OnKillfocusDoorwayPosEdit(); |
| 72 |
afx_msg void OnKillfocusDoorwayHitpointEdit(); |
| 73 |
afx_msg void OnDoorwayKeyAll(); |
| 74 |
afx_msg void OnDoorwayKeyOnlyOne(); |
| 75 |
afx_msg void OnDoorwayGBIgnoreLocked(); |
| 76 |
|
| 77 |
DECLARE_MESSAGE_MAP() |
| 78 |
|
| 79 |
virtual void OnOK(); |
| 80 |
|
| 81 |
private: |
| 82 |
void UpdateDialog(); |
| 83 |
void DrawDoorwayDoorPic(); |
| 84 |
void EnableCurrentItems(bool state); |
| 85 |
void OnKeyCheck(int id, int keynum); |
| 86 |
|
| 87 |
grHardwareSurface m_DoorSurf; |
| 88 |
}; |