home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 038 / dho_9a.zip / EDITTEXT.CC < prev    next >
Text File  |  1995-01-02  |  1KB  |  57 lines

  1. // Developer Helper Object Set, (C) 1994 Thomas E. Bednarz, Jr.
  2. //  All rights reserved
  3.  
  4. #include"edittext.h"
  5.  
  6.  
  7. //-------------------------------------------------------------------
  8. //   TEditText
  9. TEditText::TEditText (TWinBase *parent, ULONG resource): TControl( parent, resource)
  10. {
  11.  
  12.  
  13. }
  14.  
  15.  
  16. //-------------------------------------------------------------------
  17. //   ~TEditText
  18. TEditText::~TEditText()
  19. {
  20.  
  21.  
  22. }
  23.  
  24.  
  25. //-------------------------------------------------------------------
  26. //   TEditText
  27. const char *TEditText::getClassName()
  28. {
  29.    return "TEditText";
  30. }
  31.  
  32.  
  33. //-------------------------------------------------------------------
  34. //   getControlText
  35. void TEditText::getControlText(PCH buff, ULONG buf_len)
  36. {
  37.   WinQueryWindowText( WinWindowFromID( fParent->getFrame() , fResource) ,  buf_len, buff);
  38.  
  39. }
  40.  
  41.  
  42. //-------------------------------------------------------------------
  43. //   setControlText
  44. void TEditText::setControlText(PCH text)
  45. {
  46.    WinSetWindowText(WinWindowFromID( fParent->getFrame() , fResource) , text);
  47.  
  48. }
  49.  
  50. //-------------------------------------------------------------------
  51. //   getTextLength
  52. LONG TEditText::getTextLength()
  53. {
  54.    return WinQueryWindowTextLength(WinWindowFromID( fParent->getFrame() , fResource) );
  55. }
  56.  
  57.