summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_picturebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/ifwl_picturebox.cpp')
-rw-r--r--xfa/fwl/core/ifwl_picturebox.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/xfa/fwl/core/ifwl_picturebox.cpp b/xfa/fwl/core/ifwl_picturebox.cpp
index 3539e08b0b..9e0e0b8623 100644
--- a/xfa/fwl/core/ifwl_picturebox.cpp
+++ b/xfa/fwl/core/ifwl_picturebox.cpp
@@ -114,22 +114,19 @@ void IFWL_PictureBox::DrawBkground(CFX_Graphics* pGraphics,
&matrix);
}
-FX_BOOL IFWL_PictureBox::VStyle(FX_BOOL dwStyle) {
+bool IFWL_PictureBox::VStyle(uint32_t dwStyle) {
switch (dwStyle & FWL_STYLEEXT_PTB_VAlignMask) {
- case FWL_STYLEEXT_PTB_Top: {
- return m_bTop = TRUE;
- break;
- }
- case FWL_STYLEEXT_PTB_Vcenter: {
- return m_bVCenter = TRUE;
- break;
- }
- case FWL_STYLEEXT_PTB_Bottom: {
- return m_bButton = TRUE;
- break;
- }
+ case FWL_STYLEEXT_PTB_Top:
+ m_bTop = TRUE;
+ return true;
+ case FWL_STYLEEXT_PTB_Vcenter:
+ m_bVCenter = TRUE;
+ return true;
+ case FWL_STYLEEXT_PTB_Bottom:
+ m_bButton = TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
CFWL_PictureBoxImpDelegate::CFWL_PictureBoxImpDelegate(IFWL_PictureBox* pOwner)