-
Notifications
You must be signed in to change notification settings - Fork 2
/
ChoosePriConDialog.h
44 lines (33 loc) · 1.14 KB
/
ChoosePriConDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "ChooseColorStatic.h"
#include "BaseColorDialog.h"
#include "ColorDialogCallback.h"
// CChoosePriConDialog dialog
class CChoosePriConDialog : public CBaseColorDialog, public IColorDialogCallback
{
public:
CChoosePriConDialog(CWnd* pParent = NULL); // standard constructor
virtual ~CChoosePriConDialog();
// IColorDialogCallback
void OnColorClick(BYTE bIndex, int nID, BOOL fLeftClick);
void OnColorHover(BYTE bIndex);
void SetCaptionID(UINT nID) { _nID = nID; }
BYTE GetColor() { return _bChoice; }
void SetColor(BYTE bChoice) { _bChoice = bChoice; m_wndStatic.SetSelection(bChoice); }
// Provide a 16 entry text array here.
void SetStatusText(const char **rgStatusText) { _rgStatusText = rgStatusText; }
// Dialog Data
enum { IDD = IDD_DIALOGPRICON };
private:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
CChooseColorStatic m_wndStatic;
CExtLabel m_wndStaticCaption;
CExtLabel m_wndStaticStatus;
// Visuals
CExtButton m_wndCancel;
CExtCheckBox m_wndOption;
UINT _nID;
BYTE _bChoice;
const char **_rgStatusText;
};