Add "don't show" to ShowComment.
This commit is contained in:
@@ -17,6 +17,7 @@ static char THIS_FILE[] = __FILE__;
|
|||||||
|
|
||||||
ShowComment::ShowComment(CWnd* pParent /*=NULL*/)
|
ShowComment::ShowComment(CWnd* pParent /*=NULL*/)
|
||||||
: CDialog(ShowComment::IDD, pParent)
|
: CDialog(ShowComment::IDD, pParent)
|
||||||
|
, m_bDontShow(FALSE)
|
||||||
{
|
{
|
||||||
//{{AFX_DATA_INIT(ShowComment)
|
//{{AFX_DATA_INIT(ShowComment)
|
||||||
// NOTE: the ClassWizard will add member initialization here
|
// NOTE: the ClassWizard will add member initialization here
|
||||||
@@ -30,6 +31,7 @@ void ShowComment::DoDataExchange(CDataExchange* pDX)
|
|||||||
//{{AFX_DATA_MAP(ShowComment)
|
//{{AFX_DATA_MAP(ShowComment)
|
||||||
DDX_Control(pDX, IDC_EDIT, m_edit);
|
DDX_Control(pDX, IDC_EDIT, m_edit);
|
||||||
//}}AFX_DATA_MAP
|
//}}AFX_DATA_MAP
|
||||||
|
DDX_Check(pDX, IDC_DONTSHOW, m_bDontShow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ protected:
|
|||||||
virtual BOOL OnInitDialog();
|
virtual BOOL OnInitDialog();
|
||||||
//}}AFX_MSG
|
//}}AFX_MSG
|
||||||
DECLARE_MESSAGE_MAP()
|
DECLARE_MESSAGE_MAP()
|
||||||
|
public:
|
||||||
|
BOOL m_bDontShow;
|
||||||
};
|
};
|
||||||
|
|
||||||
//{{AFX_INSERT_LOCATION}}
|
//{{AFX_INSERT_LOCATION}}
|
||||||
|
|||||||
@@ -52,8 +52,8 @@
|
|||||||
#define IDC_BUTTON_OVERRIDE 1037
|
#define IDC_BUTTON_OVERRIDE 1037
|
||||||
#define IDC_BUTTON_HELP 1038
|
#define IDC_BUTTON_HELP 1038
|
||||||
#define IDC_BUTTON_CLOSE 1039
|
#define IDC_BUTTON_CLOSE 1039
|
||||||
#define IDC_CHECK1 1040
|
|
||||||
#define IDC_DONTASK 1041
|
#define IDC_DONTASK 1041
|
||||||
|
#define IDC_DONTSHOW 1042
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 147
|
#define _APS_NEXT_RESOURCE_VALUE 147
|
||||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1042
|
#define _APS_NEXT_CONTROL_VALUE 1043
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -240,15 +240,17 @@ BEGIN
|
|||||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,20,181,145,11
|
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,20,181,145,11
|
||||||
END
|
END
|
||||||
|
|
||||||
IDD_SHOW_COMMENT DIALOG 0, 0, 246, 186
|
IDD_SHOW_COMMENT DIALOGEX 0, 0, 246, 186
|
||||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
CAPTION "Package Comment"
|
CAPTION "Package Comment"
|
||||||
FONT 8, "MS Sans Serif"
|
FONT 8, "MS Sans Serif", 0, 0, 0x0
|
||||||
BEGIN
|
BEGIN
|
||||||
EDITTEXT IDC_EDIT,7,7,232,151,ES_MULTILINE | ES_AUTOHSCROLL |
|
EDITTEXT IDC_EDIT,7,7,232,137,ES_MULTILINE | ES_AUTOHSCROLL |
|
||||||
ES_READONLY
|
ES_READONLY
|
||||||
DEFPUSHBUTTON "OK",IDOK,72,165,50,14
|
DEFPUSHBUTTON "OK",IDOK,72,165,50,14
|
||||||
PUSHBUTTON "Cancel",IDCANCEL,128,165,50,14
|
PUSHBUTTON "Cancel",IDCANCEL,128,165,50,14
|
||||||
|
CONTROL "Don't display this dialog in the future",IDC_DONTSHOW,
|
||||||
|
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,149,145,11
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user