00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #pragma once
00015 #include <win32gui/window.hpp>
00016
00017
00018 namespace win32 { namespace gui {
00019
00020 struct scrollable_wnd : wnd_extend<window_base, scrollable_wnd>
00021 {
00022 scrollable_wnd();
00023
00024
00025 void total_size(unsigned cx, unsigned cy);
00026 SIZE total_size() const;
00027 void line_scrolling_size(int cx, int cy);
00028 SIZE line_scrolling_size() const;
00029 void page_factor(float xFactor, float yFactor);
00030 float page_factor_x() const;
00031 float page_factor_y() const;
00032 void wheel_factor(float yFactor);
00033 float wheel_factor() const;
00034 void scroll_pos(unsigned x, unsigned y);
00035 POINT scroll_pos() const;
00036
00037 private:
00038 SIZE line_size_;
00039 float xPage_factor_;
00040 float yPage_factor_;
00041 float yWheel_factor_;
00042 };
00043
00044 } }