📄 bodyinfodlg.cpp
字号:
// BodyinfoDlg.cpp : implementation file
//
#include "stdafx.h"
#include "test.h"
#include "BodyinfoDlg.h"
#include "InputBodyInfoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBodyinfoDlg dialog
CBodyinfoDlg::CBodyinfoDlg(CWnd* pParent /*=NULL*/)
: CDialog(CBodyinfoDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CBodyinfoDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CBodyinfoDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBodyinfoDlg)
DDX_Control(pDX, IDC_BODYINFOLIST, m_bodyInfoList);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CBodyinfoDlg, CDialog)
//{{AFX_MSG_MAP(CBodyinfoDlg)
ON_BN_CLICKED(IDC_BUTTON_INPUTBODYINFO, OnButtonInputbodyinfo)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBodyinfoDlg message handlers
BOOL CBodyinfoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
CenterWindow(GetDesktopWindow()); // center to the hpc screen
ListView_SetExtendedListViewStyle(m_bodyInfoList.m_hWnd,
LVS_EX_FULLROWSELECT|LVS_EX_HEADERDRAGDROP);
m_bodyInfoList.SetTextBkColor(RGB(20,50,60));
m_bodyInfoList.SetTextColor(RGB(10,250,0));
m_bodyInfoList.SetBkColor(RGB(0,255,0));
m_bodyInfoList.InsertColumn(0 ,_T("记录时间") , LVCFMT_LEFT ,73);
m_bodyInfoList.InsertColumn(1 ,_T("内容") , LVCFMT_LEFT ,134);
m_bodyInfoList.InsertColumn(2 ,_T("护士") , LVCFMT_LEFT ,37);
m_bodyInfoList.InsertColumn(3 ,_T("备注"), LVCFMT_LEFT ,40);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CBodyinfoDlg::OnButtonInputbodyinfo()
{
// TODO: Add your control notification handler code here
CInputBodyInfoDlg dlg;
if(dlg.DoModal()==IDOK)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -