home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / mapi / win16 / dev / h / xvport.h < prev   
Encoding:
C/C++ Source or Header  |  1995-07-11  |  1.8 KB  |  84 lines

  1. /*
  2.  -  X V P O R T . H
  3.  -
  4.  *  Header File for XVPORT. Tools
  5.  *
  6.  */
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. //Initialize viewports dll 
  13. BOOL    XVPInit(HWND);                                       
  14.  
  15. //Initialize multithreading 
  16. BOOL    XVPInitMultiThread();                                       
  17.  
  18. //Deinitialize viewports dll
  19. VOID    XVPDeInit(); 
  20.  
  21. //Create a viewport
  22. UINT    XVPCreateViewport(LPSTR szTitle);
  23.  
  24. //Destroy the viewport
  25. VOID    XVPDestroyViewport(UINT uID);   
  26.  
  27. //Log a string with identation
  28. VOID    XVPLog(UINT uID, int nLevel, LPSTR lpDesc );
  29.  
  30. //Log a Pass or Fail          
  31. VOID    XVPLogStatus(UINT uID,int nLevel, LPSTR lpDesc, BOOL IsFail);  
  32.  
  33.   
  34.  
  35. //Position viewport on Screen
  36. VOID    XVPPosition(UINT uID, int );                                   
  37.  
  38. //Set Default log Level
  39. VOID    XVPSetLogLevel(UINT uID,int nLevel);                           
  40.  
  41. //Clear Viewport
  42. VOID    XVPReset(UINT uID);                                           
  43.  
  44. //Sets the title of the viewport
  45. VOID    XVPSetTitle(UINT uID,LPSTR szTitle);                           
  46.  
  47. //Inverts the order of display
  48. VOID    XVPInvert(UINT uID);                                          
  49.  
  50. //Modifies the show state.
  51. VOID    XVPShow(UINT uID,int nShow);                                                                     
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57.  
  58.  
  59. //Define Logging port levels
  60. #define CASE_LEVEL       0
  61. #define FUNCTION_LEVEL   1
  62. #define DETAIL_LEVEL     2
  63.  
  64. // define Dialog Positions 
  65. #define    TOP_LEFT      1
  66. #define    TOP_RIGHT     2
  67. #define    CENTER        3
  68. #define    BOTTOM_LEFT   4
  69. #define    BOTTOM_RIGHT  5
  70.  
  71. // define log string types
  72. #define FAIL 1
  73. #define PASS 2
  74. #define HEAD 4
  75. #define TAIL 8
  76.  
  77. //define show flags
  78. #define XVP_HIDE 0
  79. #define XVP_SHOW 1
  80. #define XVP_MIN  2
  81. #define XVP_MAX  3
  82.  
  83.  
  84.