home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dovetail.zip / combobox.cc next >
C/C++ Source or Header  |  1994-04-07  |  963b  |  30 lines

  1. #include "combobox.h"
  2.  
  3. // constructor for attaching object to existing control
  4. Combobox::Combobox(HWND hParent, ULONG ulId) : Control(hParent,ulId),
  5.         Efield(0,0), Listbox(0,0)
  6. {
  7. }
  8.  
  9. // Constructor for window created on the fly
  10. Combobox::Combobox(HWND hParent, ULONG ulId,SHORT xp, SHORT yp,
  11.                    SHORT dx, SHORT dy,ULONG ulStyle) : Listbox(0,0),Efield(0,0)
  12.    {
  13.  
  14.    hWnd = WinCreateWindow(
  15.               hParent,       /* Parent Window Handle */
  16.               WC_COMBOBOX,
  17.               (PSZ)NULL,     /* No Window Text */
  18.               ulStyle,
  19.               xp,
  20.               yp,
  21.               dx,
  22.               dy,
  23.               hParent,       /* Owner Window Handle */
  24.               HWND_TOP,      /* Sibling Window Handle */
  25.               ulId,     /* Window ID */
  26.               (PVOID)NULL,     /* Control Data Structure */
  27.               (PVOID)NULL);  /* no presentation parameters */
  28.    fCreated = TRUE;
  29. }
  30.