mirror of
https://github.com/fadden/ciderpress.git
synced 2024-11-26 17:49:21 +00:00
759f0d820f
This updates the various dialogs to use the new functions. The help system should be fully functional now.
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
/*
|
|
* Edit a comment.
|
|
*/
|
|
#ifndef APP_EDITCOMMENTDIALOG_H
|
|
#define APP_EDITCOMMENTDIALOG_H
|
|
|
|
#include "GenericArchive.h"
|
|
#include "resource.h"
|
|
|
|
/*
|
|
* Edit a comment. We don't currently put a length limit on the comment
|
|
* field.
|
|
*/
|
|
class EditCommentDialog : public CDialog {
|
|
public:
|
|
EditCommentDialog(CWnd* pParentWnd = NULL) :
|
|
CDialog(IDD_COMMENT_EDIT, pParentWnd)
|
|
{
|
|
fNewComment = false;
|
|
}
|
|
virtual ~EditCommentDialog(void) {}
|
|
|
|
enum { kDeleteCommentID = IDC_COMMENT_DELETE };
|
|
|
|
CString fComment;
|
|
bool fNewComment; // entry doesn't already have one
|
|
|
|
protected:
|
|
virtual BOOL OnInitDialog(void) override;
|
|
virtual void DoDataExchange(CDataExchange* pDX) override;
|
|
|
|
afx_msg BOOL OnHelpInfo(HELPINFO* lpHelpInfo) {
|
|
return MyApp::HandleHelpInfo(lpHelpInfo);
|
|
}
|
|
afx_msg void OnHelp(void) {
|
|
MyApp::HandleHelp(this, HELP_TOPIC_EDIT_COMMENT);
|
|
}
|
|
|
|
/*
|
|
* User wants to delete the comment. Verify first.
|
|
*/
|
|
afx_msg void OnDelete(void);
|
|
|
|
private:
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
#endif /*APP_EDITCOMMENTDIALOG_H*/
|