Files

33 lines
1.1 KiB
C++
Raw Permalink Normal View History

2024-01-15 00:35:09 +08:00
/**
* FileName: Dialog.cpp
*
* Copyright (C) 2024 Maplespe
*
* This file is part of MToolBox and DWMBlurGlass.
* DWMBlurGlass is free software: you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3
* of the License, or any later version.
*
* DWMBlurGlass is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with Foobar.
* If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
*/
#include "Dialog.h"
namespace MDWMBlurGlass
{
using namespace Render;
void MultiplePages::SwitchNavPage(const std::wstring& subPageName, int page)
{
Ctrl::UIControl* cur = m_page->Child(subPageName + std::to_wstring(page));
2024-11-27 10:46:05 +08:00
Ctrl::UIControl* old = m_page->Child(subPageName + std::to_wstring(m_curpage));
2024-01-15 00:35:09 +08:00
2024-11-27 10:46:05 +08:00
old->SetVisible(false);
2024-01-15 00:35:09 +08:00
cur->SetVisible(true);
2024-11-27 10:46:05 +08:00
m_curpage = page;
2024-01-15 00:35:09 +08:00
}
}