MessageBox mishap

This is a discussion on MessageBox mishap within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I'm writing a small Paint-like program that loads images of various formats and does small transformations to them. My ...

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266

    MessageBox mishap

    Hello,

    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.

    Any ideas?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,677
    You'll have to post the code, or give alot more details.
    Post the code.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Delete files that are used
    By Yuri in forum C++ Programming
    Replies: 8
    Last Post: 10-18-2005, 01:48 PM
  2. problem with A simple modeless messagebox
    By hanhao in forum C++ Programming
    Replies: 8
    Last Post: 07-05-2005, 11:18 PM
  3. Forcing MessageBox to be non-concurrent?
    By JasonD in forum Windows Programming
    Replies: 17
    Last Post: 12-10-2003, 02:16 PM
  4. EnterCriticalSection and MessageBox
    By novacain in forum Windows Programming
    Replies: 13
    Last Post: 01-30-2003, 07:48 AM
  5. A multiline MessageBox?
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 06-27-2002, 05:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21