home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / PUSHBTN.CC < prev    next >
C/C++ Source or Header  |  1995-08-27  |  1KB  |  54 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: pushbtn.cc 1.2 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9.  
  10. #include"pushbtn.h"
  11.  
  12.  
  13. //-------------------------------------------------------------------
  14. //   TPushButton
  15. TPushButton::TPushButton(TWinBase *parent, ULONG resource):
  16.    TControl(parent, resource)
  17. {
  18.  
  19. }
  20.  
  21.  
  22. //-------------------------------------------------------------------
  23. //   TPushButton
  24. TPushButton::TPushButton(TWinBase *parent, char *text, ULONG id, LONG xPos, LONG yPos,
  25.                   LONG xWidth, LONG yHeight):
  26.      TControl(parent, 0)
  27. {
  28.    hwndControl = WinCreateWindow (
  29.                       fParent->getHWND(),
  30.                       WC_BUTTON,
  31.                       (PSZ)text,
  32.                       WS_VISIBLE | BS_PUSHBUTTON,
  33.                       xPos, yPos, xWidth, yHeight,
  34.                       fParent->getHWND(),
  35.                       HWND_TOP,
  36.                       id, (PVOID)NULL, (PVOID)NULL);
  37.  
  38. }
  39.  
  40. //-------------------------------------------------------------------
  41. //   ~TPushButton
  42. TPushButton::~TPushButton()
  43. {
  44.  
  45. }
  46.  
  47.  
  48. //-------------------------------------------------------------------
  49. //   getClassName
  50. const char *TPushButton::getClassName()
  51. {
  52.    return "TPushButton";
  53. }
  54.