📄 readbar.h
字号:
#ifndef READBAR_H
#define READBAR_H
#define MAX_BITMAP 100
#define DEFAULT_NAME "default.bmp"
#define APPSTATE_MENU 1
#define APPSTATE_OPTION 2
#define APPSTATE_RESULT 3
typedef struct tagBITMAPFILEHEADER {
dword bfSize;
word bfReserved1;
word bfReserved2;
dword bfOffBits;
} BITMAPFILEHEADER;
typedef struct tagBITMAPINFOHEADER{
dword biSize;
int biWidth;
int biHeight;
word biPlanes;
word biBitCount;
dword biCompression;
dword biSizeImage;
int biXPelsPerMeter;
int biYPelsPerMeter;
dword biClrUsed;
dword biClrImportant;
} BITMAPINFOHEADER;
typedef struct tagRGBQUAD {
byte rgbBlue;
byte rgbGreen;
byte rgbRed;
byte rgbReserved;
} RGBQUAD;
typedef struct tagBITMAPINFO {
BITMAPINFOHEADER bmiHeader;
RGBQUAD bmiColors[1];
} BITMAPINFO;
typedef struct
{
AEEApplet a;
IBitmap * m_pBmp[MAX_BITMAP];
IFileMgr * m_pFileMgr;
IFile * m_pFile;
IMenuCtl * m_pMenu;
char m_SelBarName[32];
int m_BarNameCount;
int m_AppState;
int m_BmpCount;
}MyApp;
boolean InitApp( MyApp *pMe);
void FreeApp(MyApp *pMe);
void SearchBarFile(MyApp *pMe);
void AddToMenu(MyApp *pMe ,char * pFileName, uint16 wItemID);
boolean ReadBarFile( MyApp *pMe ,uint16 wItemID);
boolean SaveToFile(MyApp *pMe,IBitmap * pBmp);
void ShowResult(MyApp * pMe,boolean flag);
void BuildMenu(MyApp *pMe);
void ResetBmp(MyApp* pMe);
boolean SaveToFile2(MyApp *pMe ,void * point ,int len);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -