//ignore_blank_lines_flag = 1;
GetFontProperties();
- if (!m_wndToolBar.Create(this) ||
+ if (!m_wndToolBar.CreateEx(this,TBSTYLE_FLAT,WS_CHILD|WS_VISIBLE|CBRS_GRIPPER|CBRS_TOP|CBRS_TOOLTIPS|CBRS_FLYBY|CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return 0;
}
+
+HMENU CMainFrame::NewDefaultMenu()
+{
+ m_default.LoadMenu(IDR_MAINFRAME);
+ m_default.LoadToolbar(IDR_MAINFRAME);
+ return(m_default.Detach());
+}
+
+
+
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
#pragma once
#endif // _MSC_VER >= 1000
+#include "bcmenu.h"
+
#define BACKUP_FILE_EXT _T(".bak")
CMergeDoc *m_pMergeDoc;
CDirDoc *m_pDirDoc;
virtual ~CMainFrame();
+ HMENU NewDefaultMenu();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
+ BCMenu m_default;
// Generated message map functions
protected:
SillyTestCrap();
#endif
+// _CrtSetBreakAlloc( 11481 );
+
// CCrystalEdit Drag and Drop functionality needs AfxOleInit.
if(!AfxOleInit())
{
return FALSE;
m_pMainWnd = pMainFrame;
+ pMainFrame->m_hMenuDefault=pMainFrame->NewDefaultMenu();
+
+ // This simulates a window being opened if you don't have
+ // a default window displayed at startup
+ pMainFrame->OnUpdateFrameMenu(pMainFrame->m_hMenuDefault);
+
// Parse command line for standard shell commands, DDE, file open
//CCommandLineInfo cmdInfo;
//ParseCommandLine(cmdInfo);
# End Source File
# Begin Source File
+SOURCE=.\BCMenu.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\CCPrompt.cpp
# End Source File
# Begin Source File
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
+SOURCE=.\BCMenu.h
+# End Source File
+# Begin Source File
+
SOURCE=.\CCPrompt.h
# End Source File
# Begin Source File