home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / oclsrc15.zip / OCL / Include / ODragEntryField.hpp < prev    next >
C/C++ Source or Header  |  1996-08-12  |  4KB  |  122 lines

  1. // OCL - OS/2 Class Library
  2. // (c) Matthias Stuebner (matze@joker.berlinet.de)
  3. // (c) Benno Stein
  4. // (c) Cubus 1995
  5. // All Rights Reserved
  6. // ODragEntryField.hpp
  7.  
  8.  
  9. /*
  10.  * Redistribution and use in source and binary forms, with or without
  11.  * modification, are permitted provided that the following conditions
  12.  * are met:
  13.  * 1. Redistributions of source code must retain the above copyright
  14.  *    notice, this list of conditions and the following disclaimer.
  15.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  16.  *    endorse or promote products derived from this software
  17.  *    without specific prior written permission.
  18.  * 3. See OCL.INF for a detailed copyright notice.
  19.  *
  20.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  21.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30.  * SUCH DAMAGE.
  31.  */
  32.  
  33. // $Header: W:/Projects/OCL/Include/rcs/ODragEntryField.hpp 1.50 1996/08/11 23:47:13 B.STEIN Release $
  34.  
  35.  
  36. #ifndef ODRAGENTRYFIELD_INCLUDED
  37.   #define ODRAGENTRYFIELD_INCLUDED
  38.  
  39.  
  40. #ifndef OEFIELD_INCLUDED
  41.   #include <OEntryField.hpp>
  42. #endif
  43.  
  44. #ifndef OPMEXCEPTION_INCLUDED
  45.   #include <OPMException.hpp>
  46. #endif
  47.  
  48.  
  49. typedef class ODragEntryField *pODragEntryField;
  50.  
  51.  
  52. class __CPP_EXPORT__ ODragEntryField
  53.   : public OEntryField
  54. {
  55.   private:
  56.  
  57.     PFNWP                PM_EntryFieldProc;
  58.  
  59.   public:
  60.  
  61.     ODragEntryField     (const ULONG     id,
  62.                          const HWND      Parent,
  63.                          const ULONG     Style = ES_MARGIN | ES_AUTOSCROLL,
  64.                          const ULONG     Limit = CCHMAXPATH);
  65.  
  66.     ODragEntryField     (const ULONG     id,
  67.                          const OFrame&   Parent,
  68.                          const ULONG     Style = ES_MARGIN | ES_AUTOSCROLL,
  69.                          const ULONG     Limit = CCHMAXPATH);
  70.  
  71.     ODragEntryField     (const ULONG     id,
  72.                          const pOFrame   Parent,
  73.                          const ULONG     Style = ES_MARGIN | ES_AUTOSCROLL,
  74.                          const ULONG     Limit = CCHMAXPATH);
  75.  
  76.     virtual
  77.       ~ODragEntryField  ();
  78.  
  79.  
  80.     ODragEntryField&
  81.       createEntryField  (const ULONG     x,
  82.                          const ULONG     y,
  83.                          const ULONG     cx,
  84.                          const ULONG     cy);
  85.  
  86.     OWindow&
  87.       inherit           (const HWND      hwndDlg);
  88.  
  89.     MRESULT
  90.       EFDefaultCall     (ULONG  msg,  
  91.                          MPARAM mp1,
  92.                          MPARAM mp2);
  93.  
  94.     virtual
  95.        PSZ isOfType     () const;
  96.  
  97.     virtual
  98.        BOOL OCommand    (ULONG msg,
  99.                          MPARAM mp1,
  100.                          MPARAM mp2);
  101.  
  102. };
  103.  
  104. #ifdef __cplusplus
  105.  extern "C" {
  106. #endif
  107.  
  108.   MRESULT EXPENTRY
  109.        ODragEntryFieldProc
  110.                         (HWND hwnd,
  111.                          ULONG msg,
  112.                          MPARAM mp1,
  113.                          MPARAM mp2);
  114. #ifdef __cplusplus
  115.  }
  116. #endif
  117.  
  118.  
  119. #endif // ODRAGENTRYFIELD_INCLUDED
  120.  
  121. // end of source
  122.