Archived

This topic is now archived and is closed to further replies.

Tree Penguin

Progress bar dialog?

Recommended Posts

Hi, i have code for loading simple .raw models and i calculate normals for them in that same function. As this takes some time for models with a high triangle count i want to add a simple progress bar dialog which i can create, tell what time it is on every once in a while and when everything is done close it. Can anyone tell me what i should do to not create a dialog with a function that returns when it''s closed but one that returns right after creation (like dialog.domodal() but a version that returns instantly) and also what i must do to destroy it again (just DestroyWindow() i guess?). Thanks in advance!

Share this post


Link to post
Share on other sites
If you are using MFC, create a class that inherits from CDialog, then call the Create method. That will create it modeless, so it won''t halt the execution of the calling code.

Share this post


Link to post
Share on other sites