APPMAIN.H
上传用户:bjghjy
上传日期:2007-01-07
资源大小:379k
文件大小:2k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. // 3-29-97
  2. #define APPNAME         "逍 遥 游"
  3. #define CLIENT_VERSION          (BYTE)11
  4. #define LOGIN_SUCC 0
  5. #define LOGIN_NO_THIS_ID -1
  6. #define LOGIN_NO_PRIV -2
  7. #define LOGIN_NO_TIME -3
  8. #define LOGIN_LOCKED -4
  9. #define LOGIN_SYS_ERR -5
  10. #define  LOGIN_ANOTHER -6
  11. #define MAX_SELE_NUM 10
  12. #define HQ_USERID_SIZE          6
  13. #define HQ_USERPWD_SIZE         6
  14. HINSTANCE ghInstance;
  15. HWND ghWndMain, 
  16.      ghWndStatus, 
  17.      ghWndMaxMin,
  18.  ghWndXlt, 
  19.  ghWndJlt,
  20.  ghWndCaption,
  21.  ghWndZs,
  22.  ghWndMmp, 
  23.  ghWndCj, 
  24.  ghWndHq,
  25.  ghWndLitHq, 
  26.  ghWndFx,
  27.  ghDlgChkUsr,
  28.  ghWndToolBar, 
  29.  ghWndTips,
  30.  ghWndHelp,
  31.      hWndInput;
  32.        
  33. HMENU ghMenuHq, 
  34.       ghMenuMain, 
  35.       ghMenuMainGraph, 
  36.       ghMenuGraph;
  37. HBITMAP hBmpUp, 
  38. hBmpDown, 
  39. hBmpEqual;
  40. BOOL IsSzRead,IsShRead;
  41. int STATUS_HEIGHT,MSG_HEIGHT,INPUT_WIDTH,TOOLBAR_HEIGHT;
  42. BOOL gfTest;
  43. int gfOnLine,
  44. gfConnecting,
  45. gfDelete,
  46. jy_running;
  47. char * IpSendBuffer,
  48.  *IpCommitBuffer;
  49. unsigned int IpSendLen,
  50. IpCommitLen;
  51. char inkey[16+1],*winpy;
  52. short SeleGp[MAX_SELE_NUM][2];
  53. char UserID[HQ_USERID_SIZE+1];
  54. char UserPwd[HQ_USERPWD_SIZE+1];
  55. LRESULT CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);
  56. LRESULT CALLBACK HqSelDlgProc(HWND, UINT, WPARAM, LPARAM);
  57. LRESULT CALLBACK HqFldSelDlgProc(HWND, UINT, WPARAM, LPARAM);
  58. void AppExit(void);
  59. BOOL AppInit(void);
  60. BOOL ErrMsg(HWND, LPSTR);
  61. int RefreshAllWnd(void);
  62. BOOL GetInitString(char *Entry, char *Item, char *buf);
  63. BOOL PutInitString(char *Entry, char *Item, char *buf);
  64. int ReCreateChild(void);
  65. LRESULT CALLBACK HqUserDlgProc(HWND, UINT, WPARAM, LPARAM);
  66. int CheckTime(BOOL);
  67. int GetSet(void);
  68. int SaveSet(void);
  69. int GetSelSet(void);
  70. BOOL RegisterChilds(void);
  71. BOOL CreateChilds(HWND hWnd);
  72. BOOL RegisterHelp(void);
  73. BOOL CreateWndHelp(HWND);
  74. HBRUSH DrawChild(HDC hDC, HWND hWnd);
  75. BOOL PASCAL DrawDlgFrame(HWND,int, int);
  76. int HqCheckUser(char *userID, char *userPwd);