I'm writing a small Paint-like program that loads images of various formats and does small transformations to them. My problem is, when I want a MessageBox to appear and an image hasn't been loaded, it just locks the program up until I switch tasks or press Alt.
I know it's got something to do with my image-displaying child window. When an image has been loaded and it's displaying it, there's no problem. If I stop the window from being created, there's no problem. But when I just start the program, or if an error occurs loading an image, it just appears to hang.