DlgStruct.cpp
资源名称:Skinload.rar [点击查看]
上传用户:tjjuxin
上传日期:2021-06-01
资源大小:3552k
文件大小:2k
源码类别:
Shell编程
开发平台:
Visual C++
- // DlgStruct.cpp : implementation file
- //
- #include "stdafx.h"
- #include "SkiиArt.h"
- #include "DlgStruct.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgStruct dialog
- CDlgStruct::CDlgStruct(CWnd* pParent /*=NULL*/, char *szBuff, int i)
- : CDialog(CDlgStruct::IDD, pParent)
- {
- m_szBuff = szBuff;
- m_itype = i;
- //{{AFX_DATA_INIT(CDlgStruct)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CDlgStruct::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgStruct)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlgStruct, CDialog)
- //{{AFX_MSG_MAP(CDlgStruct)
- ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgStruct message handlers
- BOOL CDlgStruct::OnInitDialog()
- {
- CDialog::OnInitDialog();
- SetDlgItemText(IDC_EDIT1, m_szBuff);
- OnChangeEdit1();
- if (m_itype==0)
- {
- SetWindowText("[结构列表] - PE头部");
- }
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CDlgStruct::OnChangeEdit1()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
- CEdit *pEdit = (CEdit*)GetDlgItem(IDC_EDIT1);
- // CRect rec;
- // pEdit->GetRect(&rec);
- if(pEdit->GetLineCount() > 27)
- {
- pEdit->ShowScrollBar(SB_VERT, TRUE);
- }
- else
- {
- pEdit->ShowScrollBar(SB_VERT, FALSE);
- }
- // TODO: Add your control notification handler code here
- }