?? chameleon.odl
字號:
// Chameleon.odl : type library source for ActiveX Control project.
// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (Chameleon.tlb) that will become a resource in
// Chameleon.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(56102E2F-1E92-4CE0-9007-507506A21492), version(1.0),
helpfile("Chameleon.hlp"),
helpstring("ChameleonButton,based on gonchuki's work"),
control ]
library CHAMELEONLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CChameleonCtrl
[ uuid(CBD15FBF-9BA7-46C5-B013-5F75A5750E31),
helpstring("Dispatch interface for Chameleon Control"), hidden ]
dispinterface _DChameleon
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CChameleonCtrl)
[id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
[id(DISPID_TEXT), bindable, requestedit] BSTR Text;
[id(DISPID_ENABLED), bindable, requestedit] boolean Enabled;
[id(DISPID_FONT), bindable] IFontDisp* Font;
[id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
[id(DISPID_HWND)] OLE_HANDLE hWnd;
[id(1)] long MousePointer;
[id(2)] IPictureDisp* MouseIcon;
[id(3)] IPictureDisp* Picture;
[id(4)] long ButtonType;
[id(5)] long ColorScheme;
[id(6)] boolean Press;
[id(7)] boolean ShowFocusRect;
[id(8)] boolean Stretch;
[id(9)] BSTR ToolTipText;
[id(10)] OLE_COLOR BackOverColor;
[id(11)] OLE_COLOR ForeOverColor;
[id(12)] long TextEffect;
[id(13)] boolean HandPointer;
[id(14)] IPictureDisp* DownPicture;
[id(15)] IPictureDisp* OverPicture;
[id(16)] IPictureDisp* DisablePicture;
[id(17)] long AcceleratKey;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CChameleonCtrl)
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CChameleonCtrl
[ uuid(E9D3BEB5-028F-4330-AF0C-D51827D2E638),
helpstring("Event interface for Chameleon Control") ]
dispinterface _DChameleonEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CChameleonCtrl)
[id(DISPID_CLICK)] void Click();
[id(DISPID_MOUSEDOWN)] void MouseDown(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
[id(DISPID_MOUSEUP)] void MouseUp(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
[id(DISPID_MOUSEMOVE)] void MouseMove(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
[id(DISPID_KEYDOWN)] void KeyDown(short* KeyCode, short Shift);
[id(DISPID_KEYUP)] void KeyUp(short* KeyCode, short Shift);
[id(DISPID_KEYPRESS)] void KeyPress(short* KeyAscii);
[id(1)] void MouseOver();
[id(2)] void MouseOut();
//}}AFX_ODL_EVENT
};
// Class information for CChameleonCtrl
[ uuid(6AE6E06F-390B-402D-B3A1-C0FF5FB598E7),
helpstring("Chameleon Control"), control ]
coclass Chameleon
{
[default] dispinterface _DChameleon;
[default, source] dispinterface _DChameleonEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -