?? atr_main.hpp
字號:
// Zinc Application Framework - MAINTEST.HPP
// COPYRIGHT (C) 1990-1997. All Rights Reserved.
// Zinc Software Incorporated. Pleasant Grove, Utah USA
#include "atr_evt.hpp"
struct ListEntry
{
ZafIChar *text; // Text that appears when displayed.
int count; // How often item has been used.
ZafEventType value; // Event value for the item.
};
class GenericTestWin : public ZafWindow
{
public:
GenericTestWin(int left, int top, int width, int height);
GenericTestWin(GenericTestWin ©);
~GenericTestWin(void);
GenericTestWin(const ZafIChar *name, ZafObjectPersistence &persist);
virtual ZafEventType Draw(const ZafEventStruct &event, ZafEventType ccode);
void LogEvent(ZafEventType ccode);
virtual ZafEventType Event(const ZafEventStruct &event);
virtual void SynchronizeAttributes(void);
ZafWindowObject *TestObject() { return (testObject) ; }
protected:
static ListEntry ZAF_FARDATA AttributeTable[];
static ListEntry ZAF_FARDATA EventLog[];
ZafWindowObject *testObject; // Object being tested.
ZafWindow *testObjectParent; // "Window" to which the test object is added and subtracted.
ZafWindowObject *testObjectSibling; // Next sibling after the test object. Used to maintain
// list order when adding and subtracting the testobject
ZafVtList *attrList; // Attribute list.
virtual ZafWindowObject *Duplicate(void) { return (new GenericTestWin(*this)); }
};
class ObjectTestWin : public GenericTestWin
{
public:
ObjectTestWin();
ObjectTestWin(ObjectTestWin ©);
ObjectTestWin(const ZafIChar *name, ZafObjectPersistence &persist);
virtual ZafEventType Event(const ZafEventStruct &event);
virtual void SynchronizeAttributes(void);
protected:
virtual ZafWindowObject *Duplicate(void) { return (new ObjectTestWin(*this)); }
};
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -