home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / Wintalk / VC / ConnectDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.4 KB  |  56 lines

  1. /*+==========================================================================
  2.   File:      ConnectDialog.h
  3.  
  4.   Summary:   WFC Dialog (implementation through the Form class).  This 
  5.              window displays two edit boxes (host and port), and OK and 
  6.              Cancel buttons.  OnCommand is overrided to correctly handle 
  7.              events when the respective buttons are clicked.
  8.  
  9.   Classes:   ConnectDialog
  10.  
  11.   Functions: Dispose, button1_click, ConnectDialog_closing, InitForm
  12.              
  13. ----------------------------------------------------------------------------
  14.   This file is part of the Microsoft NGWS Samples.
  15.  
  16.   Copyright (C) 1998-1999 Microsoft Corporation.  All rights reserved.
  17. ==========================================================================+*/
  18.  
  19.  
  20. __gc class ConnectDialog : public Form
  21. {
  22. public:
  23.     String *host;
  24.     int port;
  25.     
  26.     bool AllowClose;
  27.  
  28.     Container *components;
  29.     Label *label1;
  30.     TextBox *edit1;
  31.     Label *label2;
  32.     TextBox *edit2;
  33.     Button *button1;
  34.     Button *button2;
  35.  
  36.     ConnectDialog() : host(NULL), port(0), AllowClose(true)
  37.     {
  38.         components = new Container();
  39.         label1 = new Label();
  40.         edit1 = new TextBox();
  41.         label2 = new Label();
  42.         edit2 = new TextBox();
  43.         button1 = new Button();
  44.         button2 = new Button();
  45.  
  46.         InitForm();
  47.     }
  48.  
  49.     void Dispose();
  50.     
  51.     void button1_click(Object *source, EventArgs *e);
  52.     void ConnectDialog_closing(Object *source, CancelEventArgs *e);
  53.     void InitForm();
  54.  
  55. };
  56.