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

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


Menu bar in CMDIChildWnd

Ho Pham -- hop@allensysgroup.com
Tuesday, February 11, 1997

Environment: VC++4.2b, Win 95, NT 4.0

I have a MDI app. In there, I have a CMDIChildWnd framed window.
On creation of the MDI child win, I added the menu bar, tool bar and
status bar. The tool bar and status bar appear correctly in the child
window BUT the menu bar is seen on the MDI Main Frame.

As a MFC newbie, I would like to know if it is MFC style to have the
menu bar always on the Main Frame? If not, can someone show me what
need to be done to have each child win to have its own menu bar.

Thank you.

========================
Ho Pham
hop@allensysgroup.com
========================



P. Senthil -- senthilp@geocities.com
Thursday, February 13, 1997

[Mini-digest: 3 responses]

Is'nt this a Windows issue? In CreateWindow(Ex) the HMENU specifies the
menu to be used if the window is overlapped or popup. For child windows,
it specifies the child window identifier.

So a child window cannot have menus.


Ho Pham wrote:
 
> Environment: VC++4.2b, Win 95, NT 4.0
> 
> I have a MDI app. In there, I have a CMDIChildWnd framed window.
> On creation of the MDI child win, I added the menu bar, tool bar and
> status bar. The tool bar and status bar appear correctly in the child
> window BUT the menu bar is seen on the MDI Main Frame.
> 
> As a MFC newbie, I would like to know if it is MFC style to have the
> menu bar always on the Main Frame? If not, can someone show me what
> need to be done to have each child win to have its own menu bar.
> 
> Thank you.
> 
> ========================
> Ho Pham
> hop@allensysgroup.com
> ========================

-- 
P. Senthil
-----------------------------------------------------------------------
1, 7th Avenue (West),
7th Main Road,
Dhandeeswaram Nagar,
Velachery,
MADRAS - 600 042.

Mail:  senthilp@geocities.com

Homepage: www.geocities.com/SiliconValley/Heights/6504

-----From: "P. Senthil" 

Is'nt this a Windows issue? In CreateWindow(Ex) the HMENU specifies the
menu to be used if the window is overlapped or popup. For child windows,
it specifies the child window identifier.

So a child window cannot have menus.


Ho Pham wrote:
 
> Environment: VC++4.2b, Win 95, NT 4.0
> 
> I have a MDI app. In there, I have a CMDIChildWnd framed window.
> On creation of the MDI child win, I added the menu bar, tool bar and
> status bar. The tool bar and status bar appear correctly in the child
> window BUT the menu bar is seen on the MDI Main Frame.
> 
> As a MFC newbie, I would like to know if it is MFC style to have the
> menu bar always on the Main Frame? If not, can someone show me what
> need to be done to have each child win to have its own menu bar.
> 
> Thank you.
> 
> ========================
> Ho Pham
> hop@allensysgroup.com
> ========================

-- 
P. Senthil
-----------------------------------------------------------------------
1, 7th Avenue (West),
7th Main Road,
Dhandeeswaram Nagar,
Velachery,
MADRAS - 600 042.

Mail:  senthilp@geocities.com

Homepage: www.geocities.com/SiliconValley/Heights/6504

-----From: "P. Senthil" 

Is'nt this a Windows issue? In CreateWindow(Ex) the HMENU specifies the
menu to be used if the window is overlapped or popup. For child windows,
it specifies the child window identifier.

So a child window cannot have menus.


Ho Pham wrote:
 
> Environment: VC++4.2b, Win 95, NT 4.0
> 
> I have a MDI app. In there, I have a CMDIChildWnd framed window.
> On creation of the MDI child win, I added the menu bar, tool bar and
> status bar. The tool bar and status bar appear correctly in the child
> window BUT the menu bar is seen on the MDI Main Frame.
> 
> As a MFC newbie, I would like to know if it is MFC style to have the
> menu bar always on the Main Frame? If not, can someone show me what
> need to be done to have each child win to have its own menu bar.
> 
> Thank you.
> 
> ========================
> Ho Pham
> hop@allensysgroup.com
> ========================

-- 
P. Senthil
-----------------------------------------------------------------------
1, 7th Avenue (West),
7th Main Road,
Dhandeeswaram Nagar,
Velachery,
MADRAS - 600 042.

Mail:  senthilp@geocities.com

Homepage: www.geocities.com/SiliconValley/Heights/6504




Become an MFC-L member | Вернуться в корень Архива |