RGOBJECT.H
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
- #ifndef _PWFGOBJ_
- #define _PWFGOBJ_
- #include <stddef.h>
- #include "types.h"
- #include "gobjects.h"
- class RCastGobject : public gobject {
- public:
- RCastGobject(UCHAR imagenum = 1) : gobject(imagenum)
- {};
- PUCHAR Image(UCHAR imagenum = 0){return image[imagenum];};
- USHORT Width() { return width; };
- USHORT Height() { return height; };
- VOID SetImage(PUCHAR imageptr, UCHAR imagenum = 0) {image[imagenum]=imageptr;};
- LONG load(UCHAR imagenum = 0) {
- LONG q=gobject::load(imagenum);
- if (inpcxfile.is_open())
- inpcxfile.close();
- return q;};
- ~RCastGobject() {
- };
- };
- #endif