Sending messages to a menu but never returning

S

SNutter

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.
 
C

Christopher Benson-Manica

SNutter said:
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
(etc.)

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.
 
C

CBFalconer

SNutter said:
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.

Find a windows group. Portable standard C knows nothing about
w2k, menus, spies, WM_*, etc. ad nauseam.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top