[windev] Documents menu

truckleaj-windev@yahoo.co.uk truckleaj-windev at yahoo.co.uk
Thu Nov 5 19:35:42 GMT 2009


I gleaned what I needed from the BCMenu class instructions:
// This code replaces the MFC created menus with the Ownerdrawn versions //=
 REMOVEpDocTemplate->m_hMenuShared=3DpMainFrame->NewMenu();// REMOVEpMainFr=
ame->m_hMenuDefault=3DpMainFrame->NewDefaultMenu();// This simulates a wind=
ow being opened if you don't have// a default window displayed at startup//=
 REMOVEAndrew




________________________________
From: "truckleaj-windev at yahoo.co.uk" <truckleaj-windev at yahoo.co.uk>
To: windev at windev.org
Sent: Thu, 5 November, 2009 16:22:15
Subject: [windev] Documents menu

Hello

I have written my own MFC function to add bitmaps to a menu. It is called i=
n CMainFrame::OnCreate using the menu pointer from GetMenu().

It works and functions.

But when a new document (MDI program) is created it uses a different menu w=
hich has extra options on it. The images naturally don't display.

I can't work out where and when I can get access to this new documents menu=
 so that I can add the bitmaps to it.

I have done research on MSDN and elsewhere with google but they don't seem =
to give me the answers I am looking for.

Thank you in advance.

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.windev.org/pipermail/windev/attachments/20091105/2d3b195e=
/attachment.htm
-- =

Windev mailing list at Windev at windev.org

Lost your password?=A0 Need to unsubscribe or change your delivery options?=
=A0 =

Go to http://lists.windev.org/mailman/listinfo/windev
--
Search the Windev Archives - www.windev.org
pMainFrame->OnUpdateFrameMenu(pMainFrame->m_hMenuDefault);=A0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.windev.org/pipermail/windev/attachments/20091105/502b550f=
/attachment.htm


More information about the Windev mailing list