- 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
PCHNGPG.CPP
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- // PropertyChangesPage.Cpp : implementation file
- //
- #include "StdAfx.H"
- #include "TestCon.H"
- #include "Resource.hm"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CPropertyChangesPage property page
- IMPLEMENT_DYNCREATE(CPropertyChangesPage, CPropertyPage)
- CPropertyChangesPage::CPropertyChangesPage() :
- CPropertyPage( CPropertyChangesPage::IDD )
- {
- m_psp.dwFlags &= ~PSP_HASHELP;
- //{{AFX_DATA_INIT(CPropertyChangesPage)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CPropertyChangesPage::~CPropertyChangesPage()
- {
- }
- void CPropertyChangesPage::DoDataExchange( CDataExchange* pDX )
- {
- int iProperty;
- int iItem;
- CPropertyPage::DoDataExchange( pDX );
- //{{AFX_DATA_MAP(CPropertyChangesPage)
- DDX_Control(pDX, IDC_PROPERTIES_CHANGES, m_lbProperties);
- //}}AFX_DATA_MAP
- if( m_lbProperties.GetCount() > 0 )
- {
- for( iProperty = 0; iProperty < m_astrPropertyNames.GetSize();
- iProperty++ )
- {
- iItem = m_lbProperties.FindStringExact( -1, m_astrPropertyNames[
- iProperty] );
- ASSERT( iItem != LB_ERR );
- if( pDX->m_bSaveAndValidate )
- {
- m_atLogFlags[iProperty] = m_lbProperties.GetCheck( iItem );
- }
- else
- {
- m_lbProperties.SetCheck( iItem, m_atLogFlags[iProperty] != FALSE );
- }
- }
- }
- }
- BEGIN_MESSAGE_MAP(CPropertyChangesPage, CPropertyPage)
- //{{AFX_MSG_MAP(CPropertyChangesPage)
- ON_WM_HELPINFO()
- ON_WM_CONTEXTMENU()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CPropertyChangesPage message handlers
- BOOL CPropertyChangesPage::OnInitDialog()
- {
- int iProperty;
- CPropertyPage::OnInitDialog();
- for( iProperty = 0; iProperty < m_astrPropertyNames.GetSize(); iProperty++ )
- {
- m_lbProperties.AddString( m_astrPropertyNames[iProperty] );
- }
- UpdateData( FALSE );
- return( TRUE );
- }
- static DWORD rgmapCHID[] =
- {
- IDC_PROPERTIES_CHANGES, HIDC_PROPERTIES_CHANGES,
- 0, 0
- };
- BOOL CPropertyChangesPage::OnHelpInfo( HELPINFO* pHelpInfo )
- {
- return( ::WinHelp( HWND( pHelpInfo->hItemHandle ),
- AfxGetApp()->m_pszHelpFilePath, HELP_WM_HELP, DWORD( LPVOID(
- rgmapCHID ) ) ) );
- }
- void CPropertyChangesPage::OnContextMenu( CWnd* pWnd, CPoint /* point */ )
- {
- ::WinHelp( HWND( *pWnd ), AfxGetApp()->m_pszHelpFilePath, HELP_CONTEXTMENU,
- DWORD( LPVOID( rgmapCHID ) ) );
- }