From f495592d12f7099163bf64891cdcacbe37c60bba Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 21 Mar 2012 03:32:18 +0000 Subject: [PATCH] Fixed old icon being displayed in Explorer. --- win/LeoCAD.rc | 1 - win/Leocad.cpp | 15 ++------------- win/res/idr_part.ico | Bin 1078 -> 0 bytes 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 win/res/idr_part.ico diff --git a/win/LeoCAD.rc b/win/LeoCAD.rc index 7fcd7e44..62004a53 100644 --- a/win/LeoCAD.rc +++ b/win/LeoCAD.rc @@ -72,7 +72,6 @@ END // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDR_MAINFRAME ICON "res\\idr_main.ico" -IDR_PARTFRAME ICON "res\\idr_part.ico" ///////////////////////////////////////////////////////////////////////////// // diff --git a/win/Leocad.cpp b/win/Leocad.cpp index 6561983a..9f4ba59d 100644 --- a/win/Leocad.cpp +++ b/win/Leocad.cpp @@ -154,18 +154,7 @@ CCADApp theApp; BOOL CCADApp::InitInstance() { - // Standard initialization - // If you are not using these features and wish to reduce the size - // of your final executable, you should remove from the following - // the specific initialization routines you do not need. - -#if _MFC_VER < 0x0710 -#ifdef _AFXDLL - Enable3dControls(); // Call this when using MFC in a shared DLL -#else - Enable3dControlsStatic(); // Call this when linking to MFC statically -#endif -#endif + CWinAppEx::InitInstance(); SetRegistryKey(_T("BT Software")); LoadStdProfileSettings(); @@ -203,7 +192,7 @@ BOOL CCADApp::InitInstance() AddDocTemplate(pDocTemplate); EnableShellOpen(); - RegisterShellFileTypes(TRUE); + RegisterShellFileTypes(); UINT cmdshow = m_nCmdShow; m_nCmdShow = SW_HIDE; diff --git a/win/res/idr_part.ico b/win/res/idr_part.ico deleted file mode 100644 index 688225cc8dff30c1bbd3716fd27e657a450d2c40..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1078 zcmdr~J930D41Fw_$+!vJV5u^D3v#pg2yS&7j8e!|}1iUkjW8g~%y!F6^+(i4Jb$FrY;Aj}km`0;U3=99x&iYF3=7czwQ=A6#=SXl zpPD; tsETP0xU7jfQoB&3N>L;K3)ocTdltD4BDpWf9pkUH@%5GOoJDSP!4FqZI~V`}