| 152 | } |
| 153 | |
| 154 | void SplashWindow::ShowSplashWindow(Gdiplus::Image* bkImage)LNOEXCEPT |
| 155 | { |
| 156 | struct Wrapper { |
| 157 | static void ThreadJob(SplashWindow* p) |
| 158 | { |
| 159 | p->threadJob(); |
| 160 | } |
| 161 | }; |
| 162 | |
| 163 | if (!m_SplashWindowThread) |
| 164 | { |
| 165 | if (bkImage) |
| 166 | m_bkImage = bkImage->Clone(); |
| 167 | else |
| 168 | m_bkImage = LoadImageFromResource(IDB_SPLASH, L"PNG"); |
| 169 | |
| 170 | if (m_bkImage) |
| 171 | m_SplashWindowThread = make_unique<std::thread>(Wrapper::ThreadJob, this); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | void SplashWindow::HideSplashWindow()LNOEXCEPT |
| 176 | { |