- 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
DLGSQL.CPP
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 2k
Category:
Windows Develop
Development Platform:
Visual C++
- // DlgSQL.cpp : implementation file
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1998 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
- #include "stdafx.h"
- #include "DaoView.h"
- #include "DlgSQL.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgSQL dialog
- CDlgSQL::CDlgSQL(CWnd* pParent /*=NULL*/)
- : CDialog(CDlgSQL::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDlgSQL)
- m_strName = _T("");
- m_strSQL = _T("");
- //}}AFX_DATA_INIT
- m_bEditMode = FALSE;
- }
- void CDlgSQL::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgSQL)
- DDX_Text(pDX, IDC_EDITNAME, m_strName);
- DDV_MaxChars(pDX, m_strName, 45);
- DDX_Text(pDX, IDC_EDITSQL, m_strSQL);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlgSQL, CDialog)
- //{{AFX_MSG_MAP(CDlgSQL)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgSQL message handlers
- BOOL CDlgSQL::OnInitDialog()
- {
- CDialog::OnInitDialog();
- if (m_bEditMode)
- {
- ((CEdit *) GetDlgItem(IDC_EDITNAME))->SetReadOnly();
- ((CEdit *) GetDlgItem(IDC_EDITSQL))->SetFocus();
- }
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }