home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 May / cica_0595_4.zip / cica_0595_4 / UTIL / MSWSRC35 / MYCOMBO.H < prev    next >
Text File  |  1992-06-09  |  1KB  |  47 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __MYCOMBOBOX_H
  4. #define __MYCOMBOBOX_H
  5.  
  6. #ifndef __COMBOBOX_H
  7. #include <combobox.h>
  8. #endif
  9.  
  10. #pragma option -Vo-
  11.  
  12. _CLASSDEF(TMyComboBox)
  13. _CLASSDEF(TMyComboBoxData)
  14.  
  15. /* --------------------------------------------------------
  16.   TMyComboBox
  17.   -------------------------------------------------------- */
  18.  
  19. class _EXPORT TMyComboBox : public TComboBox
  20. {
  21. public:
  22.     TMyComboBox(PTWindowsObject AParent, int AnId, int X, int Y, int W,
  23.           int H, DWORD AStyle, WORD ATextLen, PTModule AModule = NULL)
  24.           : TComboBox(AParent, AnId, X, Y, W, H, AStyle, ATextLen,
  25.         AModule) {}
  26.     TMyComboBox(PTWindowsObject AParent, int ResourceId, WORD ATextLen,
  27.           PTModule AModule = NULL)
  28.           : TComboBox(AParent, ResourceId, ATextLen, AModule) {}
  29.  
  30.     virtual WORD Transfer(Pvoid DataPtr, WORD TransferFlag);
  31. };
  32.  
  33. class _EXPORT TMyComboBoxData
  34. {
  35. public:
  36.     PTNSCollection Strings;
  37.     Pchar Selection;
  38.  
  39.     TMyComboBoxData();
  40.     ~TMyComboBoxData();
  41.     void AddString(Pchar AString, BOOL IsSelected = FALSE);
  42. };
  43.  
  44. #pragma option -Vo.
  45.  
  46. #endif
  47.