MCPcopy Create free account
hub / github.com/cinience/RedisStudio / SetHorizontal

Method SetHorizontal

DuiLib/Control/UIScrollBar.cpp:68–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void CScrollBarUI::SetHorizontal(bool bHorizontal)
69 {
70 if( m_bHorizontal == bHorizontal ) return;
71
72 m_bHorizontal = bHorizontal;
73 if( m_bHorizontal ) {
74 if( m_cxyFixed.cy == 0 ) {
75 m_cxyFixed.cx = 0;
76 m_cxyFixed.cy = DEFAULT_SCROLLBAR_SIZE;
77 }
78 }
79 else {
80 if( m_cxyFixed.cx == 0 ) {
81 m_cxyFixed.cx = DEFAULT_SCROLLBAR_SIZE;
82 m_cxyFixed.cy = 0;
83 }
84 }
85
86 if( m_pOwner != NULL ) m_pOwner->NeedUpdate(); else NeedParentUpdate();
87 }
88
89 int CScrollBarUI::GetScrollRange() const
90 {

Callers

nothing calls this directly

Calls 1

NeedUpdateMethod · 0.45

Tested by

no test coverage detected