简体   繁体   中英

How to implement a splashscreen in a Poco application

I find a way to catch an event/message which notify the "application loaded" event, to be able to close a splashscreen. Maybe Poco implements it directly but i haven't found any clue in the Application class documentation or code.

您是否尝试过使用application成员函数bool initialized()

I'm using the Mitk framework, and i will have to modify some code there ; the used CommonTk framework can manage a callback dedicated for splashscreen closing. Thus, there is no event published by Poco to allow this feature.

i using POCO Thread for splash screen (where i can catch / handle status of thread). My application is programmed in WinAPI (Win32, VS C++ 2008 EE), so i using WinAPI timmers; the main message pump is also in separated thread...

Here is my WinApi32 example full code & VS90 project: WLEZLEY_SPLASH_POCO_EXAMPLE.ZIP

PS: It works since version 1.4.5 of POCO, but also works with POCO v1.7.2 (actual version is included). You can try study my code and you try it yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM