/** * 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 . */ #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)); Ctrl::UIControl* old = m_page->Child(subPageName + std::to_wstring(m_curpage)); old->SetVisible(false); cur->SetVisible(true); m_curpage = page; } }