activex 控件的id 定义位置+使用ocx控件的客户端程序中对控件定义的文件中控件id定义的位置
activex 控件的id 定义位置
// SuperDisplayCtl.cpp
IMPLEMENT_OLECREATE_EX(CSuperDisplayCtrl, "SuperDisplayOcxFolding.SuperDisplayCtrl.1",
// 0xf65b3f2, 0x8356, 0x4e78, 0x83, 0x16, 0x52, 0x2b, 0xff, 0x6f, 0x45, 0xd0)
0xadb1111e, 0x56fe, 0x459d, 0x83, 0x3d, 0x37, 0x53, 0x21, 0x38, 0x16, 0xdc);
// SuperDisplayOcxFolding.cpp
const GUID CDECL BASED_CODE _tlid =
// { 0x6883a397, 0x59fc, 0x4c12, { 0xa9, 0xe0, 0xab, 0xa2, 0x30, 0x41, 0x4f, 0x80 } };
{ 0xadb1111e, 0x56fe, 0x459d, { 0x83, 0x3d, 0x37, 0x53, 0x21, 0x38, 0x16, 0xdc } }; // new GUID CDECL BASED_CODE _tlid
使用ocx控件的客户端程序中对控件定义的文件中控件id定义的位置
class CSuperdisplayctrl1 : public CWnd
{...
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xADB1111E, 0x56FE, 0x459D, { 0x83, 0x3D, 0x37, 0x53, 0x21, 0x38, 0x16, 0xDC } };
return clsid;
}