OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "fpdfsdk/pdfwindow/PWL_ScrollBar.h" | 7 #include "fpdfsdk/pdfwindow/PWL_ScrollBar.h" |
8 | 8 |
9 #include "core/fxge/include/fx_ge.h" | 9 #include "core/fxge/include/fx_ge.h" |
10 #include "fpdfsdk/pdfwindow/PWL_Utils.h" | 10 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 } | 845 } |
846 SetScrollPos(fPos); | 846 SetScrollPos(fPos); |
847 } break; | 847 } break; |
848 } | 848 } |
849 } | 849 } |
850 | 850 |
851 void CPWL_ScrollBar::CreateButtons(const PWL_CREATEPARAM& cp) { | 851 void CPWL_ScrollBar::CreateButtons(const PWL_CREATEPARAM& cp) { |
852 PWL_CREATEPARAM scp = cp; | 852 PWL_CREATEPARAM scp = cp; |
853 scp.pParentWnd = this; | 853 scp.pParentWnd = this; |
854 scp.dwBorderWidth = 2; | 854 scp.dwBorderWidth = 2; |
855 scp.nBorderStyle = PBS_BEVELED; | 855 scp.nBorderStyle = BorderStyle::BEVELED; |
856 | 856 |
857 scp.dwFlags = | 857 scp.dwFlags = |
858 PWS_VISIBLE | PWS_CHILD | PWS_BORDER | PWS_BACKGROUND | PWS_NOREFRESHCLIP; | 858 PWS_VISIBLE | PWS_CHILD | PWS_BORDER | PWS_BACKGROUND | PWS_NOREFRESHCLIP; |
859 | 859 |
860 if (!m_pMinButton) { | 860 if (!m_pMinButton) { |
861 m_pMinButton = new CPWL_SBButton(m_sbType, PSBT_MIN); | 861 m_pMinButton = new CPWL_SBButton(m_sbType, PSBT_MIN); |
862 m_pMinButton->Create(scp); | 862 m_pMinButton->Create(scp); |
863 } | 863 } |
864 | 864 |
865 if (!m_pMaxButton) { | 865 if (!m_pMaxButton) { |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 if (m_bMinOrMax) | 1191 if (m_bMinOrMax) |
1192 m_sData.SubSmall(); | 1192 m_sData.SubSmall(); |
1193 else | 1193 else |
1194 m_sData.AddSmall(); | 1194 m_sData.AddSmall(); |
1195 | 1195 |
1196 if (FXSYS_memcmp(&m_sData, &sTemp, sizeof(PWL_SCROLL_PRIVATEDATA)) != 0) { | 1196 if (FXSYS_memcmp(&m_sData, &sTemp, sizeof(PWL_SCROLL_PRIVATEDATA)) != 0) { |
1197 MovePosButton(TRUE); | 1197 MovePosButton(TRUE); |
1198 NotifyScrollWindow(); | 1198 NotifyScrollWindow(); |
1199 } | 1199 } |
1200 } | 1200 } |
OLD | NEW |