📄 selector.cpp
字号:
{
SetProperty(0x25, VT_R8, propVal);
}
CPicture CSelector::GetFramePicture()
{
LPDISPATCH pDispatch;
GetProperty(0x26, VT_DISPATCH, (void*)&pDispatch);
return CPicture(pDispatch);
}
void CSelector::SetFramePicture(LPDISPATCH propVal)
{
SetProperty(0x26, VT_DISPATCH, propVal);
}
CString CSelector::GetFrameShape()
{
CString result;
GetProperty(0x27, VT_BSTR, (void*)&result);
return result;
}
void CSelector::SetFrameShape(LPCTSTR propVal)
{
SetProperty(0x27, VT_BSTR, propVal);
}
long CSelector::GetFrameStyle()
{
long result;
GetProperty(0x28, VT_I4, (void*)&result);
return result;
}
void CSelector::SetFrameStyle(long propVal)
{
SetProperty(0x28, VT_I4, propVal);
}
double CSelector::GetFrameTop()
{
double result;
GetProperty(0x29, VT_R8, (void*)&result);
return result;
}
void CSelector::SetFrameTop(double propVal)
{
SetProperty(0x29, VT_R8, propVal);
}
BOOL CSelector::GetOutline()
{
BOOL result;
GetProperty(0x2a, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetOutline(BOOL propVal)
{
SetProperty(0x2a, VT_BOOL, propVal);
}
long CSelector::GetOutlineAlign()
{
long result;
GetProperty(0x2b, VT_I4, (void*)&result);
return result;
}
void CSelector::SetOutlineAlign(long propVal)
{
SetProperty(0x2b, VT_I4, propVal);
}
unsigned long CSelector::GetOutlineColor()
{
unsigned long result;
GetProperty(0x2c, VT_I4, (void*)&result);
return result;
}
void CSelector::SetOutlineColor(unsigned long propVal)
{
SetProperty(0x2c, VT_I4, propVal);
}
CString CSelector::GetOutlineTitle()
{
CString result;
GetProperty(0x2d, VT_BSTR, (void*)&result);
return result;
}
void CSelector::SetOutlineTitle(LPCTSTR propVal)
{
SetProperty(0x2d, VT_BSTR, propVal);
}
short CSelector::GetOutlineWidth()
{
short result;
GetProperty(0x2e, VT_I2, (void*)&result);
return result;
}
void CSelector::SetOutlineWidth(short propVal)
{
SetProperty(0x2e, VT_I2, propVal);
}
double CSelector::GetFrameRight()
{
double result;
GetProperty(0x2f, VT_R8, (void*)&result);
return result;
}
void CSelector::SetFrameRight(double propVal)
{
SetProperty(0x2f, VT_R8, propVal);
}
double CSelector::GetAutoOffsetDistance()
{
double result;
GetProperty(0x30, VT_R8, (void*)&result);
return result;
}
void CSelector::SetAutoOffsetDistance(double propVal)
{
SetProperty(0x30, VT_R8, propVal);
}
long CSelector::GetAutoOffsetStyle()
{
long result;
GetProperty(0x31, VT_I4, (void*)&result);
return result;
}
void CSelector::SetAutoOffsetStyle(long propVal)
{
SetProperty(0x31, VT_I4, propVal);
}
double CSelector::GetAutoRadius()
{
double result;
GetProperty(0x32, VT_R8, (void*)&result);
return result;
}
void CSelector::SetAutoRadius(double propVal)
{
SetProperty(0x32, VT_R8, propVal);
}
double CSelector::GetAutoStartAngle()
{
double result;
GetProperty(0x33, VT_R8, (void*)&result);
return result;
}
void CSelector::SetAutoStartAngle(double propVal)
{
SetProperty(0x33, VT_R8, propVal);
}
double CSelector::GetAutoStopAngle()
{
double result;
GetProperty(0x34, VT_R8, (void*)&result);
return result;
}
void CSelector::SetAutoStopAngle(double propVal)
{
SetProperty(0x34, VT_R8, propVal);
}
OLE_COLOR CSelector::GetBackColor()
{
OLE_COLOR result;
GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
return result;
}
void CSelector::SetBackColor(OLE_COLOR propVal)
{
SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}
short CSelector::GetCaptionID()
{
short result;
GetProperty(0x35, VT_I2, (void*)&result);
return result;
}
void CSelector::SetCaptionID(short propVal)
{
SetProperty(0x35, VT_I2, propVal);
}
short CSelector::GetFontID()
{
short result;
GetProperty(0x36, VT_I2, (void*)&result);
return result;
}
void CSelector::SetFontID(short propVal)
{
SetProperty(0x36, VT_I2, propVal);
}
unsigned long CSelector::GetHighlightColor()
{
unsigned long result;
GetProperty(0x37, VT_I4, (void*)&result);
return result;
}
void CSelector::SetHighlightColor(unsigned long propVal)
{
SetProperty(0x37, VT_I4, propVal);
}
BOOL CSelector::GetLineDisplay()
{
BOOL result;
GetProperty(0x38, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetLineDisplay(BOOL propVal)
{
SetProperty(0x38, VT_BOOL, propVal);
}
double CSelector::GetLineInnerRadius()
{
double result;
GetProperty(0x39, VT_R8, (void*)&result);
return result;
}
void CSelector::SetLineInnerRadius(double propVal)
{
SetProperty(0x39, VT_R8, propVal);
}
short CSelector::GetLineThickness()
{
short result;
GetProperty(0x3a, VT_I2, (void*)&result);
return result;
}
void CSelector::SetLineThickness(short propVal)
{
SetProperty(0x3a, VT_I2, propVal);
}
short CSelector::GetSelectionID()
{
short result;
GetProperty(0x3b, VT_I2, (void*)&result);
return result;
}
void CSelector::SetSelectionID(short propVal)
{
SetProperty(0x3b, VT_I2, propVal);
}
BOOL CSelector::GetAutoAlign()
{
BOOL result;
GetProperty(0x3c, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetAutoAlign(BOOL propVal)
{
SetProperty(0x3c, VT_BOOL, propVal);
}
BOOL CSelector::GetAutoAngle()
{
BOOL result;
GetProperty(0x3d, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetAutoAngle(BOOL propVal)
{
SetProperty(0x3d, VT_BOOL, propVal);
}
BOOL CSelector::GetAutoAngleConfine()
{
BOOL result;
GetProperty(0x3e, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetAutoAngleConfine(BOOL propVal)
{
SetProperty(0x3e, VT_BOOL, propVal);
}
BOOL CSelector::GetAutoOffset()
{
BOOL result;
GetProperty(0x3f, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetAutoOffset(BOOL propVal)
{
SetProperty(0x3f, VT_BOOL, propVal);
}
BOOL CSelector::GetHighlight()
{
BOOL result;
GetProperty(0x40, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetHighlight(BOOL propVal)
{
SetProperty(0x40, VT_BOOL, propVal);
}
CPicture CSelector::GetMarkPicture()
{
LPDISPATCH pDispatch;
GetProperty(0x41, VT_DISPATCH, (void*)&pDispatch);
return CPicture(pDispatch);
}
void CSelector::SetMarkPicture(LPDISPATCH propVal)
{
SetProperty(0x41, VT_DISPATCH, propVal);
}
long CSelector::GetCaptionFlag()
{
long result;
GetProperty(0x42, VT_I4, (void*)&result);
return result;
}
void CSelector::SetCaptionFlag(long propVal)
{
SetProperty(0x42, VT_I4, propVal);
}
CString CSelector::GetFontName()
{
CString result;
GetProperty(0x43, VT_BSTR, (void*)&result);
return result;
}
void CSelector::SetFontName(LPCTSTR propVal)
{
SetProperty(0x43, VT_BSTR, propVal);
}
float CSelector::GetFontSize()
{
float result;
GetProperty(0x44, VT_R4, (void*)&result);
return result;
}
void CSelector::SetFontSize(float propVal)
{
SetProperty(0x44, VT_R4, propVal);
}
BOOL CSelector::GetFontBold()
{
BOOL result;
GetProperty(0x45, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetFontBold(BOOL propVal)
{
SetProperty(0x45, VT_BOOL, propVal);
}
BOOL CSelector::GetFontItalic()
{
BOOL result;
GetProperty(0x46, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetFontItalic(BOOL propVal)
{
SetProperty(0x46, VT_BOOL, propVal);
}
BOOL CSelector::GetFontUnderline()
{
BOOL result;
GetProperty(0x47, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetFontUnderline(BOOL propVal)
{
SetProperty(0x47, VT_BOOL, propVal);
}
BOOL CSelector::GetFontStrikethru()
{
BOOL result;
GetProperty(0x48, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetFontStrikethru(BOOL propVal)
{
SetProperty(0x48, VT_BOOL, propVal);
}
long CSelector::GetMouseControl()
{
long result;
GetProperty(0x49, VT_I4, (void*)&result);
return result;
}
void CSelector::SetMouseControl(long propVal)
{
SetProperty(0x49, VT_I4, propVal);
}
BOOL CSelector::GetSingleBuffer()
{
BOOL result;
GetProperty(0x4a, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetSingleBuffer(BOOL propVal)
{
SetProperty(0x4a, VT_BOOL, propVal);
}
BOOL CSelector::GetFocusOutline()
{
BOOL result;
GetProperty(0x4b, VT_BOOL, (void*)&result);
return result;
}
void CSelector::SetFocusOutline(BOOL propVal)
{
SetProperty(0x4b, VT_BOOL, propVal);
}
OLE_HANDLE CSelector::GetHWnd()
{
OLE_HANDLE result;
GetProperty(DISPID_HWND, VT_I4, (void*)&result);
return result;
}
void CSelector::SetHWnd(OLE_HANDLE propVal)
{
SetProperty(DISPID_HWND, VT_I4, propVal);
}
CString CSelector::GetConfiguration()
{
CString result;
GetProperty(0x4c, VT_BSTR, (void*)&result);
return result;
}
void CSelector::SetConfiguration(LPCTSTR propVal)
{
SetProperty(0x4c, VT_BSTR, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CSelector operations
void CSelector::ShowPropertyPage()
{
InvokeHelper(0x4d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CSelector::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -