ciderpress/app/EditCommentDialog.h
Andy McFadden 759f0d820f WinHelp to HtmlHelp conversion, part 2
This updates the various dialogs to use the new functions.  The help
system should be fully functional now.
2014-12-09 14:10:52 -08:00

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*/