ADMNDEMO.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  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. #include <windows.h>
  11. #include <windowsx.h>
  12. #include <string.h>
  13. #include <commdlg.h>
  14. #include "child.h"
  15. #include "menu.h"
  16. #include "standard.h"
  17. #include "errcheck.h"
  18. #include "results.h"
  19. #include "execute.h"
  20. #include "info.h"
  21. #include "ctl3d.h"
  22. //------------------------------------------------------------------------
  23. //  Defines
  24. //------------------------------------------------------------------------
  25. typedef  void FAR * lpVOID;
  26. typedef BOOL (FAR PASCAL *FPROC)(void FAR * parm);
  27. #define  TABLES            1
  28. #define  PROCS             2
  29. #define  IDD_ABOUTBOX      2000
  30. #define USER_INITAPP       (WM_USER + 100)
  31. #define USER_RESETHANDLE   (WM_USER + 101)
  32. #define  IDB_ABOUTOK       200
  33. #define  IDBIT_PICT        201
  34. #define  CONNECTION_WINDOW    1
  35. #define  RESULTS_WINDOW       2
  36. #define  DISCONNECTED      0
  37. #define  CONNECTED         1
  38. #define VSZFile static char vszFile[]=__FILE__;
  39. #define GetText(h,s)                                                    
  40.    {                                                                    
  41.    SendMessage(h, WM_GETTEXT,                                           
  42.                (WORD)SendMessage(h, WM_GETTEXTLENGTH, 0, 0L) + 1,       
  43.                (LPARAM)(LPSTR)s);                                       
  44.    }
  45. #define IsRadioButtonOn(hwnd) SendMessage(hwnd, BM_GETCHECK, 0, 0L)
  46. extern dCSEG(char) szOPENFILE[];
  47. //------------------------------------------------------------------------
  48. //  Declare function prototypes
  49. //------------------------------------------------------------------------
  50. void Busy(int flag);
  51. LPSTR iLoadString(int id, LPSTR str, int len);
  52. void FAR PASCAL CenterDialog(HWND hdlg);
  53. HWND INTFUN GetEditWindow(CHILDINFO FAR * ci);
  54. #endif