URGENT!! Message Mix-up!

This is a discussion on URGENT!! Message Mix-up! within the Windows Programming forums, part of the Platform Specific Boards category; I've got a MAJOR problem on my hands and I'm looking for suggestions how how I can overcome it. Here ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    9

    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
    Posts
    2,544
    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, 08: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, 06:48 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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