【VC开源代码栏目提醒】:以下是网学会员为您推荐的VC开源代码-DlgStorageInfo.cpp,希望本篇文章对您学习有所帮助。
// DlgStorageInfo.cpp : implementation file
//
#include "stdafx.h"
#include "aaa.h"
#include "DlgStorageInfo.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgStorageInfo1 dialog
CDlgStorageInfo1::CDlgStorageInfo1(CWnd* pParent /*=NULL*/)
: CDialog(CDlgStorageInfo1::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgStorageInfo1)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDlgStorageInfo1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgStorageInfo1)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
void CDlgStorageInfo1::OnOK()
{
//ADD CODE
}
BEGIN_MESSAGE_MAP(CDlgStorageInfo1, CDialog)
//{{AFX_MSG_MAP(CDlgStorageInfo1)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgStorageInfo message handlers
BOOL CDlgStorageInfo1::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message ==WM_KEYDOWN)
if (pMsg->wParam == 13)
pMsg->wParam = 9;
else if (pMsg->wParam == VK_ESCAPE)
return true;
return CDialog::PreTranslateMessage(pMsg);
}