// DlgCreateRecipe.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù.
|
//
|
|
#include "stdafx.h"
|
#include "ReviewRecipeEditor.h"
|
#include "DlgCreateRecipe.h"
|
|
|
// CDlgCreateRecipe ´ëÈ »óÀÚÀÔ´Ï´Ù.
|
|
IMPLEMENT_DYNAMIC(CDlgCreateRecipe, CDialog)
|
|
CDlgCreateRecipe::CDlgCreateRecipe(CWnd* pParent /*=NULL*/)
|
: CDialog(CDlgCreateRecipe::IDD, pParent)
|
, m_strRecipeName(_T(""))
|
{
|
|
}
|
|
CDlgCreateRecipe::~CDlgCreateRecipe()
|
{
|
}
|
|
void CDlgCreateRecipe::DoDataExchange(CDataExchange* pDX)
|
{
|
CDialog::DoDataExchange(pDX);
|
DDX_Text(pDX, IDC_EDIT_RCP_CREATE_RECIPE_NAME, m_strRecipeName);
|
}
|
|
|
BEGIN_MESSAGE_MAP(CDlgCreateRecipe, CDialog)
|
ON_BN_CLICKED(IDOK, &CDlgCreateRecipe::OnBnClickedOk)
|
ON_BN_CLICKED(IDCANCEL, &CDlgCreateRecipe::OnBnClickedCancel)
|
END_MESSAGE_MAP()
|
|
|
// CDlgCreateRecipe ¸Þ½ÃÁö 󸮱âÀÔ´Ï´Ù.
|
|
void CDlgCreateRecipe::OnBnClickedOk()
|
{
|
// TODO: ¿©±â¿¡ ÄÁÆ®·Ñ ¾Ë¸² 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
|
OnOK();
|
}
|
|
void CDlgCreateRecipe::OnBnClickedCancel()
|
{
|
// TODO: ¿©±â¿¡ ÄÁÆ®·Ñ ¾Ë¸² 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
|
OnCancel();
|
}
|
|
BOOL CDlgCreateRecipe::OnInitDialog()
|
{
|
CDialog::OnInitDialog();
|
|
// TODO: ¿©±â¿¡ Ãß°¡ ÃʱâÈ ÀÛ¾÷À» Ãß°¡ÇÕ´Ï´Ù.
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
// ¿¹¿Ü: OCX ¼Ó¼º ÆäÀÌÁö´Â FALSE¸¦ ¹ÝÈ¯ÇØ¾ß ÇÕ´Ï´Ù.
|
}
|
|
BOOL CDlgCreateRecipe::PreTranslateMessage(MSG* pMsg)
|
{
|
// TODO: ¿©±â¿¡ Ư¼öÈµÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù.
|
if( pMsg->message == WM_KEYDOWN )
|
{
|
if(pMsg->wParam == VK_RETURN || pMsg->wParam == VK_ESCAPE )
|
{
|
::TranslateMessage(pMsg);
|
::DispatchMessage(pMsg);
|
return TRUE;
|
}
|
}
|
|
return CDialog::PreTranslateMessage(pMsg);
|
}
|