![]() |
theming (child) dialog in MDI application |
Post Reply ![]() |
Author | |
jw_statica ![]() Groupie ![]() Joined: 23 May 2018 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 06 June 2018 at 3:53am |
I have problem connecting with skinning dialog in MDI application. In order to explain it, I modified the CodeJock RibbonMDISample: - added to project Dialog1 (style popup) and Dialog2 (style child). - added members do class CMainFrame: std::unique_ptr dlg1; std::unique_ptr dlg2; - modified function void CMainFrame::OnViewFullscreen() void CMainFrame::OnViewFullscreen() { dlg1 = std::make_unique(); if (dlg1->Create(IDD_DIALOG1, &m_wndClient)) { dlg1->ShowWindow(SW_NORMAL); } dlg2 = std::make_unique(); if (dlg2->Create(IDD_DIALOG2, &m_wndClient)) { dlg2->ShowWindow(SW_NORMAL); } } After calling this function there will show 2 dialogs one (child) without skin and second (popup) skined. We called function XTPSkinManager()->LoadSkin() and dialogs were skinned but after closing dialogs and opening them again they weren't skinned.uploads/9273/RibbonMDISample.zip
|
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |