DragonNest/Server/ServiceMonitorEx/Source/BaseView.h
2024-12-20 16:56:44 +08:00

26 lines
1.1 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "Define.h"
#include "OXLayoutManager.h"
class CBaseView : public CFormView
{
DECLARE_DYNAMIC(CBaseView)
public:
explicit CBaseView(UINT nIDTemplate);
virtual ~CBaseView();
public:
void Set(INT pPageIndex) { ASSERT(0 <= pPageIndex); m_PageIndex = pPageIndex; }
BOOL IsSet() const { return(EV_PAGEIDX_DEF != m_PageIndex); }
INT GetPageIndex() const { return m_PageIndex; }
UINT GetIdTemplate() const { return m_nIDTemplate; }
private:
INT m_PageIndex;
UINT m_nIDTemplate;
};