15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Updating available windows for multiple views

Spencer Jones -- Spencer@azure.com
Friday, November 15, 1996

Environment: VC++ 4.2-flat, Win 95

I have an application based on a single document, but using a multiple
document interface for multiple views. This creates each view using a
Multiple Document Template. This allows the views to be displayed as
frames, looking like a multiple document interface. This means that the
views can be tiled or cascaded from the default 'windows' menu.

However I want to be able to hide views. If I hide a view the dynamic
part of the 'windows' menu that allows the in focus view to be selected
is not updated until another view is selected. Is it possible to update
this manually, particularly in the case of when no views are open? (i.e.
the focus can not be changed to a different view to force the update.

Spencer Jones.
Azure Limited.




Scott Andrew -- sandrew@pacbell.net
Sunday, November 17, 1996

You can try putting ON_UPDATE_COMMAND_UI in the main window.

Scott Andrew
At 11:09 AM 11/15/96 -0000, you wrote:
>Environment: VC++ 4.2-flat, Win 95
>
>I have an application based on a single document, but using a multiple
>document interface for multiple views. This creates each view using a
>Multiple Document Template. This allows the views to be displayed as
>frames, looking like a multiple document interface. This means that the
>views can be tiled or cascaded from the default 'windows' menu.
>
>However I want to be able to hide views. If I hide a view the dynamic
>part of the 'windows' menu that allows the in focus view to be selected
>is not updated until another view is selected. Is it possible to update
>this manually, particularly in the case of when no views are open? (i.e.
>the focus can not be changed to a different view to force the update.
>
>Spencer Jones.
>Azure Limited.
>
>




| Вернуться в корень Архива |