Sending messages to a menu but never returning

Discussion in 'C Programming' started by SNutter, Jan 16, 2004.

  1. SNutter

    SNutter Guest

    I have been given the task of figuring out why an old program written
    in C behaves the way it does on w2k. A class is registered with a
    menu resource. When the menu pops up Spy indicates the sending of
    WM_NCCREATE,WM_NCCALCSIZE,WM_CREATE,WM_SIZE,WM_MOVE,... to I am
    assuming the handle of the menu, however there is never a return and
    each time a menu is poped up the messages keep getting deeper and
    deeper until the menus eventually quit responding.

    I believe this code was originally written for windows 3.1 and ported
    to its present state. The code did not exibit this behavior on NT4.0.

    Any suggestions would be greatly appreciated.
     
    SNutter, Jan 16, 2004
    #1
    1. Advertisements

  2. Your post is off-topic for comp.lang.c. Please visit

    http://www.csclub.uwaterloo.ca/u/dj3vande/clc/clc-welcome.txt
    http://www.eskimo.com/~scs/C-faq/top.html
    http://benpfaff.org/writings/clc/off-topic.html

    for posting guidelines and frequently asked questions. Thank you.
     
    Christopher Benson-Manica, Jan 16, 2004
    #2
    1. Advertisements

  3. SNutter

    CBFalconer Guest

    Find a windows group. Portable standard C knows nothing about
    w2k, menus, spies, WM_*, etc. ad nauseam.
     
    CBFalconer, Jan 16, 2004
    #3
  4. SNutter

    SNutter Guest

    Sorry, my bad.
     
    SNutter, Jan 16, 2004
    #4
  5. SNutter

    SNutter Guest

    Sorry, my bad.
     
    SNutter, Jan 16, 2004
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.