|
/***************************************************************************
ArticleEditDlg.h - Dialog box that lets the user edit the fields of an
article record.
begin : August 2006
copyright : (C) 2006 by Phil Cairns
email : oti169@hotmail.com
$Id: ArticleEditDlg.h 2080 2006-08-18 01:53:19Z phil $
This code may be used in compiled form in any way you desire (including
commercial use). The code may be redistributed unmodified by any means
providing it is not sold for profit without the authors written consent,
and providing that this notice and the authors name and all copyright
notices remains intact.
This software is provided "as is" without express or implied warranty. Use
it at your own risk!
***************************************************************************/
#pragma once
#include "resource.h" // main symbols
#include <atlhost.h>
// CArticleEditDlg
class CArticleEditDlg
: public CAxDialogImpl<CArticleEditDlg>
, public CDialogResize<CArticleEditDlg>
, public CWinDataExchange<CArticleEditDlg>
{
public:
CArticleEditDlg();
~CArticleEditDlg();
CString m_id;
CString m_author;
CString m_title;
CString m_words;
CString m_submitted;
CString m_price;
CString m_content;
CString m_weight;
BOOL m_archived;
static CRect m_lastSize;
enum { IDD = IDD_ARTICLEEDITDLG };
BEGIN_MSG_MAP(CArticleEditDlg)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_HANDLER(IDOK, BN_CLICKED, OnClickedOK)
COMMAND_HANDLER(IDCANCEL, BN_CLICKED, OnClickedCancel)
CHAIN_MSG_MAP(CAxDialogImpl<CArticleEditDlg>)
CHAIN_MSG_MAP(CDialogResize<CArticleEditDlg>)
END_MSG_MAP()
BEGIN_DDX_MAP(CArticleEditDlg)
DDX_TEXT(IDC_ID, m_id)
DDX_TEXT(IDC_AUTHOR, m_author)
DDX_TEXT(IDC_TITLE, m_title)
DDX_TEXT(IDC_WORDS, m_words)
DDX_TEXT(IDC_SUBMITTED, m_submitted)
DDX_TEXT(IDC_PRICE, m_price)
DDX_TEXT(IDC_CONTENT, m_content)
DDX_TEXT(IDC_WEIGHT, m_weight)
DDX_CHECK(IDC_ARCHIVED, m_archived)
END_DDX_MAP()
BEGIN_DLGRESIZE_MAP(CArticleEditDlg)
DLGRESIZE_CONTROL(IDC_CONTENT, DLSZ_SIZE_X | DLSZ_SIZE_Y)
DLGRESIZE_CONTROL(IDOK, DLSZ_MOVE_X | DLSZ_MOVE_Y)
DLGRESIZE_CONTROL(IDCANCEL, DLSZ_MOVE_X | DLSZ_MOVE_Y)
END_DLGRESIZE_MAP()
// Handler prototypes:
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
LRESULT OnClickedCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.