home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / SIGNATUR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  7.5 KB  |  376 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   include\owl\signatur.h
  4. //   Message cracking signature templates
  5. //----------------------------------------------------------------------------
  6. #if !defined(__OWL_SIGNATUR_H)
  7. #define __OWL_SIGNATUR_H
  8.  
  9. #if !defined(__OWL_OWLDEFS_H)
  10.   #include <owl\owldefs.h>
  11. #endif
  12.  
  13. //
  14. //  LEGEND: in order to keep signature names from getting too long, the
  15. //          following abbreviations are used:
  16. //
  17. //  - v (void return)
  18. //  - i (int)
  19. //  - U (UINT)
  20. //  - B (BOOL)
  21. //  - H (HANDLE)
  22. //  - W (HWND)
  23. //  - S (LPSTR)
  24. //
  25.  
  26. class _OWLCLASS TCommandEnabler;
  27. class _OWLCLASS TDocument;
  28. class _OWLCLASS TView;
  29. class TDropInfo;
  30. class TPoint;
  31. class TSize;
  32.  
  33. template <class T>
  34. inline LRESULT(T::*LRESULT_WPARAM_LPARAM_Sig(LRESULT(T::*pmf)(WPARAM, LPARAM)))
  35.                                                  (WPARAM, LPARAM)
  36. {
  37.   return pmf;
  38. }
  39.  
  40. template <class T>
  41. inline void(T::*v_Sig(void(T::*pmf)()))()
  42. {
  43.   return pmf;
  44. }
  45.  
  46. template <class T>
  47. inline void(T::*v_U_S_Sig(void(T::*pmf)(UINT, LPSTR)))(UINT, LPSTR)
  48. {
  49.   return pmf;
  50. }
  51.  
  52. template <class T>
  53. inline void(T::*v_W_W_Sig(void(T::*pmf)(HWND, HWND)))(HWND, HWND)
  54. {
  55.   return pmf;
  56. }
  57.  
  58. template <class T>
  59. inline void(T::*v_U_U_U_Sig(void(T::*pmf)(UINT, UINT, UINT)))(UINT, UINT, UINT)
  60. {
  61.   return pmf;
  62. }
  63.  
  64. template <class T>
  65. inline int(T::*i_CREATE_Sig(int(T::*pmf)(CREATESTRUCT far&)))(CREATESTRUCT far&)
  66. {
  67.   return pmf;
  68. }
  69.  
  70. template <class T>
  71. inline void(T::*v_B_Sig(void(T::*pmf)(BOOL)))(BOOL)
  72. {
  73.   return pmf;
  74. }
  75.  
  76. template <class T>
  77. inline BOOL(T::*B_HDC_Sig(BOOL(T::*pmf)(HDC)))(HDC)
  78. {
  79.   return pmf;
  80. }
  81.  
  82. template <class T>
  83. inline BOOL(T::*B_LPARAM_Sig(BOOL(T::*pmf)(LPARAM)))(LPARAM)
  84. {
  85.   return pmf;
  86. }
  87.  
  88. template <class T>
  89. inline void(T::*v_MINMAXINFO_Sig(void(T::*pmf)(MINMAXINFO far&)))(MINMAXINFO far&)
  90. {
  91.   return pmf;
  92. }
  93.  
  94. template <class T>
  95. inline void(T::*v_U_U_W_Sig(void(T::*pmf)(UINT, UINT, HWND)))(UINT, UINT, HWND)
  96. {
  97.   return pmf;
  98. }
  99.  
  100. template <class T>
  101. inline void(T::*v_U_U_HMENU_Sig(void(T::*pmf)(UINT, UINT, HMENU)))(UINT, UINT, HMENU)
  102. {
  103.   return pmf;
  104. }
  105.  
  106. template <class T>
  107. inline void(T::*v_W_U_U_Sig(void(T::*pmf)(HWND, UINT, UINT)))(HWND, UINT, UINT)
  108. {
  109.   return pmf;
  110. }
  111.  
  112. template <class T>
  113. inline void(T::*v_H_Sig(void(T::*pmf)(HANDLE)))(HANDLE)
  114. {
  115.   return pmf;
  116. }
  117.  
  118. template <class T>
  119. inline void(T::*v_H_B_Sig(void(T::*pmf)(HANDLE, BOOL)))(HANDLE, BOOL)
  120. {
  121.   return pmf;
  122. }
  123.  
  124. template <class T>
  125. inline void(T::*v_HDC_Sig(void(T::*pmf)(HDC)))(HDC)
  126. {
  127.   return pmf;
  128. }
  129.  
  130. template <class T>
  131. inline void(T::*v_DROP_Sig(void(T::*pmf)(TDropInfo)))(TDropInfo)
  132. {
  133.   return pmf;
  134. }
  135.  
  136. template <class T>
  137. inline void(T::*v_W_Sig(void(T::*pmf)(HWND)))(HWND)
  138. {
  139.   return pmf;
  140. }
  141.  
  142. template <class T>
  143. inline void(T::*v_U_POINT_Sig(void(T::*pmf)(UINT, TPoint&)))(UINT, TPoint&)
  144. {
  145.   return pmf;
  146. }
  147.  
  148. template <class T>
  149. inline LRESULT(T::*LRESULT_U_U_HMENU_Sig(LRESULT(T::*pmf)(UINT, UINT, HMENU)))(UINT, UINT, HMENU)
  150. {
  151.   return pmf;
  152. }
  153.  
  154. template <class T>
  155. inline UINT(T::*U_W_U_U_Sig(UINT(T::*pmf)(HWND, UINT, UINT)))(HWND, UINT, UINT)
  156. {
  157.   return pmf;
  158. }
  159.  
  160. template <class T>
  161. inline void(T::*v_POINT_Sig(void(T::*pmf)(TPoint&)))(TPoint&)
  162. {
  163.   return pmf;
  164. }
  165.  
  166. template <class T>
  167. inline BOOL(T::*B_B_Sig(BOOL(T::*pmf)(BOOL)))(BOOL)
  168. {
  169.   return pmf;
  170. }
  171.  
  172. template <class T>
  173. inline UINT(T::*U_B_CALCSIZE_Sig(UINT(T::*pmf)(BOOL, NCCALCSIZE_PARAMS far&)))
  174.                                      (BOOL, NCCALCSIZE_PARAMS far&)
  175. {
  176.   return pmf;
  177. }
  178.  
  179. template <class T>
  180. inline BOOL(T::*B_CREATE_Sig(BOOL(T::*pmf)(CREATESTRUCT far&)))(CREATESTRUCT far&)
  181. {
  182.   return pmf;
  183. }
  184.  
  185. template <class T>
  186. inline UINT(T::*U_MSG_Sig(UINT(T::*pmf)(MSG far*)))(MSG far*)
  187. {
  188.   return pmf;
  189. }
  190.  
  191. template <class T>
  192. inline UINT(T::*U_POINT_Sig(UINT(T::*pmf)(TPoint&)))(TPoint&)
  193. {
  194.   return pmf;
  195. }
  196.  
  197. template <class T>
  198. inline void(T::*v_W_H_Sig(void(T::*pmf)(HWND, HANDLE)))(HWND, HANDLE)
  199. {
  200.   return pmf;
  201. }
  202.  
  203. template <class T>
  204. inline UINT(T::*U_Sig(UINT(T::*pmf)()))()
  205. {
  206.   return pmf;
  207. }
  208.  
  209. template <class T>
  210. inline HANDLE(T::*H_Sig(HANDLE(T::*pmf)()))()
  211. {
  212.   return pmf;
  213. }
  214.  
  215. template <class T>
  216. inline BOOL(T::*B_Sig(BOOL(T::*pmf)()))()
  217. {
  218.   return pmf;
  219. }
  220.  
  221. template <class T>
  222. inline BOOL(T::*B_W_U_U_Sig(BOOL(T::*pmf)(HWND, UINT, UINT)))(HWND, UINT, UINT)
  223. {
  224.   return pmf;
  225. }
  226.  
  227. template <class T>
  228. inline void(T::*v_B_U_Sig(void(T::*pmf)(BOOL, UINT)))(BOOL, UINT)
  229. {
  230.   return pmf;
  231. }
  232.  
  233. template <class T>
  234. inline void(T::*v_U_Sig(void(T::*pmf)(UINT)))(UINT)
  235. {
  236.   return pmf;
  237. }
  238.  
  239. template <class T>
  240. inline void(T::*v_i_Sig(void(T::*pmf)(int)))(int)
  241. {
  242.   return pmf;
  243. }
  244.  
  245. template <class T>
  246. inline void(T::*v_WINDOWPOS_Sig(void(T::*pmf)(WINDOWPOS far&)))(WINDOWPOS far&)
  247. {
  248.   return pmf;
  249. }
  250.  
  251. template <class T>
  252. inline int(T::*i_U_W_U_Sig(int(T::*pmf)(UINT, HWND, UINT)))(UINT, HWND, UINT)
  253. {
  254.   return pmf;
  255. }
  256.  
  257. template <class T>
  258. inline void(T::*v_S_Sig(void(T::*pmf)(LPSTR)))(LPSTR)
  259. {
  260.   return pmf;
  261. }
  262.  
  263. template <class T>
  264. inline LRESULT(T::*LRESULT_U_COMPAREITEM_Sig(LRESULT(T::*pmf)(UINT, COMPAREITEMSTRUCT far&)))
  265.                                       (UINT, COMPAREITEMSTRUCT far&)
  266. {
  267.   return pmf;
  268. }
  269.  
  270. template <class T>
  271. inline void(T::*v_U_DELETEITEM_Sig(void(T::*pmf)(UINT, DELETEITEMSTRUCT far&)))
  272.                                       (UINT, DELETEITEMSTRUCT far&)
  273. {
  274.   return pmf;
  275. }
  276.  
  277. template <class T>
  278. inline void(T::*v_U_DRAWITEM_Sig(void(T::*pmf)(UINT, DRAWITEMSTRUCT far&)))
  279.                                       (UINT, DRAWITEMSTRUCT far&)
  280. {
  281.   return pmf;
  282. }
  283.  
  284. template <class T>
  285. inline void(T::*v_U_MEASUREITEM_Sig(void(T::*pmf)(UINT, MEASUREITEMSTRUCT far&)))
  286.                                       (UINT, MEASUREITEMSTRUCT far&)
  287. {
  288.   return pmf;
  289. }
  290.  
  291. template <class T>
  292. inline void(T::*v_U_U_Sig(void(T::*pmf)(UINT, UINT)))(UINT, UINT)
  293. {
  294.   return pmf;
  295. }
  296.  
  297. template <class T>
  298. inline void(T::*v_U_SIZE_Sig(void(T::*pmf)(UINT, TSize&)))(UINT, TSize&)
  299. {
  300.   return pmf;
  301. }
  302.  
  303. template <class T>
  304. inline void(T::*v_B_HTASK_Sig(void(T::*pmf)(BOOL, HTASK)))(BOOL, HTASK)
  305. {
  306.   return pmf;
  307. }
  308.  
  309. template <class T>
  310. inline void(T::*v_U_B_W_Sig(void(T::*pmf)(UINT, BOOL, HWND)))(UINT, BOOL, HWND)
  311. {
  312.   return pmf;
  313. }
  314.  
  315. template <class T>
  316. inline void(T::*v_U_W_Sig(void(T::*pmf)(UINT, HWND)))(UINT, HWND)
  317. {
  318.   return pmf;
  319. }
  320.  
  321. template <class T>
  322. inline void(T::*v_HMENU_Sig(void(T::*pmf)(HMENU)))(HMENU)
  323. {
  324.   return pmf;
  325. }
  326.  
  327. template <class T>
  328. inline void(T::*v_HMENU_U_B_Sig(void(T::*pmf)(HMENU, UINT, BOOL)))(HMENU, UINT, BOOL)
  329. {
  330.   return pmf;
  331. }
  332.  
  333. template <class T>
  334. inline void(T::*v_B_W_W_Sig(void(T::*pmf)(BOOL, HWND, HWND)))(BOOL, HWND, HWND)
  335. {
  336.   return pmf;
  337. }
  338.  
  339. template <class T>
  340. inline int(T::*i_U_Sig(int(T::*pmf)(UINT)))(UINT)
  341. {
  342.   return pmf;
  343. }
  344.  
  345. template <class T>
  346. inline HBRUSH(T::*HBRUSH_HDC_W_U_Sig(HBRUSH(T::*pmf)(HDC, HWND, UINT)))(HDC, HWND, UINT)
  347. {
  348.   return pmf;
  349. }
  350.  
  351. template <class T>
  352. inline LRESULT(T::*LRESULT_MDICREATESTRUCT_Sig(LRESULT(T::*pmf)(MDICREATESTRUCT far&)))(MDICREATESTRUCT far&)
  353. {
  354.   return pmf;
  355. }
  356.  
  357. template <class T>
  358. inline void(T::*v_COMMANDENABLER_Sig(void(T::*pmf)(TCommandEnabler&)))(TCommandEnabler&)
  359. {
  360.   return pmf;
  361. }
  362.  
  363. template <class T>
  364. inline void(T::*v_OWLDOCUMENT_Sig(void(T::*pmf)(TDocument&)))(TDocument&)
  365. {
  366.   return pmf;
  367. }
  368.  
  369. template <class T>
  370. inline void(T::*v_OWLVIEW_Sig(void(T::*pmf)(TView&)))(TView&)
  371. {
  372.   return pmf;
  373. }
  374.  
  375. #endif  // __OWL_SIGNATUR_H
  376.