Discussion:
MDI app - lost menu
(too old to reply)
lee
2006-05-14 01:35:42 UTC
Permalink
Hi, I have created a text file viewer based on VC++ 5 mfc app wizard,
using a multiple document interface.

The normal behaviour I get when I run it is as follows:
Initially there is an application-wide menu allowing the user to open a
file.
Then when a file has been opened, a new document specific menu is
loaded instead allowing the user to alter the display options for that
particular document.

This works fine on every PC I have tested it on.

However, I have had a report from a user that they only see the
application wide menu, and never see the document specific menu. Hence
they can load the file but cannot change the display options.

Is there anything that could stop this menu from loading in some cases?

Lee.

PS.

The program is linked with static libraries and the binary is available
here: http://www.leehanken.pwp.blueyonder.co.uk/atari/ATASCIIView.zip
I am using the default menu swapping behaviour (i.e. I have not
overridden the virtual function LoadFrame).
Ajay Kalra
2006-05-15 15:23:59 UTC
Permalink
Thats almost impossible unless you are changing some menus programmatically
based on the document type. I will also ensure that the user does have the
same MFC you are using.

--
Ajay Kalra [MVP - VC++]
Post by lee
Hi, I have created a text file viewer based on VC++ 5 mfc app wizard,
using a multiple document interface.
Initially there is an application-wide menu allowing the user to open a
file.
Then when a file has been opened, a new document specific menu is
loaded instead allowing the user to alter the display options for that
particular document.
This works fine on every PC I have tested it on.
However, I have had a report from a user that they only see the
application wide menu, and never see the document specific menu. Hence
they can load the file but cannot change the display options.
Is there anything that could stop this menu from loading in some cases?
Lee.
PS.
The program is linked with static libraries and the binary is available
here: http://www.leehanken.pwp.blueyonder.co.uk/atari/ATASCIIView.zip
I am using the default menu swapping behaviour (i.e. I have not
overridden the virtual function LoadFrame).
Z.K.
2006-07-16 10:29:32 UTC
Permalink
Post by lee
Hi, I have created a text file viewer based on VC++ 5 mfc app wizard,
using a multiple document interface.
Initially there is an application-wide menu allowing the user to open a
file.
Then when a file has been opened, a new document specific menu is
loaded instead allowing the user to alter the display options for that
particular document.
This works fine on every PC I have tested it on.
However, I have had a report from a user that they only see the
application wide menu, and never see the document specific menu. Hence
they can load the file but cannot change the display options.
Is there anything that could stop this menu from loading in some cases?
Lee.
PS.
The program is linked with static libraries and the binary is available
here: http://www.leehanken.pwp.blueyonder.co.uk/atari/ATASCIIView.zip
I am using the default menu swapping behaviour (i.e. I have not
overridden the virtual function LoadFrame).
I tried your program and it works fine for me. I am hardly an expert
about this, but it seems to me that if on most PCs it works fine then
probably there is something wrong on the one PC where it does not. Are
they all using the same operating system though I would think that the
program should work on any version of windows. If you are using a
shared DLL, you might try compiling it in a static and see what happens.
Other than that, you have a bit of a strange problem and I would agree
with Ajay, that it should not be able to do that in normal circumstances.

Z.K.

Loading...