home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 v2.4 Fix / W95-v2.4fix.iso / ACADWIN / ADS / CPP / MFCADS / MFCLIST / MFCWND.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-08  |  1.9 KB  |  63 lines

  1. /* 
  2.     MFCWND.H -
  3.     
  4.     This file:
  5.  
  6.         Declares CWINDOW that contains a CListBox and a CStatic.
  7.  
  8.     (C) Copyright 1988-1994 by Autodesk, Inc.
  9.  
  10.     This program is copyrighted by Autodesk, Inc. and is  licensed
  11.     to you under the following conditions.  You may not distribute
  12.     or  publish the source code of this program in any form.   You
  13.     may  incorporate this code in object form in derivative  works
  14.     provided  such  derivative  works  are  (i.) are  designed and
  15.     intended  to  work  solely  with  Autodesk, Inc. products, and
  16.     (ii.)  contain  Autodesk's  copyright  notice  "(C)  Copyright
  17.     1988-1994 by Autodesk, Inc."
  18.  
  19.     AUTODESK  PROVIDES THIS PROGRAM "AS IS" AND WITH  ALL  FAULTS.
  20.     AUTODESK  SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF  MER-
  21.     CHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK,  INC.
  22.     DOES  NOT  WARRANT THAT THE OPERATION OF THE PROGRAM  WILL  BE
  23.     UNINTERRUPTED OR ERROR FREE.
  24.  
  25. */
  26. #ifndef _MFCWND_H_
  27. #define _MFCWND_H_
  28.  
  29. #include <afxwin.h>
  30. #include <strstrea.h>
  31.  
  32. #include "adsinc.h"
  33.  
  34. //-----------------------------------------------------------------------------
  35. const int LIST=100;
  36. const int LABEL=101;
  37.  
  38. //-----------------------------------------------------------------------------
  39. class CWINDOW : public CFrameWnd
  40.     CListBox        *list;
  41.     CStatic         *label;
  42.     ads_name        entity_name;
  43.  
  44. public:
  45.     ads_name        *GetEntityName( ads_name* dst ) 
  46.                     { 
  47.                         (*dst)[ 0 ]  = entity_name[ 0 ];
  48.                         (*dst)[ 1 ]  = entity_name[ 1 ];
  49.                         return dst; 
  50.                     }
  51.                     CWINDOW(); 
  52.                     ~CWINDOW();
  53.     afx_msg void    OnSize( UINT nFlags,int cx, int cy );
  54.     afx_msg void    HandleSelchange();
  55.     afx_msg void    HandleDblclk();
  56.  
  57.     DECLARE_MESSAGE_MAP()
  58. };
  59.  
  60.  
  61. #endif
  62.