Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
DlgStruct.cpp
Package: Skinload.rar [view]
Upload User: tjjuxin
Upload Date: 2021-06-01
Package Size: 3552k
Code Size: 2k
Category:
Shell api
Development Platform:
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
- }