home *** CD-ROM | disk | FTP | other *** search
/ PC Administrator / spravce.iso / RunModule / src / MyComboBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-11  |  2.7 KB  |  63 lines

  1. // MyComboBox.h: interface for the CMyComboBox class.
  2. //
  3. /*
  4. Copyright 2001 Anish Mistry. All rights reserved.
  5.  
  6. Redistribution and use in source and binary forms, with or without modification,
  7. are permitted provided that the following conditions are met:
  8.  
  9.    1. Redistributions of source code must retain the above copyright notice, 
  10.    this list of conditions and the following disclaimer.
  11.    2. Redistributions in binary form must reproduce the above copyright notice,
  12.    this list of conditions and the following disclaimer in the documentation 
  13.    and/or other materials provided with the distribution.
  14.  
  15. THIS SOFTWARE IS PROVIDED BY ANISH MISTRY ``AS IS'' AND ANY EXPRESS OR IMPLIED 
  16. WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
  17. AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS 
  18. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
  19. OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  20. GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  21. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
  22. TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  23. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24.  
  25. The views and conclusions contained in the software and documentation are those
  26. of the authors and should not be interpreted as representing official policies,
  27. either expressed or implied, of Anish Mistry or AM Productions.
  28.  
  29. * Variation of the FreeBSD License. http://www.freebsd.org/copyright/freebsd-license.html
  30. */
  31. //////////////////////////////////////////////////////////////////////
  32.  
  33. #if !defined(AFX_MYCOMBOBOX_H__CCF4FD60_248C_4EE1_AC64_DBA674F596CC__INCLUDED_)
  34. #define AFX_MYCOMBOBOX_H__CCF4FD60_248C_4EE1_AC64_DBA674F596CC__INCLUDED_
  35.  
  36. #if _MSC_VER > 1000
  37. #pragma once
  38. #endif // _MSC_VER > 1000
  39.  
  40. #include "SubclassWnd.h"
  41.  
  42. class CMyComboBox : public CSubclassWnd  
  43. {
  44. public:
  45.     unsigned long int GetEditPos(void);
  46.     unsigned long int FindString(int nStartIndex,const char *pPrefix);
  47.     unsigned long int GetLBText(int nIndex,const char *pBuffer);
  48.     unsigned long int GetLBTextLen(int nIndex);
  49.     unsigned long int SelectString(int nIndex,const char *pBuffer);
  50.     unsigned long int SetEditSel(short int nStart,short int nEnd);
  51.     unsigned long int ShowDropDown(bool bShow);
  52.     unsigned long int AddString(const char *pString);
  53.     void ResetContent(void);
  54.     bool GetDroppedState(void);
  55.     unsigned long int GetCurSel(void);
  56.  
  57.     CMyComboBox();
  58.     virtual ~CMyComboBox();
  59.  
  60. };
  61.  
  62. #endif // !defined(AFX_MYCOMBOBOX_H__CCF4FD60_248C_4EE1_AC64_DBA674F596CC__INCLUDED_)
  63.