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
Config.cpp
Package: screensp.zip [view]
Upload User: may_ontech
Upload Date: 2007-01-08
Package Size: 308k
Code Size: 1k
Category:
Graph program
Development Platform:
C++ Builder
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- #include "Config.h"
- #include "Main.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- TConfigForm *ConfigForm;
- //---------------------------------------------------------------------------
- __fastcall TConfigForm::TConfigForm(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TConfigForm::Button1Click(TObject *Sender)
- {
- Execute = true; // 表示用户选择了确定按钮
- // 如果是新的IP,则保存到下拉列表中
- TStringList *IPList = new TStringList;
- IPList->AddStrings(ComboBox1->Items);
- int Index;
- if (!IPList->Find(ComboBox1->Text,Index)) {
- IPList->Append(ComboBox1->Text);
- ComboBox1->Items->Clear();
- ComboBox1->Items->AddStrings(IPList);
- }
- delete IPList;
- Close(); // 关闭窗口
- }
- //---------------------------------------------------------------------------
- void __fastcall TConfigForm::Button2Click(TObject *Sender)
- {
- Execute = false; // 表示用户选择了取消按钮
- Close(); // 关闭窗口
- }
- //---------------------------------------------------------------------------