xj qian
2024-06-25 1e63e2b6046ffcdc8127da028d122fa414c6a0d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
 
#include "wobject/xcontrol.hpp"
#include "kobject/kdwpages.hpp"
 
using kdwpages = Hxsoft::XFrame::IXPages;
class xdwpages : public xcontrol
{
public:
    xdwpages() :xcontrol(nullptr) {}
    xdwpages(void* implptr) :xcontrol(implptr) {}
public:
    xdwpages& operator =(const kcontrol* pcontrol)
    {
        this->setNativePointer((void*)pcontrol);
        return *this;
    }
public:
    kdwpages* GetKDwPage()
    {
        return (kdwpages*)this->GetNativePtr();
    }
public:
    int SetMaxPage(int mpage)
    {
        return GetKDwPage()->SetMaxPage(mpage);
    }
    int SetCurPage(int cpage)
    {
        return GetKDwPage()->SetCurPage(cpage);
    }
    int GetMaxPage()
    {
        return GetKDwPage()->GetMaxPage();
    }
    int GetCurPage()
    {
        return GetKDwPage()->GetCurPage();
    }
 
};