home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / C_C++ / VisualProgrammingArmoury / data1.cab / MyFileGroup / INCLUDE / WUtils.hpp < prev   
Encoding:
C/C++ Source or Header  |  1999-06-23  |  3.2 KB  |  97 lines

  1. #ifndef _INC_WUTILS_HPP
  2. #define _INC_WUTILS_HPP
  3. #ifdef __GNUG__
  4.  
  5. #ifdef BUILD_TCCORE
  6. #define TCCORELIB    dllexport
  7. #else
  8. #ifdef BUILD_LOCAL
  9. #define TCCORELIB
  10. #else
  11. #define TCCORELIB    dllimport
  12. #endif
  13. #endif
  14.  
  15. #else
  16.  
  17. #ifdef BUILD_TCCORE
  18. #define TCCORELIB    __declspec(dllexport)
  19. #else
  20. #ifdef BUILD_LOCAL
  21. #define TCCORELIB
  22. #else
  23. #define TCCORELIB    __declspec(dllimport)
  24. #endif
  25. #endif
  26.  
  27. #endif
  28. typedef TC_TArrayC <HWND>    TCArrayHWND;
  29. typedef TC_TArrayC <HANDLE>    TCArrayHANDLE;
  30. typedef TC_TArrayC <SIZE>    TCArraySIZE;
  31. typedef TC_TArrayC <POINT>    TCArrayPOINT;
  32. typedef TC_TArrayC <RECT>    TCArrayRECT;
  33.  
  34. // **********************************************************************
  35. class TCCORELIB TC_CHWndObjMap 
  36. {
  37. public:
  38.  
  39. struct h2pStruct
  40. {
  41.     HWND    hwnd;
  42.     void    *ptr;
  43. };
  44.  
  45. typedef TC_TArrayC <h2pStruct> h2pClct;
  46. public:  h2pClct h2p [256];
  47. public:  void* Ptr (HWND hwnd)  ;
  48. public:  void Add (HWND hwnd, void *ptr)  ;
  49. public:  void Del (HWND hwnd)  ;
  50.  
  51. }; // end of class TC_CHWndObjMap
  52.  
  53. // **********************************************************************
  54.  
  55. // **********************************************************************
  56. class TCCORELIB TC_CWaitCursor 
  57. {
  58. private:  static  int m_Count ;
  59. public:   TC_CWaitCursor ()  ;
  60. public:   ~TC_CWaitCursor ()  ;
  61. public: static void Check ()  ;
  62.  
  63. }; // end of class TC_CWaitCursor
  64.  
  65. // **********************************************************************
  66. TCCORELIB BOOL tcIsWindowVisible (HWND hWnd)  ;
  67. TCCORELIB BOOL tcIsWindowDisabled (HWND hWnd)  ;
  68. TCCORELIB BOOL tcIsWindowAccessible (HWND hWnd)  ;
  69. TCCORELIB BOOL tcIsMDIMaximized (HWND hmdi)  ;
  70. TCCORELIB void tcGetWindowText (HWND hwnd, TC_CString &ts)  ;
  71. TCCORELIB TC_CString tcGetWindowText (HWND hwnd)  ;
  72. TCCORELIB void tcGetScrollPos (HWND hWnd, int *p_x, int *p_y)  ;
  73. TCCORELIB void tcGetMyChildren (HWND hWnd, TCArrayHWND &arr)  ;
  74. TCCORELIB void tcGetAllChildren (HWND hWnd, TCArrayHWND &arr)  ;
  75. TCCORELIB BOOL tcGetMyChildrenBounds (HWND hWnd, RECT *prc)  ;
  76. TCCORELIB void tcGetOwnedPopups (HWND hWnd, TCArrayHWND &arr)  ;
  77. TCCORELIB void tcGetTaskWindows (TCArrayHWND &arr)  ;
  78. TCCORELIB SIZE tcGetClientSize (HWND hWnd)  ;
  79. TCCORELIB SIZE tcGetWindowSize (HWND hwnd)  ;
  80. TCCORELIB void tcGetChildRect (HWND hwnd,RECT * rc)  ;
  81. TCCORELIB void tcGetTextCxCy (HFONT hfont, int &cx, int& cy)  ;
  82. TCCORELIB void tcStd_Wm_Scroll (BOOL b_vert, HWND hWnd, WPARAM wParam, int isize=1)  ;
  83. TCCORELIB void tcStd_Check_SB (HWND hWnd, int ex_cx, int ex_cy, int isz_x=1, int isz_y=1)  ;
  84. TCCORELIB void tcCheckScroll4Visible (HWND hwndP, HWND hwndC, UINT opt)  ;
  85. TCCORELIB void tcDestroyMyChildren (HWND hWnd)  ;
  86. TCCORELIB void tcRedrawMyChildren (HWND hWnd)  ;
  87. TCCORELIB void tcRadioGrp_SetValue (HWND hwnd, int val)  ;
  88. TCCORELIB int tcRadioGrp_GetValue (HWND hwnd)  ;
  89. TCCORELIB int tcTabCtrl_InsertItem (HWND hWnd, LPSTR text, int index=-1, int imgidx=-1)  ;
  90. TCCORELIB void tcTabCtrl_ShowArea (HWND hWnd, int new_idx)  ;
  91. TCCORELIB void tcTabCtrl_ShowArea (HWND hWnd, HWND hWndArea)  ;
  92. TCCORELIB void tcTabCtrl_OnSize (HWND hWnd)  ;
  93. TCCORELIB BOOL tcInitFocus (HWND hWnd)  ;
  94. TCCORELIB void tcDrawItem (LPARAM lp, LPCSTR text, HIMAGELIST hil=0, int iidx=-1, COLORREF *colors=0)  ;
  95.  
  96. #endif // _INC_WUTILS_HPP
  97.