本文整理汇总了C++中CPDF_FormControl::GetHighlightingMode方法的典型用法代码示例。如果您正苦于以下问题:C++ CPDF_FormControl::GetHighlightingMode方法的具体用法?C++ CPDF_FormControl::GetHighlightingMode怎么用?C++ CPDF_FormControl::GetHighlightingMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPDF_FormControl
的用法示例。
在下文中一共展示了CPDF_FormControl::GetHighlightingMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnDraw
void CFFL_Button::OnDraw(CPDFSDK_PageView* pPageView,
CPDFSDK_Annot* pAnnot,
CFX_RenderDevice* pDevice,
CPDF_Matrix* pUser2Device,
FX_DWORD dwFlags) {
ASSERT(pPageView != NULL);
CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
CPDF_FormControl* pCtrl = pWidget->GetFormControl();
CPDF_FormControl::HighlightingMode eHM = pCtrl->GetHighlightingMode();
if (eHM == CPDF_FormControl::Push) {
if (m_bMouseDown) {
if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Down))
pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Down, NULL);
else
pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal,
NULL);
} else if (m_bMouseIn) {
if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Rollover))
pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Rollover,
NULL);
else
pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal,
NULL);
} else {
pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);
}
} else
pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);
}