Advertisement

Progress bar dialog?

Started by May 17, 2004 04:30 PM
2 comments, last by Tree Penguin 20 years, 6 months ago
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!
try www.codeguru.com for MFC code?
Game Core
Advertisement
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.
Thanks variant! That''s all i needed.

This topic is closed to new replies.

Advertisement