u_cpp_getfontinf.sru 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. $PBExportHeader$u_cpp_getfontinf.sru
  2. $PBExportComments$获取windows字体--用户对象
  3. forward
  4. global type u_cpp_getfontinf from cplusplus
  5. end type
  6. end forward
  7. global type u_cpp_getfontinf from cplusplus
  8. string LibraryName="getfont.dll"
  9. event constructor pbm_constructor
  10. event destructor pbm_destructor
  11. end type
  12. global u_cpp_getfontinf u_cpp_getfontinf
  13. type prototypes
  14. private function ulong u_cpp_getfontinf_CPP_CONSTRUCTOR() library 'getfont.dll'
  15. private subroutine u_cpp_getfontinf_CPP_DESTRUCTOR( ulong th ) library 'getfont.dll'
  16. public function integer u_cpp_getfontinfuf_getfontname ( ulong ThisHandle, ref string as_fontname, integer ai_fontnum ) library 'getfont.dll' alias for "u_cpp_getfontinfuf_getfontname;Ansi"
  17. public function unsignedinteger u_cpp_getfontinfuf_getfontcount ( ulong ThisHandle ) library 'getfont.dll'
  18. public function integer u_cpp_getfontinfuf_init ( ulong ThisHandle, long al_hwnd ) library 'getfont.dll'
  19. end prototypes
  20. type variables
  21. end variables
  22. forward prototypes
  23. public function integer uf_init ( long al_hwnd )
  24. public function unsignedinteger uf_getfontcount ( )
  25. public function integer uf_getfontname ( ref string as_fontname, integer ai_fontnum )
  26. end prototypes
  27. on u_cpp_getfontinf.constructor;
  28. ThisHandle = u_cpp_getfontinf_CPP_CONSTRUCTOR()
  29. end on
  30. on u_cpp_getfontinf.destructor;
  31. u_cpp_getfontinf_CPP_DESTRUCTOR( ThisHandle )
  32. end on
  33. public function integer uf_init ( long al_hwnd )
  34. return u_cpp_getfontinfuf_init ( ThisHandle, al_hwnd )
  35. end function
  36. public function unsignedinteger uf_getfontcount ( )
  37. return u_cpp_getfontinfuf_getfontcount ( ThisHandle )
  38. end function
  39. public function integer uf_getfontname ( ref string as_fontname, integer ai_fontnum )
  40. return u_cpp_getfontinfuf_getfontname ( ThisHandle, as_fontname, ai_fontnum )
  41. end function
  42. on u_cpp_getfontinf.create
  43. TriggerEvent( this, "constructor" )
  44. end on
  45. on u_cpp_getfontinf.destroy
  46. TriggerEvent( this, "destructor" )
  47. end on