Thread: URGENT!! Message Mix-up!

  1. #1
    Registered User
    Join Date
    Jan 2004

    URGENT!! Message Mix-up!

    I've got a MAJOR problem on my hands and I'm looking for suggestions how how I can overcome it.

    Here is what I want my program to do, but no matter how I try to fix the problem, it never works!

    I've been writing a program, that starts with loading a (main) normal window. I've been trying to get it to open a new MDI window for monitoring program features and I've got nothing but success in the creation, except for one required message that locks the whole program. I want to be able to switch between the windows, by just clicking on it, and it pauses the one that is not in focus.

    I've code for this that worked well with SDI windows, but the MDI's required 'DefFrameProc' function locks the program, making both windows not respond. I comment the line out, and I can switch between programs just fine.

    Does anybody have any idea how I can still make both windows respond while keeping the DefFrameProc? Or have I not explained myself well, or am I SOL?

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    It's hard to tell without code but as a guess are you using DefMDIChildProc and DefFrameProc in the right places?

    >>I comment the line out, and I can switch between programs just fine.<<

    I don't think it would work without any default message handling. You're not passing the message to both DefFrameProc and DefWindowProc are you?

    The easiest thing would be to find some MDI sample code and figure out what you are doing differently.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange string behavior
    By jcafaro10 in forum C Programming
    Replies: 2
    Last Post: 04-07-2009, 07:38 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Making a script language?
    By Blackroot in forum Game Programming
    Replies: 10
    Last Post: 02-16-2006, 02:22 AM
  4. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM