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
ADRESSCOMBOBOX.CPP
Package: SNMP_source.rar [view]
Upload User: lvjun8202
Upload Date: 2013-04-30
Package Size: 797k
Code Size: 1k
Category:
SNMP
Development Platform:
C/C++
- // AdressComboBox.cpp : implementation file
- //
- #include "stdafx.h"
- #include "oam.h"
- #include "AdressComboBox.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CAdressComboBox
- CAdressComboBox::CAdressComboBox()
- {
- }
- CAdressComboBox::~CAdressComboBox()
- {
- }
- BEGIN_MESSAGE_MAP(CAdressComboBox, CComboBox)
- //{{AFX_MSG_MAP(CAdressComboBox)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CAdressComboBox message handlers
- BOOL CAdressComboBox::AddNewAdress(LPCSTR str)
- {
- int nFound = FindStringExact(-1, str);
- if (nFound == CB_ERR)
- {
- InsertString(0, str);
- SetCurSel(0);
- }
- else
- SetCurSel(nFound);
- /* int nFound = FindStringExact(-1, str);
- if (nFound == CB_ERR)
- {
- COMBOBOXEXITEM item;
- item.mask = CBEIF_TEXT;
- item.iItem = -1;
- item.pszText = (LPTSTR)(LPCTSTR)str;
- int index = InsertItem(&item);
- if(index != -1)
- SetCurSel(index);
- else
- return FALSE;
- }
- else
- SetCurSel(nFound);
- */ return TRUE;
- }