summaryrefslogtreecommitdiff
path: root/win/Leocad.cpp
diff options
context:
space:
mode:
authorleo2001-01-28 22:22:31 +0000
committerleo2001-01-28 22:22:31 +0000
commitd6421347150ba0aadfeb30399c9a4bdbdfeb619b (patch)
treef532aefc7520f4f3f023159e43dcfb93b2ebf497 /win/Leocad.cpp
parentce009ce3ae77b9b55772a0068b8b3e0029a398d4 (diff)
Fixed the recent files menu
git-svn-id: http://svn.leocad.org/trunk@233 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Leocad.cpp')
-rw-r--r--win/Leocad.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/win/Leocad.cpp b/win/Leocad.cpp
index 657fc62..c125ab3 100644
--- a/win/Leocad.cpp
+++ b/win/Leocad.cpp
@@ -13,6 +13,7 @@
#include "system.h"
#include "pieceinf.h" // TODO: remove
#include "config.h"
+#include "mainwnd.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -92,9 +93,7 @@ BOOL CCADApp::InitInstance()
SetRegistryKey(_T("BT Software"));
// LoadStdProfileSettings(); // Load standard INI file options (including MRU)
-
if (!GL_Initialize (NULL))
-
return FALSE;
// Register the application's document templates. Document templates
@@ -110,6 +109,7 @@ BOOL CCADApp::InitInstance()
EnableShellOpen();
RegisterShellFileTypes(TRUE);
+ main_window = new MainWnd ();
project = new Project;
UINT cmdshow = m_nCmdShow;
@@ -241,6 +241,8 @@ BOOL CCADApp::InitInstance()
m_pMainWnd->UpdateWindow();
project->HandleNotify(LC_ACTIVATE, 1);
+ main_window->UpdateMRU ();
+
// Enable drag/drop open
m_pMainWnd->DragAcceptFiles();