home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / odbc / admndemo / admndemo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-06  |  2.1 KB  |  74 lines

  1. //*---------------------------------------------------------------------------------
  2. //|  ODBC System Administrator
  3. //|
  4. //|  This code is furnished on an as-is basis as part of the ODBC SDK and is
  5. //|  intended for example purposes only.
  6. //|
  7. //*---------------------------------------------------------------------------------
  8. #ifndef satool_DEFS
  9. #define satool_DEFS
  10.  
  11. #include <windows.h>
  12. #include <windowsx.h>
  13. #include <string.h>
  14. #include <commdlg.h>
  15. #include "child.h"
  16. #include "menu.h"
  17. #include "standard.h"
  18. #include "errcheck.h"
  19. #include "results.h"
  20. #include "execute.h"
  21. #include "info.h"
  22. #include "ctl3d.h"
  23.  
  24.  
  25. //------------------------------------------------------------------------
  26. //  Defines
  27. //------------------------------------------------------------------------
  28. typedef  void FAR * lpVOID;
  29. typedef BOOL (FAR PASCAL *FPROC)(void FAR * parm);
  30.  
  31. #define  TABLES            1
  32. #define  PROCS             2
  33.  
  34. #define  IDD_ABOUTBOX      2000
  35.  
  36. #define USER_INITAPP       (WM_USER + 100)
  37. #define USER_RESETHANDLE   (WM_USER + 101)
  38.  
  39. #define  IDB_ABOUTOK       200
  40. #define  IDBIT_PICT        201
  41.  
  42. #define  CONNECTION_WINDOW    1
  43. #define  RESULTS_WINDOW       2
  44.  
  45. #define  DISCONNECTED      0
  46. #define  CONNECTED         1
  47.  
  48.  
  49. #define VSZFile static char vszFile[]=__FILE__;
  50.  
  51. #define GetText(h,s)                                                    \
  52.    {                                                                    \
  53.    SendMessage(h, WM_GETTEXT,                                           \
  54.                (WORD)SendMessage(h, WM_GETTEXTLENGTH, 0, 0L) + 1,       \
  55.                (LPARAM)(LPSTR)s);                                       \
  56.    }
  57. #define IsRadioButtonOn(hwnd) SendMessage(hwnd, BM_GETCHECK, 0, 0L)
  58.  
  59. extern dCSEG(char) szOPENFILE[];
  60.  
  61.  
  62.  
  63. //------------------------------------------------------------------------
  64. //  Declare function prototypes
  65. //------------------------------------------------------------------------
  66. void Busy(int flag);
  67. LPSTR iLoadString(int id, LPSTR str, int len);
  68. void FAR PASCAL CenterDialog(HWND hdlg);
  69. HWND INTFUN GetEditWindow(CHILDINFO FAR * ci);
  70.  
  71.  
  72.  
  73. #endif
  74.