📄 typedef.h
字号:
#ifndef __typedef_h__#define __typedef_h__#define MSG_TRANSFER_OK MSG_USER + 1#define FAVORATE_NUMBER 20typedef struct tagMainWndAttr // to store the attribute of the main window{ int start_x; int start_y; int width; int hight; BOOL IsToolBar; BOOL IsStatusBar; BOOL IsAddress; HWND hMainWnd; // main window pthread_t net_thread; // thread for networking pthread_mutex_t read_head; // the mutex for reading and writing head job sem_t start_sem; // the semaphore for start networking thread struct tagJobElement *HeadJob; int iJobNumber; char * strGlobalMenu[FAVORATE_NUMBER]; char * strHomePage;} MainWndAttr;typedef struct tagJobElement // to store the network job{ HWND hWndFrom; unsigned char * strURL; unsigned char * strBuffer; unsigned char * strLibBuffer; unsigned char * strMethod; BOOL IsFinish; struct tagJobElement * next; int nType; int strLength;} JobElement;typedef enum { NO_ERROR = 0, NO_ENOUGH_MONEY, FIND_TAG_ERROR, NO_HTML_FILE, UNKNOWN_TAG, URI_ERROR, PROCESS_ERROR,} ErrorType;#endif // __typedef_h__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -