home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBListBox / Listbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  2.7 KB  |  85 lines

  1. // Listbox.h : main header file for the Listbox DLL
  2. //    High Tech BASIC, Copyright (C) TransEra Corp 1999, All Rights Reserved.
  3. // Sven Henze, Tech Soft GmbH
  4.  
  5. #if !defined(AFX_BUTTON_H__D6D63EC5_3EA4_11D3_A911_00104B9A4FD0__INCLUDED_)
  6. #define AFX_BUTTON_H__D6D63EC5_3EA4_11D3_A911_00104B9A4FD0__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #ifndef __AFXWIN_H__
  13.     #error include 'stdafx.h' before including this file for PCH
  14. #endif
  15.  
  16. #include "resource.h"        // main symbols
  17. #include "ListboxDlg.h"    // Added by ClassView
  18.  
  19. //**************************************************************************
  20. // begin prototypes
  21. extern CWnd *g_pWnd;        // global pointer to Dialog
  22. extern long g_Width;                // width of the dialog box
  23. extern long g_Height;                // the height of the window
  24. extern short g_ButtAppear;
  25. extern CString g_Title;            // Window title
  26. extern CString    g_Description;        // Text above buttons will wrap to two lines if too long
  27. extern CString g_Lstrings;
  28. extern CListBox *g_pList;            // global pointer to listbox control
  29.  
  30.  
  31. void Initialize(ListboxDlg * Bdlg);
  32. short Showlistbox(long height, long width, short appear, char* title, char* question);
  33. void Setfocus();
  34. void Closelistbox();
  35. void Addstring(char* str);
  36. short Getcount();
  37. void Setsel(short sel);
  38. short Getsel(short sel);
  39. short Getselcount();
  40. void Deletestring(short sel);
  41. void Resetcontent();
  42. void Dirlist( short attr, char * wildcards);
  43. short Findstring( short start, char * search );
  44. short Findstringexact( short start, char * search );
  45. short Gettextlen( short sel );
  46. void Gettext( short sel, char * item );
  47. short Getselitems( short nMaxItems, short* ilist);
  48. short Getcursel();
  49.  
  50.  
  51. // end prototypes
  52. //***************************************************************************
  53.  
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56. // CListBoxApp
  57. // See Listbox.cpp for the implementation of this class
  58. //
  59.  
  60. class CListBoxApp : public CWinApp
  61. {
  62. public:
  63.     CListBoxApp();
  64.  
  65. // Overrides
  66.     // ClassWizard generated virtual function overrides
  67.     //{{AFX_VIRTUAL(CButtonApp)
  68.     //}}AFX_VIRTUAL
  69.  
  70.     //{{AFX_MSG(CButtonApp)
  71.         // NOTE - the ClassWizard will add and remove member functions here.
  72.         //    DO NOT EDIT what you see in these blocks of generated code !
  73.     //}}AFX_MSG
  74.     DECLARE_MESSAGE_MAP()
  75. };
  76.  
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79.  
  80. /////////////////////////////////////////////////////////////////////////////
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83.  
  84. #endif // !defined(AFX_BUTTON_H__D6D63EC5_3EA4_11D3_A911_00104B9A4FD0__INCLUDED_)
  85.