#ifndef MYWIN_USER_PHOTO_H__ #define MYWIN_USER_PHOTO_H__ //显示图片的窗口 typedef struct { WIN_WindowStruct win; WIN_PicStruct pic; int x_off; int y_off; void *memData; //在析构函数里释放的内存 void *memDataGray; void *memDataBit; //黑白位图 int grayTrs; //灰度图转换标志 int bitTrs; //位图转换标志 }WIN_PhotoStruct; WIN_PhotoStruct *WIN_CreatPhoto (WIN_WindowStruct *base, void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg), int x,int y,int x_size,int y_size); void WIN_DeletePhoto (WIN_PhotoStruct *photo); //设置图片 void PHOTO_SetPic (WIN_PhotoStruct *photo,WIN_PicStruct *pic); //消息框的绘制函数 void PHOTO_DefaultPaint (WIN_PhotoStruct *photo); //消息框的消息处理函数 void PHOTO_defaultMsgLoop (WIN_PhotoStruct *photo,WIN_MsgStruct *msg); //显示照片 int PHOTO_ShowPhoto (WIN_WindowStruct *base,char *name); //显示点阵图像 int PHOTO_ShowPic (WIN_WindowStruct *base,WIN_PicStruct *pic); #endif