www.pudn.com > inet_stock.zip > APPMAIN.H


// 3-29-97
#define APPNAME         "åÐ Ò£ ÓÎ"
#define CLIENT_VERSION          (BYTE)11

#define		LOGIN_SUCC			0
#define		LOGIN_NO_THIS_ID	-1
#define		LOGIN_NO_PRIV		-2
#define		LOGIN_NO_TIME		-3
#define		LOGIN_LOCKED		-4
#define		LOGIN_SYS_ERR		-5
#define 	LOGIN_ANOTHER		-6

#define		MAX_SELE_NUM		10

#define HQ_USERID_SIZE          6
#define HQ_USERPWD_SIZE         6

HINSTANCE ghInstance;
HWND ghWndMain, 
     ghWndStatus, 
     ghWndMaxMin,
	 ghWndXlt, 
	 ghWndJlt,
	 ghWndCaption,
	 ghWndZs,
	 ghWndMmp, 
	 ghWndCj, 
	 ghWndHq,
	 ghWndLitHq, 
	 ghWndFx,
	 ghDlgChkUsr,
	 ghWndToolBar, 
	 ghWndTips,
	 ghWndHelp,
     hWndInput;
     	 
HMENU ghMenuHq, 
      ghMenuMain, 
      ghMenuMainGraph, 
      ghMenuGraph;
HBITMAP hBmpUp, 
	hBmpDown, 
	hBmpEqual;
	
BOOL IsSzRead,IsShRead;

int STATUS_HEIGHT,MSG_HEIGHT,INPUT_WIDTH,TOOLBAR_HEIGHT;
BOOL gfTest;

int gfOnLine,
	gfConnecting,
	gfDelete,
	jy_running;

char * IpSendBuffer,
	 *IpCommitBuffer;
unsigned int IpSendLen,
		IpCommitLen;


char inkey[16+1],*winpy;
short SeleGp[MAX_SELE_NUM][2];

char UserID[HQ_USERID_SIZE+1];
char UserPwd[HQ_USERPWD_SIZE+1];

LRESULT CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK HqSelDlgProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK HqFldSelDlgProc(HWND, UINT, WPARAM, LPARAM);

void AppExit(void);
BOOL AppInit(void);
BOOL ErrMsg(HWND, LPSTR);
int RefreshAllWnd(void);
BOOL GetInitString(char *Entry, char *Item, char *buf);
BOOL PutInitString(char *Entry, char *Item, char *buf);

int ReCreateChild(void);
LRESULT CALLBACK HqUserDlgProc(HWND, UINT, WPARAM, LPARAM);
int CheckTime(BOOL);
int GetSet(void);
int SaveSet(void);
int GetSelSet(void);
BOOL RegisterChilds(void);
BOOL CreateChilds(HWND hWnd);

BOOL RegisterHelp(void);
BOOL CreateWndHelp(HWND);

HBRUSH DrawChild(HDC hDC, HWND hWnd);
BOOL PASCAL DrawDlgFrame(HWND,int, int);
int HqCheckUser(char *userID, char *userPwd);