├── .gitignore ├── DiskImager ├── DiskImager.cpp ├── DiskImager.h ├── DiskImager.rc ├── DiskImager.vcproj ├── DiskImager.vcxproj ├── DiskImager.vcxproj.filters ├── MainDlg.cpp ├── MainDlg.h ├── disk.cpp ├── disk.h ├── res │ ├── Win32DiskImager.ico │ ├── ahill.bmp │ ├── browse.png │ └── reload.png ├── resource.h ├── stdafx.cpp └── stdafx.h ├── LICENSE ├── README.md ├── WTL10_10320_Release ├── .gitignore ├── AppWizard │ ├── Files │ │ ├── HTML │ │ │ └── 1033 │ │ │ │ ├── AppType.htm │ │ │ │ ├── UIFeatures.htm │ │ │ │ └── default.htm │ │ ├── Images │ │ │ ├── WTL10AppWiz.png │ │ │ ├── WTL10AppWiz_Background.png │ │ │ └── spacer.gif │ │ ├── Scripts │ │ │ └── 1033 │ │ │ │ └── default.js │ │ ├── Templates │ │ │ └── 1033 │ │ │ │ ├── AboutDlg.cpp │ │ │ │ ├── AboutDlg.h │ │ │ │ ├── ChildFrm.cpp │ │ │ │ ├── ChildFrm.h │ │ │ │ ├── Frame.cpp │ │ │ │ ├── Frame.h │ │ │ │ ├── MainDlg.cpp │ │ │ │ ├── MainDlg.h │ │ │ │ ├── Ribbon.h │ │ │ │ ├── Ribbon.xml │ │ │ │ ├── Templates.inf │ │ │ │ ├── View.cpp │ │ │ │ ├── View.h │ │ │ │ ├── resource.h │ │ │ │ ├── root.cpp │ │ │ │ ├── root.h │ │ │ │ ├── root.ico │ │ │ │ ├── root.idl │ │ │ │ ├── root.rc │ │ │ │ ├── root.rgs │ │ │ │ ├── rootDoc.ico │ │ │ │ ├── rootidl.h │ │ │ │ ├── rootps.def │ │ │ │ ├── rootps.mk │ │ │ │ ├── stdafx.cpp │ │ │ │ ├── stdafx.h │ │ │ │ └── toolbar.bmp │ │ ├── WTL10AppWiz.ico │ │ ├── WTL10AppWiz.vsdir │ │ └── WTL10AppWiz.vsz │ └── Setup.js ├── Include │ ├── atlapp.h │ ├── atlcrack.h │ ├── atlctrls.h │ ├── atlctrlw.h │ ├── atlctrlx.h │ ├── atlddx.h │ ├── atldlgs.h │ ├── atldwm.h │ ├── atlfind.h │ ├── atlframe.h │ ├── atlgdi.h │ ├── atlmisc.h │ ├── atlprint.h │ ├── atlres.h │ ├── atlribbon.h │ ├── atlscrl.h │ ├── atlsplit.h │ ├── atltheme.h │ ├── atluser.h │ └── atlwinx.h ├── MS-PL.txt ├── ReadMe.html └── Samples │ ├── Aero │ ├── AboutDlg.h │ ├── Aero.cpp │ ├── Aero.h │ ├── Aero.rc │ ├── AeroView.h │ ├── Aero_2005.sln │ ├── Aero_2005.vcproj │ ├── Aero_2010.sln │ ├── Aero_2010.vcxproj │ ├── Aero_2010.vcxproj.filters │ ├── MainFrm.h │ ├── res │ │ ├── Aero.ico │ │ └── toolbar.bmp │ ├── resource.h │ ├── stdafx.cpp │ └── stdafx.h │ ├── Alpha │ ├── Alpha.cpp │ ├── Alpha.h │ ├── Alpha.rc │ ├── Alpha_2005.sln │ ├── Alpha_2005.vcproj │ ├── Alpha_2010.sln │ ├── Alpha_2010.vcxproj │ ├── Alpha_2010.vcxproj.filters │ ├── aboutdlg.h │ ├── mainfrm.h │ ├── readme.txt │ ├── res │ │ ├── Alpha.ico │ │ ├── toolbar.bmp │ │ └── toolbar_old.bmp │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── view.h │ ├── BmpView │ ├── BmpView.cpp │ ├── BmpView.rc │ ├── BmpView_2005.sln │ ├── BmpView_2005.vcproj │ ├── BmpView_2010.sln │ ├── BmpView_2010.vcxproj │ ├── BmpView_2010.vcxproj.filters │ ├── list.h │ ├── mainfrm.h │ ├── props.h │ ├── res │ │ ├── BmpView.ico │ │ └── Toolbar.bmp │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── view.h │ ├── GuidGen │ ├── GuidGen.cpp │ ├── GuidGen.rc │ ├── GuidGen_2005.sln │ ├── GuidGen_2005.vcproj │ ├── GuidGen_2010.sln │ ├── GuidGen_2010.vcxproj │ ├── GuidGen_2010.vcxproj.filters │ ├── aboutdlg.h │ ├── maindlg.h │ ├── res │ │ └── GuidGen.ico │ ├── resource.h │ ├── stdatl.cpp │ └── stdatl.h │ ├── MDIDocVw │ ├── MDI.cpp │ ├── MDI.rc │ ├── MDI_2005.sln │ ├── MDI_2005.vcproj │ ├── MDI_2010.sln │ ├── MDI_2010.vcxproj │ ├── MDI_2010.vcxproj.filters │ ├── mainfrm.h │ ├── res │ │ ├── HelloDoc.ico │ │ ├── MDI.ico │ │ ├── Toolbar.bmp │ │ └── bounce.ico │ ├── resource.h │ ├── stdafx.cpp │ └── stdafx.h │ ├── MTPad │ ├── MTPad.cpp │ ├── MTPad.h │ ├── MTPad.rc │ ├── MTPad_2005.sln │ ├── MTPad_2005.vcproj │ ├── MTPad_2010.sln │ ├── MTPad_2010.vcxproj │ ├── MTPad_2010.vcxproj.filters │ ├── aboutdlg.h │ ├── finddlg.h │ ├── mainfrm.h │ ├── res │ │ ├── MTPad.ico │ │ ├── MTPadDoc.ico │ │ ├── Toolbar.bmp │ │ └── printpre.bmp │ ├── resource.h │ ├── stdatl.cpp │ ├── stdatl.h │ └── view.h │ ├── MTPad7 │ ├── MTPad.cpp │ ├── MTPad.h │ ├── MTPad7_2008.sln │ ├── MTPad7_2008.vcproj │ ├── MTPad7_2010.sln │ ├── MTPad7_2010.vcxproj │ ├── MTPad7_2010.vcxproj.filters │ ├── MTPadRibbon.h │ ├── MTPadRibbon.rc │ ├── MTPadRibbon.xml │ ├── aboutdlg.h │ ├── finddlg.h │ ├── mainfrm.h │ ├── mtpad.rc │ ├── res │ │ ├── ClosePreviewHH.bmp │ │ ├── GoToNextHS.bmp │ │ ├── GoToPreviousHS.bmp │ │ ├── MTPad.ico │ │ ├── MTPadDoc.ico │ │ ├── PortraitLandscapeHS.bmp │ │ ├── PrintPreviewL.bmp │ │ ├── SelectAllS.bmp │ │ ├── Toolbar.bmp │ │ ├── UndoS.bmp │ │ └── printpre.bmp │ ├── resource.h │ ├── stdatl.cpp │ ├── stdatl.h │ └── view.h │ ├── MemDlg │ ├── AboutDlg.h │ ├── AboutDlgIndirect.h │ ├── MainFrm.h │ ├── MemDlg.cpp │ ├── MemDlg.rc │ ├── MemDlg_2005.sln │ ├── MemDlg_2005.vcproj │ ├── MemDlg_2010.sln │ ├── MemDlg_2010.vcxproj │ ├── MemDlg_2010.vcxproj.filters │ ├── View.h │ ├── res │ │ ├── MemDlg.ico │ │ └── toolbar.bmp │ ├── resource.h │ ├── stdafx.cpp │ └── stdafx.h │ ├── TabBrowser │ ├── AboutDlg.h │ ├── AddressCombo.h │ ├── BrowserView.h │ ├── CustomTabView.h │ ├── MainFrm.h │ ├── OpenDlg.h │ ├── TabBrowser.cpp │ ├── TabBrowser.h │ ├── TabBrowser.rc │ ├── TabBrowser_2005.sln │ ├── TabBrowser_2005.vcproj │ ├── TabBrowser_2010.sln │ ├── TabBrowser_2010.vcxproj │ ├── TabBrowser_2010.vcxproj.filters │ ├── WindowsDlg.h │ ├── res │ │ ├── Go.bmp │ │ ├── PageImage.bmp │ │ ├── TabBrowser.ico │ │ ├── TabToolbar.bmp │ │ ├── Toolbar.bmp │ │ └── Toolbar_Big.bmp │ ├── resource.h │ ├── stdafx.cpp │ └── stdafx.h │ ├── WTLExplorer │ ├── ExplorerCombo.h │ ├── MainFrm.cpp │ ├── ShellMgr.cpp │ ├── ShellMgr.h │ ├── WTLExplorer.cpp │ ├── WTLExplorer.rc │ ├── WTLExplorer_2005.sln │ ├── WTLExplorer_2005.vcproj │ ├── WTLExplorer_2010.sln │ ├── WTLExplorer_2010.vcxproj │ ├── WTLExplorer_2010.vcxproj.filters │ ├── mainfrm.h │ ├── res │ │ ├── Toolbar.bmp │ │ ├── WTLExplorer.ico │ │ ├── go.bmp │ │ └── go1.bmp │ ├── resource.h │ ├── stdafx.cpp │ └── stdafx.h │ └── Wizard97Test │ ├── Wizard │ ├── FolderDialogStatusText.h │ ├── TestWizard.cpp │ ├── TestWizard.h │ ├── TestWizardCompletionPage.cpp │ ├── TestWizardCompletionPage.h │ ├── TestWizardFilePreviewPage.cpp │ ├── TestWizardFilePreviewPage.h │ ├── TestWizardInfo.cpp │ ├── TestWizardInfo.h │ ├── TestWizardOutputPage.cpp │ ├── TestWizardOutputPage.h │ ├── TestWizardPathFilterPage.cpp │ ├── TestWizardPathFilterPage.h │ ├── TestWizardSheet.cpp │ ├── TestWizardSheet.h │ ├── TestWizardWelcomePage.cpp │ └── TestWizardWelcomePage.h │ ├── Wizard97Test.cpp │ ├── Wizard97Test.h │ ├── Wizard97Test.rc │ ├── Wizard97Test_2005.sln │ ├── Wizard97Test_2005.vcproj │ ├── Wizard97Test_2010.sln │ ├── Wizard97Test_2010.vcxproj │ ├── Wizard97Test_2010.vcxproj.filters │ ├── help │ ├── Context.h │ ├── Context.txt │ ├── TestWizard_Completion.html │ ├── TestWizard_Completion.png │ ├── TestWizard_Output.html │ ├── TestWizard_Output.png │ ├── TestWizard_PathFilter.html │ ├── TestWizard_PathFilter.png │ ├── TestWizard_PreviewFileList.html │ ├── TestWizard_PreviewFileList.png │ ├── TestWizard_Welcome.html │ ├── TestWizard_Welcome.png │ ├── Wizard97Test.hhc │ ├── Wizard97Test.hhk │ ├── Wizard97Test.hhp │ ├── Wizard97Test.html │ ├── readme-help.txt │ └── style.css │ ├── res │ ├── Wizard97Test.ico │ ├── header.bmp │ └── watermark.bmp │ ├── resource.h │ ├── resource.hm │ ├── stdafx.cpp │ └── stdafx.h ├── Win32DiskImager_VS2022.sln ├── doc_img ├── ss.jpg ├── ss2.jpg ├── uac_error.jpg └── uac_ok.jpg └── old-README.txt /DiskImager/DiskImager.cpp: -------------------------------------------------------------------------------- 1 | // Win32DiskManager.cpp : main source file for Win32DiskManager.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include "resource.h" 7 | 8 | #include "MainDlg.h" 9 | #include 10 | 11 | CAppModule _Module; 12 | 13 | int Run(LPTSTR lpstrCmdLine = NULL, int nCmdShow = SW_SHOWDEFAULT) 14 | { 15 | CMessageLoop theLoop; 16 | _Module.AddMessageLoop(&theLoop); 17 | 18 | int nArgs; 19 | LPWSTR* lpszArgv = CommandLineToArgvW(lpstrCmdLine, &nArgs); 20 | 21 | CMainDlg dlgMain( (nArgs>1) ? lpszArgv[1] : NULL); 22 | 23 | if(dlgMain.Create(NULL) == NULL) 24 | { 25 | ATLTRACE(_T("Main dialog creation failed!\n")); 26 | return 0; 27 | } 28 | 29 | dlgMain.ShowWindow(nCmdShow); 30 | 31 | LocalFree(lpszArgv); 32 | 33 | int nRet = theLoop.Run(); 34 | 35 | _Module.RemoveMessageLoop(); 36 | return nRet; 37 | } 38 | 39 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow) 40 | { 41 | HRESULT hRes = ::CoInitialize(NULL); 42 | ATLASSERT(SUCCEEDED(hRes)); 43 | 44 | AtlInitCommonControls(ICC_BAR_CLASSES); // add flags to support other controls 45 | 46 | ULONG_PTR token; 47 | Gdiplus::GdiplusStartupInput gdiplusStartupInput; 48 | Gdiplus::GdiplusStartup(&token, &gdiplusStartupInput, NULL); 49 | 50 | hRes = _Module.Init(NULL, hInstance); 51 | ATLASSERT(SUCCEEDED(hRes)); 52 | 53 | int nRet = Run(lpstrCmdLine, nCmdShow); 54 | 55 | Gdiplus::GdiplusShutdown(token); 56 | 57 | _Module.Term(); 58 | ::CoUninitialize(); 59 | 60 | return nRet; 61 | } 62 | -------------------------------------------------------------------------------- /DiskImager/DiskImager.h: -------------------------------------------------------------------------------- 1 | // Win32DiskManager.h 2 | -------------------------------------------------------------------------------- /DiskImager/DiskImager.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/DiskImager/DiskImager.rc -------------------------------------------------------------------------------- /DiskImager/DiskImager.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/DiskImager/DiskImager.vcproj -------------------------------------------------------------------------------- /DiskImager/DiskImager.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav 15 | 16 | 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | src 26 | 27 | 28 | src 29 | 30 | 31 | 32 | 33 | inc 34 | 35 | 36 | inc 37 | 38 | 39 | inc 40 | 41 | 42 | inc 43 | 44 | 45 | inc 46 | 47 | 48 | 49 | 50 | res 51 | 52 | 53 | 54 | 55 | res 56 | 57 | 58 | res 59 | 60 | 61 | res 62 | 63 | 64 | res 65 | 66 | 67 | -------------------------------------------------------------------------------- /DiskImager/res/Win32DiskImager.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/DiskImager/res/Win32DiskImager.ico -------------------------------------------------------------------------------- /DiskImager/res/ahill.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/DiskImager/res/ahill.bmp -------------------------------------------------------------------------------- /DiskImager/res/browse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/DiskImager/res/browse.png -------------------------------------------------------------------------------- /DiskImager/res/reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/DiskImager/res/reload.png -------------------------------------------------------------------------------- /DiskImager/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/DiskImager/resource.h -------------------------------------------------------------------------------- /DiskImager/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // Win32DiskManager.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /DiskImager/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | // Change these values to use different versions 9 | #define WINVER 0x0501 10 | #define _WIN32_WINNT 0x0502 11 | #define _WIN32_IE 0x0600 12 | #define _RICHEDIT_VER 0x0300 13 | 14 | #define _USING_V110_SDK71_ 15 | #define _WTL_NO_CSTRING 16 | #define _WTL_NO_WTYPES 17 | 18 | #include 19 | #include 20 | #include 21 | 22 | extern CAppModule _Module; 23 | 24 | #include 25 | 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | 35 | #if defined _M_IX86 36 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 37 | #elif defined _M_IA64 38 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 39 | #elif defined _M_X64 40 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 41 | #else 42 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 43 | #endif 44 | -------------------------------------------------------------------------------- /WTL10_10320_Release/.gitignore: -------------------------------------------------------------------------------- 1 | !* 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Images/WTL10AppWiz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/AppWizard/Files/Images/WTL10AppWiz.png -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Images/WTL10AppWiz_Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/AppWizard/Files/Images/WTL10AppWiz_Background.png -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/AppWizard/Files/Images/spacer.gif -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/AboutDlg.cpp: -------------------------------------------------------------------------------- 1 | // aboutdlg.cpp : implementation of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #include "stdafx.h" 6 | #include "resource.h" 7 | 8 | #include "aboutdlg.h" 9 | 10 | LRESULT CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 11 | { 12 | CenterWindow(GetParent()); 13 | return TRUE; 14 | } 15 | 16 | LRESULT CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 17 | { 18 | EndDialog(wID); 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/AboutDlg.h: -------------------------------------------------------------------------------- 1 | // aboutdlg.h : interface of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CAboutDlg : public [!output ATL_NS]CDialogImpl 8 | { 9 | public: 10 | enum { IDD = IDD_ABOUTBOX }; 11 | 12 | BEGIN_MSG_MAP(CAboutDlg) 13 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 14 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 15 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 16 | END_MSG_MAP() 17 | 18 | // Handler prototypes (uncomment arguments if needed): 19 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 20 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 21 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 22 | 23 | [!if WTL_USE_CPP_FILES] 24 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 25 | [!else] 26 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 27 | { 28 | CenterWindow(GetParent()); 29 | return TRUE; 30 | } 31 | 32 | [!endif] 33 | [!if WTL_USE_CPP_FILES] 34 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 35 | [!else] 36 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 37 | { 38 | EndDialog(wID); 39 | return 0; 40 | } 41 | [!endif] 42 | }; 43 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/ChildFrm.cpp: -------------------------------------------------------------------------------- 1 | // [!output WTL_CHILD_FRAME_FILE].cpp : implementation of the [!output WTL_CHILD_FRAME_CLASS] class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #include "stdafx.h" 6 | #include "resource.h" 7 | 8 | [!if WTL_USE_VIEW] 9 | #include "[!output WTL_VIEW_FILE].h" 10 | [!endif] 11 | #include "[!output WTL_CHILD_FRAME_FILE].h" 12 | 13 | void [!output WTL_CHILD_FRAME_CLASS]::OnFinalMessage(HWND /*hWnd*/) 14 | { 15 | delete this; 16 | } 17 | 18 | [!if WTL_USE_VIEW] 19 | LRESULT [!output WTL_CHILD_FRAME_CLASS]::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) 20 | { 21 | [!if WTL_VIEWTYPE_FORM] 22 | m_hWndClient = m_view.Create(m_hWnd); 23 | [!else] 24 | [!if WTL_VIEWTYPE_HTML] 25 | //TODO: Replace with a URL of your choice 26 | m_hWndClient = m_view.Create(m_hWnd, rcDefault, _T("http://www.microsoft.com"), [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]); 27 | [!else] 28 | m_hWndClient = m_view.Create(m_hWnd, rcDefault, NULL, [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]); 29 | [!if WTL_VIEWTYPE_LISTBOX || WTL_VIEWTYPE_EDIT || WTL_VIEWTYPE_RICHEDIT] 30 | m_font = [!output WTL_NS]AtlCreateControlFont(); 31 | m_view.SetFont(m_font); 32 | [!endif] 33 | [!if WTL_VIEWTYPE_SCROLL] 34 | // replace with appropriate values for the app 35 | m_view.SetScrollSize(2000, 1000); 36 | [!endif] 37 | [!endif] 38 | [!endif] 39 | 40 | bHandled = FALSE; 41 | return 1; 42 | } 43 | 44 | [!endif] 45 | LRESULT [!output WTL_CHILD_FRAME_CLASS]::OnForwardMsg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/) 46 | { 47 | LPMSG pMsg = (LPMSG)lParam; 48 | 49 | [!if WTL_USE_VIEW] 50 | if([!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg)) 51 | return TRUE; 52 | 53 | return m_view.PreTranslateMessage(pMsg); 54 | [!else] 55 | return [!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg); 56 | [!endif] 57 | } 58 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/ChildFrm.h: -------------------------------------------------------------------------------- 1 | // [!output WTL_CHILD_FRAME_FILE].h : interface of the [!output WTL_CHILD_FRAME_CLASS] class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class [!output WTL_CHILD_FRAME_CLASS] : public [!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]> 8 | { 9 | public: 10 | DECLARE_FRAME_WND_CLASS(NULL, IDR_MDICHILD) 11 | 12 | [!if WTL_USE_VIEW] 13 | [!output WTL_VIEW_CLASS] m_view; 14 | 15 | [!endif] 16 | [!if WTL_VIEWTYPE_LISTBOX || WTL_VIEWTYPE_EDIT || WTL_VIEWTYPE_RICHEDIT] 17 | [!output WTL_NS]CFont m_font; 18 | 19 | [!endif] 20 | [!if WTL_USE_CPP_FILES] 21 | virtual void OnFinalMessage(HWND /*hWnd*/); 22 | [!else] 23 | virtual void OnFinalMessage(HWND /*hWnd*/) 24 | { 25 | delete this; 26 | } 27 | [!endif] 28 | 29 | BEGIN_MSG_MAP([!output WTL_CHILD_FRAME_CLASS]) 30 | [!if WTL_USE_VIEW] 31 | MESSAGE_HANDLER(WM_CREATE, OnCreate) 32 | [!endif] 33 | MESSAGE_HANDLER(WM_FORWARDMSG, OnForwardMsg) 34 | CHAIN_MSG_MAP([!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>) 35 | END_MSG_MAP() 36 | 37 | // Handler prototypes (uncomment arguments if needed): 38 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 39 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 40 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 41 | 42 | [!if WTL_USE_VIEW] 43 | [!if WTL_USE_CPP_FILES] 44 | LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled); 45 | [!else] 46 | LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) 47 | { 48 | [!if WTL_VIEWTYPE_FORM] 49 | m_hWndClient = m_view.Create(m_hWnd); 50 | [!else] 51 | [!if WTL_VIEWTYPE_HTML] 52 | //TODO: Replace with a URL of your choice 53 | m_hWndClient = m_view.Create(m_hWnd, rcDefault, _T("http://www.microsoft.com"), [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]); 54 | [!else] 55 | m_hWndClient = m_view.Create(m_hWnd, rcDefault, NULL, [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]); 56 | [!if WTL_VIEWTYPE_LISTBOX || WTL_VIEWTYPE_EDIT || WTL_VIEWTYPE_RICHEDIT] 57 | m_font = [!output WTL_NS]AtlCreateControlFont(); 58 | m_view.SetFont(m_font); 59 | [!endif] 60 | [!if WTL_VIEWTYPE_SCROLL] 61 | // replace with appropriate values for the app 62 | m_view.SetScrollSize(2000, 1000); 63 | [!endif] 64 | [!endif] 65 | [!endif] 66 | 67 | bHandled = FALSE; 68 | return 1; 69 | } 70 | 71 | [!endif] 72 | [!endif] 73 | [!if WTL_USE_CPP_FILES] 74 | LRESULT OnForwardMsg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/); 75 | [!else] 76 | LRESULT OnForwardMsg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/) 77 | { 78 | LPMSG pMsg = (LPMSG)lParam; 79 | 80 | [!if WTL_USE_VIEW] 81 | if([!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg)) 82 | return TRUE; 83 | 84 | return m_view.PreTranslateMessage(pMsg); 85 | [!else] 86 | return [!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg); 87 | [!endif] 88 | } 89 | [!endif] 90 | }; 91 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/Ribbon.h: -------------------------------------------------------------------------------- 1 | // ***************************************************************************** 2 | // * This is an automatically generated header file for UI Element definition * 3 | // * resource symbols and values. Please do not modify manually. * 4 | // ***************************************************************************** 5 | 6 | #pragma once 7 | 8 | #define ID_FILE_NEW 0xE100 9 | #define ID_FILE_OPEN 0xE101 10 | #define ID_FILE_CLOSE 0xE102 11 | #define ID_FILE_SAVE 0xE103 12 | #define ID_FILE_SAVE_AS 0xE104 13 | #define ID_FILE_PAGE_SETUP 0xE105 14 | #define ID_FILE_PRINT_SETUP 0xE106 15 | #define ID_FILE_PRINT 0xE107 16 | #define ID_FILE_PRINT_DIRECT 0xE108 17 | #define ID_FILE_PRINT_PREVIEW 0xE109 18 | #define ID_EDIT_COPY 0xE122 19 | #define ID_EDIT_CUT 0xE123 20 | #define ID_EDIT_FIND 0xE124 21 | #define ID_EDIT_PASTE 0xE125 22 | #define ID_EDIT_SELECT_ALL 0xE12A 23 | #define ID_EDIT_UNDO 0xE12B 24 | #define ID_EDIT_REDO 0xE12C 25 | #define ID_VIEW_TOOLBAR 0xE800 26 | #define ID_VIEW_STATUS_BAR 0xE801 27 | #define ID_VIEW_RIBBON 0xE804 28 | #define ID_APP_ABOUT 0xE140 29 | #define ID_APP_EXIT 0xE141 30 | #define ID_TAB_HOME 2 31 | #define ID_TAB_HOME_LabelTitle_RESID 60001 32 | #define ID_GROUP_CLIPBOARD 3 33 | #define ID_GROUP_CLIPBOARD_LabelTitle_RESID 60002 34 | #define ID_GROUP_VIEW 4 35 | #define ID_GROUP_VIEW_LabelTitle_RESID 60003 36 | #define ID_RIBBON_APP_MENU 5 37 | #define ID_SAVEMORE 6 38 | #define ID_PRINTMORE 7 39 | #define ID_RIBBON_QAT 8 40 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/Templates.inf: -------------------------------------------------------------------------------- 1 | stdafx.cpp 2 | stdafx.h 3 | root.cpp 4 | root.h 5 | root.rc 6 | 7 | [!if !WTL_APPTYPE_DLG] 8 | frame.h 9 | [!if WTL_USE_CPP_FILES] 10 | frame.cpp 11 | [!endif] 12 | toolbar.bmp 13 | [!endif] 14 | 15 | [!if WTL_APPTYPE_DLG] 16 | MainDlg.h 17 | [!if WTL_USE_CPP_FILES] 18 | MainDlg.cpp 19 | [!endif] 20 | [!endif] 21 | 22 | root.ico 23 | 24 | [!if WTL_APPTYPE_MDI] 25 | rootDoc.ico 26 | ChildFrm.h 27 | [!if WTL_USE_CPP_FILES] 28 | ChildFrm.cpp 29 | [!endif] 30 | [!endif] 31 | 32 | [!if WTL_USE_VIEW] 33 | view.h 34 | [!if WTL_USE_CPP_FILES] 35 | view.cpp 36 | [!endif] 37 | [!endif] 38 | 39 | [!if !WTL_APPTYPE_DLG_MODAL] 40 | AboutDlg.h 41 | [!if WTL_USE_CPP_FILES] 42 | AboutDlg.cpp 43 | [!endif] 44 | [!endif] 45 | 46 | resource.h 47 | 48 | [!if WTL_USE_RIBBON] 49 | Ribbon.xml 50 | Ribbon.h 51 | [!endif] 52 | 53 | [!if WTL_COM_SERVER] 54 | root.idl 55 | root.rgs 56 | rootps.mk 57 | rootps.def 58 | [!endif] 59 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/View.cpp: -------------------------------------------------------------------------------- 1 | // [!output WTL_VIEW_FILE].cpp : implementation of the [!output WTL_VIEW_CLASS] class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #include "stdafx.h" 6 | [!if WTL_USE_RIBBON] 7 | #include "Ribbon.h" 8 | [!endif] 9 | #include "resource.h" 10 | 11 | #include "[!output WTL_VIEW_FILE].h" 12 | 13 | BOOL [!output WTL_VIEW_CLASS]::PreTranslateMessage(MSG* pMsg) 14 | { 15 | [!if WTL_HOST_AX] 16 | if((pMsg->message < WM_KEYFIRST || pMsg->message > WM_KEYLAST) && 17 | (pMsg->message < WM_MOUSEFIRST || pMsg->message > WM_MOUSELAST)) 18 | return FALSE; 19 | 20 | HWND hWndCtl = ::GetFocus(); 21 | if(IsChild(hWndCtl)) 22 | { 23 | // find a direct child of the dialog from the window that has focus 24 | while(::GetParent(hWndCtl) != m_hWnd) 25 | hWndCtl = ::GetParent(hWndCtl); 26 | 27 | // give control a chance to translate this message 28 | if(::SendMessage(hWndCtl, WM_FORWARDMSG, 0, (LPARAM)pMsg) != 0) 29 | return TRUE; 30 | } 31 | 32 | [!endif] 33 | [!if WTL_VIEWTYPE_HTML] 34 | if((pMsg->message < WM_KEYFIRST || pMsg->message > WM_KEYLAST) && 35 | (pMsg->message < WM_MOUSEFIRST || pMsg->message > WM_MOUSELAST)) 36 | return FALSE; 37 | 38 | // give HTML page a chance to translate this message 39 | return (BOOL)SendMessage(WM_FORWARDMSG, 0, (LPARAM)pMsg); 40 | [!else] 41 | [!if WTL_VIEWTYPE_FORM] 42 | return [!output ATL_NS]CWindow::IsDialogMessage(pMsg); 43 | [!else] 44 | pMsg; 45 | return FALSE; 46 | [!endif] 47 | [!endif] 48 | } 49 | [!if WTL_VIEWTYPE_SCROLL] 50 | 51 | void [!output WTL_VIEW_CLASS]::DoPaint([!output WTL_NS]CDCHandle dc) 52 | { 53 | //TODO: Add your drawing code here 54 | } 55 | [!endif] 56 | [!if WTL_APPTYPE_TABVIEW] 57 | 58 | void [!output WTL_VIEW_CLASS]::OnFinalMessage(HWND /*hWnd*/) 59 | { 60 | delete this; 61 | } 62 | [!endif] 63 | [!if WTL_VIEWTYPE_GENERIC] 64 | 65 | LRESULT [!output WTL_VIEW_CLASS]::OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 66 | { 67 | [!output WTL_NS]CPaintDC dc(m_hWnd); 68 | 69 | //TODO: Add your drawing code here 70 | 71 | return 0; 72 | } 73 | [!endif] 74 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by [!output PROJECT_NAME].RC 4 | // 5 | 6 | [!if WTL_COM_SERVER] 7 | #define IDS_PROJNAME 100 8 | #define IDR_[!output UPPERCASE_SAFE_PROJECT_NAME] 100 9 | [!endif] 10 | 11 | #define IDD_ABOUTBOX 100 12 | #define IDR_MAINFRAME 128 13 | //#define IDR_[!output UPPERCASE_SAFE_PROJECT_NAME]TYPE 129 14 | [!if WTL_APPTYPE_MDI] 15 | #define IDR_MDICHILD 129 16 | [!if WTL_USE_VIEW] 17 | [!if WTL_VIEWTYPE_FORM] 18 | #define IDD_[!output UPPERCASE_SAFE_PROJECT_NAME]_FORM 130 19 | [!endif] 20 | [!endif] 21 | [!else] 22 | [!if WTL_APPTYPE_SDI || WTL_APPTYPE_TABVIEW || WTL_APPTYPE_EXPLORER] 23 | [!if WTL_USE_VIEW] 24 | [!if WTL_VIEWTYPE_FORM] 25 | #define IDD_[!output UPPERCASE_SAFE_PROJECT_NAME]_FORM 129 26 | [!endif] 27 | [!endif] 28 | [!else] 29 | [!if WTL_APPTYPE_DLG] 30 | #define IDD_MAINDLG 129 31 | [!endif] 32 | [!endif] 33 | [!endif] 34 | [!if WTL_APPTYPE_MTSDI] 35 | [!if WTL_USE_VIEW] 36 | [!if WTL_VIEWTYPE_FORM] 37 | #define IDD_[!output UPPERCASE_SAFE_PROJECT_NAME]_FORM 130 38 | [!endif] 39 | [!endif] 40 | #define ID_FILE_NEW_WINDOW 32771 41 | [!endif] 42 | [!if WTL_APPTYPE_TABVIEW] 43 | #define ID_WINDOW_CLOSE 32772 44 | #define ID_WINDOW_CLOSE_ALL 32773 45 | [!endif] 46 | [!if WTL_APPTYPE_EXPLORER] 47 | #define ID_VIEW_TREEPANE 32774 48 | [!endif] 49 | 50 | // Next default values for new objects 51 | // 52 | #ifdef APSTUDIO_INVOKED 53 | #ifndef APSTUDIO_READONLY_SYMBOLS 54 | #define _APS_NEXT_RESOURCE_VALUE 201 55 | #define _APS_NEXT_CONTROL_VALUE 1000 56 | #define _APS_NEXT_SYMED_VALUE 101 57 | #define _APS_NEXT_COMMAND_VALUE 32775 58 | #endif 59 | #endif 60 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/root.h: -------------------------------------------------------------------------------- 1 | // [!output PROJECT_NAME].h 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/root.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/AppWizard/Files/Templates/1033/root.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/root.idl: -------------------------------------------------------------------------------- 1 | // [!output PROJECT_NAME].idl : IDL source for [!output PROJECT_NAME].exe 2 | // 3 | 4 | // This file will be processed by the MIDL tool to 5 | // produce the type library ([!output PROJECT_NAME].tlb) and marshalling code. 6 | 7 | import "oaidl.idl"; 8 | import "ocidl.idl"; 9 | 10 | [ 11 | uuid([!output WTL_LIBID]), 12 | version(1.0), 13 | helpstring("[!output PROJECT_NAME] 1.0 Type Library") 14 | ] 15 | library [!output SAFE_PROJECT_NAME]Lib 16 | { 17 | importlib("stdole32.tlb"); 18 | importlib("stdole2.tlb"); 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/root.rgs: -------------------------------------------------------------------------------- 1 | HKCR 2 | { 3 | NoRemove AppID 4 | { 5 | {[!output WTL_APPID]} = s '[!output PROJECT_NAME]' 6 | '[!output PROJECT_NAME].EXE' 7 | { 8 | val AppID = s {[!output WTL_APPID]} 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/rootDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/AppWizard/Files/Templates/1033/rootDoc.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/rootidl.h: -------------------------------------------------------------------------------- 1 | // [!output PROJECT_NAME].idl : IDL source for [!output PROJECT_NAME].exe 2 | // 3 | 4 | // Add interface and coclass declarations in this file 5 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/rootps.def: -------------------------------------------------------------------------------- 1 | 2 | LIBRARY "[!output PROJECT_NAME]PS" 3 | 4 | DESCRIPTION 'Proxy/Stub DLL' 5 | 6 | EXPORTS 7 | DllGetClassObject @1 PRIVATE 8 | DllCanUnloadNow @2 PRIVATE 9 | GetProxyDllInfo @3 PRIVATE 10 | DllRegisterServer @4 PRIVATE 11 | DllUnregisterServer @5 PRIVATE 12 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/rootps.mk: -------------------------------------------------------------------------------- 1 | 2 | [!output PROJECT_NAME]ps.dll: dlldata.obj [!output PROJECT_NAME]_p.obj [!output PROJECT_NAME]_i.obj 3 | link /dll /out:[!output PROJECT_NAME]ps.dll /def:[!output PROJECT_NAME]ps.def /entry:DllMain dlldata.obj [!output PROJECT_NAME]_p.obj [!output PROJECT_NAME]_i.obj \ 4 | kernel32.lib rpcndr.lib rpcns4.lib rpcrt4.lib oleaut32.lib uuid.lib \ 5 | 6 | .c.obj: 7 | cl /c /Ox /DWIN32 /D_WIN32_WINNT=0x0400 /DREGISTER_PROXY_DLL \ 8 | $< 9 | 10 | clean: 11 | @del [!output PROJECT_NAME]ps.dll 12 | @del [!output PROJECT_NAME]ps.lib 13 | @del [!output PROJECT_NAME]ps.exp 14 | @del dlldata.obj 15 | @del [!output PROJECT_NAME]_p.obj 16 | @del [!output PROJECT_NAME]_i.obj 17 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // [!output PROJECT_NAME].pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | [!if WTL_COM_SERVER] 7 | 8 | #ifdef _ATL_STATIC_REGISTRY 9 | #include 10 | #endif //_ATL_STATIC_REGISTRY 11 | [!endif] 12 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | // Change these values to use different versions 9 | [!if WTL_SUPPORT_WINXP] 10 | #define WINVER 0x0501 11 | #define _WIN32_WINNT 0x0501 12 | #define _WIN32_IE 0x0600 13 | #define _RICHEDIT_VER 0x0300 14 | [!else] 15 | #define WINVER 0x0601 16 | #define _WIN32_WINNT 0x0601 17 | #define _WIN32_IE 0x0700 18 | #define _RICHEDIT_VER 0x0500 19 | [!endif] 20 | 21 | [!if WTL_COM_SERVER] 22 | #define _ATL_APARTMENT_THREADED 23 | 24 | [!endif] 25 | [!if WTL_NO_AUTO_NS] 26 | #define _ATL_NO_AUTOMATIC_NAMESPACE 27 | #define _WTL_NO_AUTOMATIC_NAMESPACE 28 | 29 | [!endif] 30 | #include 31 | #include 32 | 33 | [!if WTL_COM_SERVER] 34 | extern [!output WTL_NS]CServerAppModule _Module; 35 | 36 | [!else] 37 | extern [!output WTL_NS]CAppModule _Module; 38 | 39 | [!endif] 40 | [!if WTL_ENABLE_AX || WTL_COM_SERVER] 41 | #include 42 | [!endif] 43 | [!if WTL_ENABLE_AX] 44 | #include 45 | [!endif] 46 | #include 47 | [!if WTL_ENABLE_AX] 48 | #include 49 | [!endif] 50 | [!if WTL_USE_CPP_FILES] 51 | 52 | #include 53 | #include 54 | #include 55 | [!if WTL_USE_CMDBAR] 56 | #include 57 | [!endif] 58 | [!if WTL_APPTYPE_TABVIEW] 59 | #include 60 | [!endif] 61 | [!if WTL_APPTYPE_EXPLORER] 62 | #include 63 | #include 64 | [!endif] 65 | [!if WTL_USE_VIEW] 66 | [!if WTL_VIEWTYPE_SCROLL] 67 | #include 68 | [!endif] 69 | [!endif] 70 | [!if WTL_USE_RIBBON] 71 | #include 72 | [!endif] 73 | [!endif] 74 | 75 | #if defined _M_IX86 76 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 77 | #elif defined _M_IA64 78 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 79 | #elif defined _M_X64 80 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 81 | #else 82 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 83 | #endif 84 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/Templates/1033/toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/AppWizard/Files/Templates/1033/toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/WTL10AppWiz.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/AppWizard/Files/WTL10AppWiz.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/WTL10AppWiz.vsdir: -------------------------------------------------------------------------------- 1 | WTL10AppWiz.vsz| |WTL10 Application Wizard|1|An application that uses the Windows Template Library.| |6777|4096|#1154 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/AppWizard/Files/WTL10AppWiz.vsz: -------------------------------------------------------------------------------- 1 | VSWIZARD 7.0 2 | Wizard=VsWizard.VsWizardEngine 3 | 4 | Param="WIZARD_NAME = WTLAppWiz" 5 | Param="WIZARD_VERSION = 7.0" 6 | Param="ABSOLUTE_PATH = ." 7 | Param="FALLBACK_LCID = 1033" 8 | -------------------------------------------------------------------------------- /WTL10_10320_Release/MS-PL.txt: -------------------------------------------------------------------------------- 1 | Microsoft Public License (MS-PL) 2 | 3 | This license governs use of the accompanying software. If you use the software, you 4 | accept this license. If you do not accept the license, do not use the software. 5 | 6 | 1. Definitions 7 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the 8 | same meaning here as under U.S. copyright law. 9 | A "contribution" is the original software, or any additions or changes to the software. 10 | A "contributor" is any person that distributes its contribution under this license. 11 | "Licensed patents" are a contributor's patent claims that read directly on its contribution. 12 | 13 | 2. Grant of Rights 14 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 15 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 16 | 17 | 3. Conditions and Limitations 18 | (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 19 | (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. 20 | (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. 21 | (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 22 | (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. 23 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/AboutDlg.h: -------------------------------------------------------------------------------- 1 | // aboutdlg.h : interface of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CAboutDlg : public CAeroDialogImpl 8 | { 9 | public: 10 | enum { IDD = IDD_ABOUTBOX }; 11 | 12 | CAeroStatic m_Icon, m_Text; 13 | CAeroButton m_OK; 14 | 15 | BEGIN_MSG_MAP(CAboutDlg) 16 | CHAIN_MSG_MAP(CAeroDialogImpl) 17 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 18 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 19 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 20 | END_MSG_MAP() 21 | 22 | // Handler prototypes (uncomment arguments if needed): 23 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 24 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 25 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 26 | 27 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 28 | { 29 | CenterWindow(GetParent()); 30 | 31 | //MARGINS m = {7, 7, 7, 7}; 32 | MARGINS m = {-1}; 33 | SetMargins(m); 34 | 35 | m_Icon.SubclassWindow(GetDlgItem(IDC_APPICON)); 36 | m_Text.SubclassWindow(GetDlgItem(IDC_TEXT)); 37 | m_OK.SubclassWindow(GetDlgItem(IDOK)); 38 | 39 | return TRUE; 40 | } 41 | 42 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 43 | { 44 | EndDialog(wID); 45 | return 0; 46 | } 47 | }; 48 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/Aero.cpp: -------------------------------------------------------------------------------- 1 | // Aero.cpp : main source file for Aero.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | #include "resource.h" 13 | 14 | #include "Aero.h" 15 | #include "AeroView.h" 16 | #include "aboutdlg.h" 17 | #include "MainFrm.h" 18 | 19 | CAppModule _Module; 20 | 21 | int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT) 22 | { 23 | CMessageLoop theLoop; 24 | _Module.AddMessageLoop(&theLoop); 25 | 26 | CMainFrame wndMain; 27 | 28 | if(wndMain.CreateEx() == NULL) 29 | { 30 | ATLTRACE(_T("Main window creation failed!\n")); 31 | return 0; 32 | } 33 | 34 | wndMain.ShowWindow(nCmdShow); 35 | 36 | int nRet = theLoop.Run(); 37 | 38 | _Module.RemoveMessageLoop(); 39 | return nRet; 40 | } 41 | 42 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow) 43 | { 44 | HRESULT hRes = ::CoInitialize(NULL); 45 | // If you are running on NT 4.0 or higher you can use the following call instead to 46 | // make the EXE free threaded. This means that calls come in on a random RPC thread. 47 | // HRESULT hRes = ::CoInitializeEx(NULL, COINIT_MULTITHREADED); 48 | ATLASSERT(SUCCEEDED(hRes)); 49 | 50 | // this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used 51 | ::DefWindowProc(NULL, 0, 0, 0L); 52 | 53 | AtlInitCommonControls(ICC_COOL_CLASSES | ICC_BAR_CLASSES); // add flags to support other controls 54 | 55 | hRes = _Module.Init(NULL, hInstance); 56 | ATLASSERT(SUCCEEDED(hRes)); 57 | 58 | int nRet = Run(lpstrCmdLine, nCmdShow); 59 | 60 | _Module.Term(); 61 | ::CoUninitialize(); 62 | 63 | return nRet; 64 | } 65 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/AeroView.h: -------------------------------------------------------------------------------- 1 | // AeroView.h : interface of the CAeroView class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CAeroView : public CWindowImpl 8 | { 9 | public: 10 | DECLARE_WND_CLASS(NULL) 11 | 12 | BOOL PreTranslateMessage(MSG* pMsg) 13 | { 14 | pMsg; 15 | return FALSE; 16 | } 17 | 18 | BEGIN_MSG_MAP(CAeroView) 19 | MESSAGE_HANDLER(WM_PAINT, OnPaint) 20 | END_MSG_MAP() 21 | 22 | // Handler prototypes (uncomment arguments if needed): 23 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 24 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 25 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 26 | 27 | LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 28 | { 29 | CPaintDC dc(m_hWnd); 30 | 31 | //TODO: Add your drawing code here 32 | 33 | return 0; 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/Aero_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Aero", "Aero_2005.vcproj", "{E61F1A7E-8066-48F0-85DD-355EF3ABB02E}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Debug|Win32.Build.0 = Debug|Win32 13 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Release|Win32.ActiveCfg = Release|Win32 14 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/Aero_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Aero", "Aero_2010.vcxproj", "{E61F1A7E-8066-48F0-85DD-355EF3ABB02E}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Debug|Win32.Build.0 = Debug|Win32 13 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Release|Win32.ActiveCfg = Release|Win32 14 | {E61F1A7E-8066-48F0-85DD-355EF3ABB02E}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/Aero_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {ce6064c1-4074-4559-8357-df41dcebde32} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {dca827d3-6a73-446c-839b-0829b790ef62} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {91ec04ce-eaf1-4483-8c34-578d7eec0983} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | Header Files 31 | 32 | 33 | Header Files 34 | 35 | 36 | Header Files 37 | 38 | 39 | Header Files 40 | 41 | 42 | Header Files 43 | 44 | 45 | 46 | 47 | Resource Files 48 | 49 | 50 | Resource Files 51 | 52 | 53 | 54 | 55 | Resource Files 56 | 57 | 58 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/res/Aero.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Aero/res/Aero.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/res/toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Aero/res/toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Aero.rc 4 | // 5 | #define IDD_ABOUTBOX 100 6 | #define IDR_MAINFRAME 128 7 | #define IDC_APPICON 1000 8 | #define IDC_TEXT 1001 9 | 10 | // Next default values for new objects 11 | // 12 | #ifdef APSTUDIO_INVOKED 13 | #ifndef APSTUDIO_READONLY_SYMBOLS 14 | #define _APS_NEXT_RESOURCE_VALUE 201 15 | #define _APS_NEXT_COMMAND_VALUE 32775 16 | #define _APS_NEXT_CONTROL_VALUE 1002 17 | #define _APS_NEXT_SYMED_VALUE 101 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // Aero.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Aero/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | // Change these values to use different versions 9 | #define WINVER 0x0600 10 | #define _WIN32_WINNT 0x0600 11 | #define _WIN32_IE 0x0700 12 | #define _RICHEDIT_VER 0x0300 13 | 14 | #include 15 | #include 16 | 17 | extern CAppModule _Module; 18 | 19 | #include 20 | 21 | #if defined _M_IX86 22 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 23 | #elif defined _M_IA64 24 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 25 | #elif defined _M_X64 26 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 27 | #else 28 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 29 | #endif 30 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/Alpha.cpp: -------------------------------------------------------------------------------- 1 | // Alpha.cpp : main source file for Alpha.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | #include "resource.h" 13 | 14 | #include "View.h" 15 | #include "aboutdlg.h" 16 | #include "MainFrm.h" 17 | 18 | CAppModule _Module; 19 | 20 | int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT) 21 | { 22 | CMessageLoop theLoop; 23 | _Module.AddMessageLoop(&theLoop); 24 | 25 | CMainFrame wndMain; 26 | 27 | if(wndMain.CreateEx() == NULL) 28 | { 29 | ATLTRACE(_T("Main window creation failed!\n")); 30 | return 0; 31 | } 32 | 33 | wndMain.ShowWindow(nCmdShow); 34 | 35 | int nRet = theLoop.Run(); 36 | 37 | _Module.RemoveMessageLoop(); 38 | return nRet; 39 | } 40 | 41 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow) 42 | { 43 | HRESULT hRes = ::CoInitialize(NULL); 44 | ATLASSERT(SUCCEEDED(hRes)); 45 | 46 | AtlInitCommonControls(ICC_COOL_CLASSES | ICC_BAR_CLASSES); 47 | 48 | hRes = _Module.Init(NULL, hInstance); 49 | ATLASSERT(SUCCEEDED(hRes)); 50 | 51 | int nRet = Run(lpstrCmdLine, nCmdShow); 52 | 53 | _Module.Term(); 54 | ::CoUninitialize(); 55 | 56 | return nRet; 57 | } 58 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/Alpha.h: -------------------------------------------------------------------------------- 1 | // Alpha.h 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/Alpha_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Alpha", "Alpha_2005.vcproj", "{4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Debug|Win32.Build.0 = Debug|Win32 13 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Release|Win32.ActiveCfg = Release|Win32 14 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/Alpha_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Alpha", "Alpha_2010.vcxproj", "{4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Debug|Win32.Build.0 = Debug|Win32 13 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Release|Win32.ActiveCfg = Release|Win32 14 | {4BC88F4D-B861-4CA9-BF71-AAE788D3FC31}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/Alpha_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {fed94f85-a81d-4153-8fc1-64e070cc8e88} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | {70bfd066-e212-4241-ac28-c4aa649f6b10} 10 | h;hpp;hxx;hm;inl 11 | 12 | 13 | {f9aa8008-bac5-43e2-bdbb-83c348d42309} 14 | ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Source Files 28 | 29 | 30 | 31 | 32 | Header Files 33 | 34 | 35 | Header Files 36 | 37 | 38 | Header Files 39 | 40 | 41 | Header Files 42 | 43 | 44 | Header Files 45 | 46 | 47 | 48 | 49 | Resource Files 50 | 51 | 52 | Resource Files 53 | 54 | 55 | Resource Files 56 | 57 | 58 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/aboutdlg.h: -------------------------------------------------------------------------------- 1 | // aboutdlg.h : interface of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CAboutDlg : public CDialogImpl 8 | { 9 | public: 10 | enum { IDD = IDD_ABOUTBOX }; 11 | 12 | BEGIN_MSG_MAP(CAboutDlg) 13 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 14 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 15 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 16 | END_MSG_MAP() 17 | 18 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 19 | { 20 | CenterWindow(GetParent()); 21 | return TRUE; 22 | } 23 | 24 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 25 | { 26 | EndDialog(wID); 27 | return 0; 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/readme.txt: -------------------------------------------------------------------------------- 1 | Alpha WTL Sample 2 | ---------------- 3 | 4 | This sample shows how to use 32-bit (alpha channel) images with toolbars and 5 | command bars. It also displays them only if running on Windows XP with themes 6 | enabled, while it displays standard 4-bit images in other cases. 7 | 8 | Cut and Copy commands toggle enable/disable state for the Paste command, just 9 | to show how images look disabled. 10 | 11 | Subdirectories Release and Debug contain the manifest file, alpha.exe.manifest 12 | which is required to use 32-bit (alpha) images. If you use Windows XP with 13 | themes, you can rename or delete the manifest file to disable alpha images. 14 | 15 | -end- 16 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/res/Alpha.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Alpha/res/Alpha.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/res/toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Alpha/res/toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/res/toolbar_old.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Alpha/res/toolbar_old.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Alpha.rc 4 | // 5 | #define IDD_ABOUTBOX 100 6 | #define IDR_MAINFRAME 128 7 | #define IDR_MAINFRAME_OLD 129 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 201 14 | #define _APS_NEXT_COMMAND_VALUE 32772 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 102 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // Alpha.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__D895E823_4E73_4C58_95DF_B988F909018A__INCLUDED_) 7 | #define AFX_STDAFX_H__D895E823_4E73_4C58_95DF_B988F909018A__INCLUDED_ 8 | 9 | // Change these values to use different versions 10 | #define WINVER 0x0501 11 | #define _WIN32_WINNT 0x0501 12 | #define _WIN32_IE 0x0600 13 | #define _RICHEDIT_VER 0x0300 14 | 15 | 16 | #include 17 | #include 18 | 19 | extern CAppModule _Module; 20 | 21 | #include 22 | #include 23 | 24 | //{{AFX_INSERT_LOCATION}} 25 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 26 | 27 | #if defined _M_IX86 28 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 29 | #elif defined _M_IA64 30 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 31 | #elif defined _M_X64 32 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 33 | #else 34 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 35 | #endif 36 | 37 | #endif // !defined(AFX_STDAFX_H__D895E823_4E73_4C58_95DF_B988F909018A__INCLUDED_) 38 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Alpha/view.h: -------------------------------------------------------------------------------- 1 | // View.h : interface of the CView class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CView : public CWindowImpl 8 | { 9 | public: 10 | DECLARE_WND_CLASS(NULL) 11 | 12 | DWORD m_dwCommCtrlMajor; 13 | DWORD m_dwCommCtrlMinor; 14 | bool m_bAlpha; 15 | 16 | CView() : 17 | m_dwCommCtrlMajor(0), 18 | m_dwCommCtrlMinor(0), 19 | m_bAlpha(false) 20 | { } 21 | 22 | BOOL PreTranslateMessage(MSG* pMsg) 23 | { 24 | pMsg; 25 | return FALSE; 26 | } 27 | 28 | BEGIN_MSG_MAP(CView) 29 | MESSAGE_HANDLER(WM_PAINT, OnPaint) 30 | END_MSG_MAP() 31 | 32 | LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 33 | { 34 | CPaintDC dc(m_hWnd); 35 | 36 | CString strText; 37 | strText.Format(_T("Common Controls version %u.%2.2u"), m_dwCommCtrlMajor, m_dwCommCtrlMinor); 38 | dc.TextOut(10, 20, strText); 39 | 40 | dc.TextOut(10, 40, m_bAlpha ? _T("Using 32-bit (alpha channel) images") : _T("Using standard 4-bit images")); 41 | 42 | return 0; 43 | } 44 | }; 45 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/BmpView.cpp: -------------------------------------------------------------------------------- 1 | // BmpView.cpp : main source file for BmpView.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | #include "resource.h" 16 | 17 | #include "View.h" 18 | #include "props.h" 19 | #include "list.h" 20 | #include "MainFrm.h" 21 | 22 | CAppModule _Module; 23 | 24 | 25 | int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT) 26 | { 27 | CMessageLoop theLoop; 28 | _Module.AddMessageLoop(&theLoop); 29 | 30 | CMainFrame wndMain; 31 | 32 | if(wndMain.CreateEx() == NULL) 33 | { 34 | ATLTRACE(_T("Main window creation failed!\n")); 35 | return 0; 36 | } 37 | 38 | wndMain.ShowWindow(nCmdShow); 39 | 40 | int nRet = theLoop.Run(); 41 | 42 | _Module.RemoveMessageLoop(); 43 | return nRet; 44 | } 45 | 46 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow) 47 | { 48 | INITCOMMONCONTROLSEX iccx; 49 | iccx.dwSize = sizeof(iccx); 50 | iccx.dwICC = ICC_COOL_CLASSES | ICC_BAR_CLASSES; 51 | BOOL bRet = ::InitCommonControlsEx(&iccx); 52 | bRet; 53 | ATLASSERT(bRet); 54 | 55 | HRESULT hRes = _Module.Init(NULL, hInstance); 56 | hRes; 57 | ATLASSERT(SUCCEEDED(hRes)); 58 | 59 | int nRet = Run(lpstrCmdLine, nCmdShow); 60 | 61 | _Module.Term(); 62 | return nRet; 63 | } 64 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/BmpView_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BmpView", "BmpView_2005.vcproj", "{F5F40F56-82B6-41F7-B5ED-51E95B65A288}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Debug|Win32.Build.0 = Debug|Win32 13 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Release|Win32.ActiveCfg = Release|Win32 14 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/BmpView_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BmpView", "BmpView_2010.vcxproj", "{F5F40F56-82B6-41F7-B5ED-51E95B65A288}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Debug|Win32.Build.0 = Debug|Win32 13 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Release|Win32.ActiveCfg = Release|Win32 14 | {F5F40F56-82B6-41F7-B5ED-51E95B65A288}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/BmpView_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {a3e3c1fd-aafd-44bd-a86e-c69dac05f19e} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | {238c2637-6fe0-4201-9988-feeff8ab7c00} 10 | h;hpp;hxx;hm;inl 11 | 12 | 13 | {190566ad-1044-416f-b994-2b22be30210c} 14 | ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Source Files 28 | 29 | 30 | 31 | 32 | Header Files 33 | 34 | 35 | Header Files 36 | 37 | 38 | Header Files 39 | 40 | 41 | Header Files 42 | 43 | 44 | Header Files 45 | 46 | 47 | Header Files 48 | 49 | 50 | 51 | 52 | Resource Files 53 | 54 | 55 | Resource Files 56 | 57 | 58 | 59 | 60 | Resource Files 61 | 62 | 63 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/list.h: -------------------------------------------------------------------------------- 1 | // list.h : interface of the CMruList class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #ifndef __LIST_H__ 6 | #define __LIST_H__ 7 | 8 | #pragma once 9 | 10 | 11 | class CMruList : public CWindowImpl 12 | { 13 | public: 14 | SIZE m_size; 15 | 16 | 17 | CMruList() 18 | { 19 | m_size.cx = 200; 20 | m_size.cy = 150; 21 | } 22 | 23 | HWND Create(HWND hWndParent) 24 | { 25 | CWindowImpl::Create(hWndParent, rcDefault, NULL, 26 | WS_POPUP | WS_THICKFRAME | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_VSCROLL | LBS_NOINTEGRALHEIGHT, 27 | WS_EX_CLIENTEDGE); 28 | if(IsWindow()) 29 | SetFont(AtlGetStockFont(DEFAULT_GUI_FONT)); 30 | return m_hWnd; 31 | } 32 | 33 | BOOL BuildList(CRecentDocumentList& mru) 34 | { 35 | ATLASSERT(IsWindow()); 36 | 37 | ResetContent(); 38 | 39 | int nSize = mru.m_arrDocs.GetSize(); 40 | for(int i = 0; i < nSize; i++) 41 | InsertString(0, mru.m_arrDocs[i].szDocName); // docs are in reversed order in the array 42 | 43 | if(nSize > 0) 44 | { 45 | SetCurSel(0); 46 | SetTopIndex(0); 47 | } 48 | 49 | return TRUE; 50 | } 51 | 52 | BOOL ShowList(int x, int y) 53 | { 54 | return SetWindowPos(NULL, x, y, m_size.cx, m_size.cy, SWP_NOZORDER | SWP_SHOWWINDOW); 55 | } 56 | 57 | void HideList() 58 | { 59 | RECT rect; 60 | GetWindowRect(&rect); 61 | m_size.cx = rect.right - rect.left; 62 | m_size.cy = rect.bottom - rect.top; 63 | ShowWindow(SW_HIDE); 64 | } 65 | 66 | void FireCommand() 67 | { 68 | int nSel = GetCurSel(); 69 | if(nSel != LB_ERR) 70 | { 71 | ::SetFocus(GetParent()); // will hide this window 72 | ::SendMessage(GetParent(), WM_COMMAND, MAKEWPARAM((WORD)(ID_FILE_MRU_FIRST + nSel), LBN_DBLCLK), (LPARAM)m_hWnd); 73 | } 74 | } 75 | 76 | BEGIN_MSG_MAP(CMruList) 77 | MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown) 78 | MESSAGE_HANDLER(WM_LBUTTONDBLCLK, OnLButtonDblClk) 79 | MESSAGE_HANDLER(WM_KILLFOCUS, OnKillFocus) 80 | MESSAGE_HANDLER(WM_NCHITTEST, OnNcHitTest) 81 | END_MSG_MAP() 82 | 83 | LRESULT OnKeyDown(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled) 84 | { 85 | if(wParam == VK_RETURN) 86 | FireCommand(); 87 | else 88 | bHandled = FALSE; 89 | return 0; 90 | } 91 | 92 | LRESULT OnLButtonDblClk(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 93 | { 94 | FireCommand(); 95 | return 0; 96 | } 97 | 98 | LRESULT OnKillFocus(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 99 | { 100 | HideList(); 101 | return 0; 102 | } 103 | 104 | LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& /*bHandled*/) 105 | { 106 | LRESULT lRet = DefWindowProc(uMsg, wParam, lParam); 107 | switch(lRet) 108 | { 109 | case HTLEFT: 110 | case HTTOP: 111 | case HTTOPLEFT: 112 | case HTTOPRIGHT: 113 | case HTBOTTOMLEFT: 114 | lRet = HTCLIENT; // don't allow resizing here 115 | break; 116 | default: 117 | break; 118 | } 119 | return lRet; 120 | } 121 | }; 122 | 123 | #endif // __LIST_H__ 124 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/res/BmpView.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/BmpView/res/BmpView.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/BmpView/res/Toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by BmpView.rc 4 | // 5 | #define IDD_ABOUTBOX 100 6 | #define IDR_MAINFRAME 128 7 | #define IDR_CONTEXTMENU 201 8 | #define IDD_PROP_PAGE1 202 9 | #define IDD_PROP_PAGE2 203 10 | #define IDD_PROP_PAGE3 204 11 | #define IDC_TYPE 1001 12 | #define IDC_WIDTH 1002 13 | #define IDC_HEIGHT 1003 14 | #define IDC_HORRES 1004 15 | #define IDC_VERTRES 1005 16 | #define IDC_BITDEPTH 1006 17 | #define IDC_COMPRESSION 1008 18 | #define IDC_FILELOCATION 1009 19 | #define IDC_FILESIZE 1010 20 | #define IDC_FILEDATE 1011 21 | #define IDC_FILEATTRIB 1012 22 | #define ID_RECENT_BTN 32777 23 | #define ID_VIEW_PROPERTIES 32778 24 | 25 | // Next default values for new objects 26 | // 27 | #ifdef APSTUDIO_INVOKED 28 | #ifndef APSTUDIO_READONLY_SYMBOLS 29 | #define _APS_NEXT_RESOURCE_VALUE 203 30 | #define _APS_NEXT_COMMAND_VALUE 32780 31 | #define _APS_NEXT_CONTROL_VALUE 1013 32 | #define _APS_NEXT_SYMED_VALUE 101 33 | #endif 34 | #endif 35 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // BmpView.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #ifndef __STDAFX_H__ 7 | #define __STDAFX_H__ 8 | 9 | // Change these values to use different versions 10 | #define WINVER 0x0501 11 | #define _WIN32_WINNT 0x0501 12 | #define _WIN32_IE 0x0600 13 | #define _RICHEDIT_VER 0x0300 14 | 15 | #include 16 | #include 17 | 18 | extern CAppModule _Module; 19 | 20 | #include 21 | #include 22 | #include 23 | 24 | #if defined _M_IX86 25 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 26 | #elif defined _M_IA64 27 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 28 | #elif defined _M_X64 29 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 30 | #else 31 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 32 | #endif 33 | 34 | #endif // __STDAFX_H__ 35 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/BmpView/view.h: -------------------------------------------------------------------------------- 1 | // View.h : interface of the CBitmapView class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #ifndef __VIEW_H__ 6 | #define __VIEW_H__ 7 | 8 | #pragma once 9 | 10 | 11 | class CBitmapView : public CScrollWindowImpl 12 | { 13 | public: 14 | DECLARE_WND_CLASS_EX(NULL, 0, -1) 15 | 16 | CBitmap m_bmp; 17 | SIZE m_size; 18 | 19 | 20 | CBitmapView() 21 | { 22 | m_size.cx = m_size.cy = 1; 23 | } 24 | 25 | BOOL PreTranslateMessage(MSG* pMsg) 26 | { 27 | pMsg; 28 | return FALSE; 29 | } 30 | 31 | void SetBitmap(HBITMAP hBitmap) 32 | { 33 | if(!m_bmp.IsNull()) 34 | m_bmp.DeleteObject(); 35 | 36 | m_bmp = hBitmap; 37 | 38 | if(!m_bmp.IsNull()) 39 | m_bmp.GetSize(m_size); 40 | else 41 | m_size.cx = m_size.cy = 1; 42 | 43 | SetScrollOffset(0, 0, FALSE); 44 | SetScrollSize(m_size); 45 | } 46 | 47 | BEGIN_MSG_MAP(CBitmapView) 48 | MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBackground) 49 | CHAIN_MSG_MAP(CScrollWindowImpl); 50 | END_MSG_MAP() 51 | 52 | LRESULT OnEraseBackground(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& /*bHandled*/) 53 | { 54 | RECT rect; 55 | GetClientRect(&rect); 56 | int x = 0; 57 | int y = 0; 58 | if(!m_bmp.IsNull()) 59 | { 60 | x = m_size.cx + 1; 61 | y = m_size.cy + 1; 62 | } 63 | CDCHandle dc = (HDC)wParam; 64 | if(rect.right > m_sizeAll.cx) 65 | { 66 | RECT rectRight = rect; 67 | rectRight.left = x; 68 | rectRight.bottom = y; 69 | dc.FillRect(&rectRight, COLOR_WINDOW); 70 | } 71 | if(rect.bottom > m_sizeAll.cy) 72 | { 73 | RECT rectBottom = rect; 74 | rectBottom.top = y; 75 | dc.FillRect(&rectBottom, COLOR_WINDOW); 76 | } 77 | if(!m_bmp.IsNull()) 78 | { 79 | dc.MoveTo(m_size.cx, 0); 80 | dc.LineTo(m_size.cx, m_size.cy); 81 | dc.LineTo(0, m_size.cy); 82 | } 83 | return 0; 84 | } 85 | 86 | void DoPaint(CDCHandle dc) 87 | { 88 | if(!m_bmp.IsNull()) 89 | { 90 | CDC dcMem; 91 | dcMem.CreateCompatibleDC(dc); 92 | HBITMAP hBmpOld = dcMem.SelectBitmap(m_bmp); 93 | dc.BitBlt(0, 0, m_size.cx, m_size.cy, dcMem, 0, 0, SRCCOPY); 94 | dcMem.SelectBitmap(hBmpOld); 95 | } 96 | } 97 | }; 98 | 99 | #endif // __VIEW_H__ 100 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/GuidGen.cpp: -------------------------------------------------------------------------------- 1 | // GuidGen.cpp : 2 | // 3 | 4 | #include "stdatl.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #include "resource.h" 12 | 13 | 14 | #include "aboutdlg.h" 15 | #include "maindlg.h" 16 | 17 | CAppModule _Module; 18 | 19 | 20 | int Run(LPTSTR /*lpCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT) 21 | { 22 | CMessageLoop theLoop; 23 | _Module.AddMessageLoop(&theLoop); 24 | 25 | CMainDlg dlgMain; 26 | 27 | if(dlgMain.Create(NULL) == NULL) 28 | { 29 | ATLTRACE(_T("Main dialog creation failed!\n")); 30 | return 0; 31 | } 32 | 33 | dlgMain.ShowWindow(nCmdShow); 34 | 35 | int nRet = theLoop.Run(); 36 | 37 | _Module.RemoveMessageLoop(); 38 | return nRet; 39 | } 40 | 41 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, int nCmdShow) 42 | { 43 | #if (_WIN32_IE >= 0x0300) 44 | INITCOMMONCONTROLSEX iccx; 45 | iccx.dwSize = sizeof(iccx); 46 | iccx.dwICC = ICC_BAR_CLASSES; // change to support other controls 47 | ::InitCommonControlsEx(&iccx); 48 | #else 49 | ::InitCommonControls(); 50 | #endif 51 | 52 | _Module.Init(NULL, hInstance); 53 | 54 | int nRet = Run(lpCmdLine, nCmdShow); 55 | 56 | _Module.Term(); 57 | return nRet; 58 | } 59 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/GuidGen_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GuidGen", "GuidGen_2005.vcproj", "{1A98BE97-763C-4724-9A72-8E8C96DA7A36}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Debug|Win32.Build.0 = Debug|Win32 13 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Release|Win32.ActiveCfg = Release|Win32 14 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/GuidGen_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GuidGen", "GuidGen_2010.vcxproj", "{1A98BE97-763C-4724-9A72-8E8C96DA7A36}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Debug|Win32.Build.0 = Debug|Win32 13 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Release|Win32.ActiveCfg = Release|Win32 14 | {1A98BE97-763C-4724-9A72-8E8C96DA7A36}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/GuidGen_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4bcd3a40-9831-4ce2-a5eb-fb6e704c8352} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | {1cf7e90c-070d-44b4-9138-073500e68b3c} 10 | h;hpp;hxx;hm;inl 11 | 12 | 13 | {97957850-9826-4c61-acf0-3b4b658fb920} 14 | ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Source Files 28 | 29 | 30 | 31 | 32 | Header Files 33 | 34 | 35 | Header Files 36 | 37 | 38 | Header Files 39 | 40 | 41 | Header Files 42 | 43 | 44 | 45 | 46 | Resource Files 47 | 48 | 49 | 50 | 51 | Resource Files 52 | 53 | 54 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/aboutdlg.h: -------------------------------------------------------------------------------- 1 | class CAboutDlg : public CDialogImpl 2 | { 3 | public: 4 | enum { IDD = IDD_ABOUTBOX }; 5 | 6 | BEGIN_MSG_MAP(CAboutDlg) 7 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 8 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 9 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 10 | END_MSG_MAP() 11 | 12 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 13 | { 14 | CenterWindow(GetParent()); 15 | return TRUE; 16 | } 17 | 18 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 19 | { 20 | EndDialog(wID); 21 | return 0; 22 | } 23 | }; 24 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/res/GuidGen.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/GuidGen/res/GuidGen.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by GuidGen.rc 4 | // 5 | #define IDM_ABOUTBOX 0x0010 6 | #define IDD_ABOUTBOX 100 7 | #define IDD_GUIDGEN_DIALOG 102 8 | #define IDP_ERR_INIT_OLE 102 9 | #define IDS_FORMATS 104 10 | #define IDS_STRING105 105 11 | #define IDS_STRING106 106 12 | #define IDS_STRING107 107 13 | #define IDR_MAINFRAME 128 14 | #define IDC_RADIO1 1000 15 | #define IDC_RADIO2 1001 16 | #define IDC_RADIO3 1002 17 | #define IDC_RADIO4 1003 18 | #define IDC_RESULTS 1004 19 | #define IDC_NEWGUID 1005 20 | #define IDP_ERR_CREATE_GUID 2000 21 | #define IDP_ERR_OPEN_CLIP 2001 22 | #define IDS_ABOUTBOX 2002 23 | 24 | // Next default values for new objects 25 | // 26 | #ifdef APSTUDIO_INVOKED 27 | #ifndef APSTUDIO_READONLY_SYMBOLS 28 | #define _APS_NEXT_RESOURCE_VALUE 201 29 | #define _APS_NEXT_COMMAND_VALUE 32772 30 | #define _APS_NEXT_CONTROL_VALUE 1000 31 | #define _APS_NEXT_SYMED_VALUE 102 32 | #endif 33 | #endif 34 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/stdatl.cpp: -------------------------------------------------------------------------------- 1 | // stdatl.cpp : source file that includes just the standard includes 2 | // GuidGen.pch will be the pre-compiled header 3 | // stdatl.obj will contain the pre-compiled type information 4 | 5 | #include "stdatl.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/GuidGen/stdatl.h: -------------------------------------------------------------------------------- 1 | // stdatl.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | // Change these values to use different versions 7 | #define WINVER 0x0501 8 | #define _WIN32_WINNT 0x0501 9 | #define _WIN32_IE 0x0600 10 | #define _RICHEDIT_VER 0x0300 11 | 12 | #include 13 | #include 14 | 15 | extern CAppModule _Module; 16 | 17 | #include 18 | 19 | #if defined _M_IX86 20 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 21 | #elif defined _M_IA64 22 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 23 | #elif defined _M_X64 24 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 25 | #else 26 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 27 | #endif 28 | 29 | //{{AFX_INSERT_LOCATION}} 30 | // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 31 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/MDI.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | #include "resource.h" 8 | #include "mainfrm.h" 9 | 10 | CAppModule _Module; 11 | 12 | int Run(LPSTR lpCmdLine = NULL, int nCmdShow = SW_SHOWDEFAULT) 13 | { 14 | CMessageLoop theLoop; 15 | _Module.AddMessageLoop(&theLoop); 16 | 17 | CMDIFrame wndMain; 18 | 19 | if(wndMain.CreateEx() == NULL) 20 | { 21 | ATLTRACE(_T("Main window creation failed!\n")); 22 | return 0; 23 | } 24 | 25 | wndMain.ShowWindow(nCmdShow); 26 | 27 | int nRet = theLoop.Run(); 28 | 29 | _Module.RemoveMessageLoop(); 30 | return nRet; 31 | } 32 | 33 | int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR lpCmdLine, int nCmdShow) 34 | { 35 | ::InitCommonControls(); 36 | _Module.Init(NULL, hInstance); 37 | 38 | int nRet = Run(lpCmdLine, nCmdShow); 39 | 40 | _Module.Term(); 41 | return nRet; 42 | } 43 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/MDI_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MDI", "MDI_2005.vcproj", "{53581F92-A24A-480E-9B60-ABA01A256FEB}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Debug|Win32.Build.0 = Debug|Win32 13 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Release|Win32.ActiveCfg = Release|Win32 14 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/MDI_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MDI", "MDI_2010.vcxproj", "{53581F92-A24A-480E-9B60-ABA01A256FEB}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Debug|Win32.Build.0 = Debug|Win32 13 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Release|Win32.ActiveCfg = Release|Win32 14 | {53581F92-A24A-480E-9B60-ABA01A256FEB}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/MDI_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {fbdce8b3-ea27-4a52-86e9-81e1cff23402} 6 | cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90 7 | 8 | 9 | {165724d8-309f-4f3c-a9ec-b136784dd965} 10 | h;hpp;hxx;hm;inl;fi;fd 11 | 12 | 13 | {74b416f0-210e-4e7a-94e4-aa44ee3005e7} 14 | ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Source Files 28 | 29 | 30 | 31 | 32 | Header Files 33 | 34 | 35 | Header Files 36 | 37 | 38 | Header Files 39 | 40 | 41 | 42 | 43 | Resource Files 44 | 45 | 46 | Resource Files 47 | 48 | 49 | Resource Files 50 | 51 | 52 | Resource Files 53 | 54 | 55 | Resource Files 56 | 57 | 58 | Resource Files 59 | 60 | 61 | 62 | 63 | Resource Files 64 | 65 | 66 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/res/HelloDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MDIDocVw/res/HelloDoc.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/res/MDI.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MDIDocVw/res/MDI.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MDIDocVw/res/Toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/res/bounce.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MDIDocVw/res/bounce.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by MDI.rc 4 | // 5 | #define IDR_MAINFRAME 2 6 | #define ID_BLACK 20 7 | #define ID_RED 21 8 | #define ID_GREEN 22 9 | #define ID_BLUE 23 10 | #define ID_WHITE 24 11 | #define ID_CUSTOM 25 12 | #define IDD_ABOUTDLG 104 13 | #define IDR_HELLOTYPE 129 14 | #define IDR_BOUNCETYPE 31234 15 | #define ID_FILE_NEWHELLO 32771 16 | #define ID_FILE_NEWBOUNCE 32772 17 | #define ID_SPEED_SLOW 32778 18 | #define ID_SPEED_FAST 32779 19 | #define IDS_NOHELLOTEMPLATE 32780 20 | #define IDS_NOBOUNCETEMPLATE 32781 21 | #define ID_MIX 32783 22 | #define IDS_UNKCOLOR 32784 23 | #define ID_WINDOW_ARRANGEICONS 40003 24 | #define ID_WINDOW_MINIMIZEALL 40004 25 | #define ID_WINDOW_CASCADE2 57652 26 | #define ID_WINDOW_TILE_HORZ2 57653 27 | #define ID_WINDOW_TILE_VERT2 57654 28 | #define ID_WINDOW_SPLIT2 57655 29 | 30 | // Next default values for new objects 31 | // 32 | #ifdef APSTUDIO_INVOKED 33 | #ifndef APSTUDIO_READONLY_SYMBOLS 34 | #define _APS_NEXT_RESOURCE_VALUE 106 35 | #define _APS_NEXT_COMMAND_VALUE 40005 36 | #define _APS_NEXT_CONTROL_VALUE 1001 37 | #define _APS_NEXT_SYMED_VALUE 101 38 | #endif 39 | #endif 40 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/stdafx.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MDIDocVw/stdafx.h: -------------------------------------------------------------------------------- 1 | #define WINVER 0x0501 2 | #define _WIN32_WINNT 0x0501 3 | #define _WIN32_IE 0x0600 4 | #define _RICHEDIT_VER 0x0300 5 | 6 | #include 7 | #include 8 | 9 | extern CAppModule _Module; 10 | 11 | #include 12 | 13 | #if defined _M_IX86 14 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 15 | #elif defined _M_IA64 16 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 17 | #elif defined _M_X64 18 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 19 | #else 20 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 21 | #endif 22 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/MTPad.cpp: -------------------------------------------------------------------------------- 1 | #include "stdatl.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include "finddlg.h" 12 | 13 | #include "resource.h" 14 | 15 | // Globals 16 | #define WM_UPDATEROWCOL (WM_USER + 1000) 17 | 18 | LPCTSTR lpcstrMTPadRegKey = _T("Software\\Microsoft\\WTL Samples\\MTPad"); 19 | 20 | LPCTSTR lpcstrFilter = 21 | _T("All Files (*.*)\0*.*\0") 22 | _T("Text Files (*.txt)\0*.txt\0") 23 | _T("C++ Files (*.cpp)\0*.cpp\0") 24 | _T("Include Files (*.h)\0*.h\0") 25 | _T("C Files (*.c)\0*.c\0") 26 | _T("Inline Files (*.inl)\0*.inl\0") 27 | _T("Ini Files (*.ini)\0*.ini\0") 28 | _T("Batch Files (*.bat)\0*.bat\0") 29 | _T(""); 30 | 31 | #include "view.h" 32 | #include "aboutdlg.h" 33 | #include "mainfrm.h" 34 | 35 | #include "mtpad.h" 36 | 37 | CAppModule _Module; 38 | 39 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, int nCmdShow) 40 | { 41 | _Module.Init(NULL, hInstance); 42 | HINSTANCE hInstRich = ::LoadLibrary(CRichEditCtrl::GetLibraryName()); 43 | 44 | CThreadManager mgr; 45 | int nRet = mgr.Run(lpCmdLine, nCmdShow); 46 | 47 | ::FreeLibrary(hInstRich); 48 | _Module.Term(); 49 | 50 | return nRet; 51 | } 52 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/MTPad_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MTPad", "MTPad_2005.vcproj", "{3A5F348A-39BD-425E-8DB3-E82300A9D0CF}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Debug|Win32.Build.0 = Debug|Win32 13 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Release|Win32.ActiveCfg = Release|Win32 14 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/MTPad_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MTPad", "MTPad_2010.vcxproj", "{3A5F348A-39BD-425E-8DB3-E82300A9D0CF}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Debug|Win32.Build.0 = Debug|Win32 13 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Release|Win32.ActiveCfg = Release|Win32 14 | {3A5F348A-39BD-425E-8DB3-E82300A9D0CF}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/MTPad_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {ff827c24-e028-4cff-b9d6-1e6b4433a43e} 6 | cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90 7 | 8 | 9 | {256ee91a-ba90-49e0-bfc4-4655a4fb8f4b} 10 | h;hpp;hxx;hm;inl;fi;fd 11 | 12 | 13 | {3245d601-40e3-405c-8b14-fbc88a3cea8c} 14 | ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Source Files 28 | 29 | 30 | 31 | 32 | Header Files 33 | 34 | 35 | Header Files 36 | 37 | 38 | Header Files 39 | 40 | 41 | Header Files 42 | 43 | 44 | Header Files 45 | 46 | 47 | Header Files 48 | 49 | 50 | Header Files 51 | 52 | 53 | 54 | 55 | Resource Files 56 | 57 | 58 | Resource Files 59 | 60 | 61 | Resource Files 62 | 63 | 64 | Resource Files 65 | 66 | 67 | 68 | 69 | Resource Files 70 | 71 | 72 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/aboutdlg.h: -------------------------------------------------------------------------------- 1 | class CAboutDlg : public CDialogImpl 2 | { 3 | public: 4 | enum { IDD = IDD_ABOUTDLG }; 5 | 6 | BEGIN_MSG_MAP(CAboutDlg) 7 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 8 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 9 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 10 | END_MSG_MAP() 11 | 12 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 13 | { 14 | CenterWindow(GetParent()); 15 | return (LRESULT)TRUE; 16 | } 17 | 18 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 19 | { 20 | EndDialog(wID); 21 | return 0; 22 | } 23 | }; 24 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/finddlg.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __FindReplaceDialogWithMessageFilter_h__ 3 | #define __FindReplaceDialogWithMessageFilter_h__ 4 | 5 | #pragma once 6 | 7 | #ifndef __cplusplus 8 | #error ATL requires C++ compilation (use a .cpp suffix) 9 | #endif 10 | 11 | #ifndef __ATLAPP_H__ 12 | #error FindReplaceDialogWithMessageFilter.h requires atlapp.h to be included first 13 | #endif 14 | 15 | #ifndef __ATLWIN_H__ 16 | #error FindReplaceDialogWithMessageFilter.h requires atlwin.h to be included first 17 | #endif 18 | 19 | class CFindReplaceDialogWithMessageFilter : 20 | public CFindReplaceDialogImpl, 21 | public CMessageFilter 22 | { 23 | protected: 24 | CMessageLoop* m_messageLoop; 25 | 26 | public: 27 | CFindReplaceDialogWithMessageFilter(CMessageLoop* messageLoop) : 28 | m_messageLoop(messageLoop) 29 | { 30 | } 31 | 32 | public: 33 | BOOL PreTranslateMessage(MSG* pMsg) 34 | { 35 | HWND hWndFocus = ::GetFocus(); 36 | if((m_hWnd == hWndFocus) || this->IsChild(hWndFocus)) 37 | return this->IsDialogMessage(pMsg); 38 | 39 | return FALSE; 40 | } 41 | 42 | virtual void OnFinalMessage(HWND /*hWnd*/) 43 | { 44 | delete this; 45 | } 46 | 47 | BEGIN_MSG_MAP(CFindReplaceDialogWithMessageFilter) 48 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 49 | MESSAGE_HANDLER(WM_DESTROY, OnDestroy) 50 | END_MSG_MAP() 51 | 52 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) 53 | { 54 | if(m_messageLoop) 55 | m_messageLoop->AddMessageFilter(this); 56 | 57 | bHandled = FALSE; 58 | return 0; 59 | } 60 | 61 | LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) 62 | { 63 | if(m_messageLoop) 64 | m_messageLoop->RemoveMessageFilter(this); 65 | 66 | bHandled = FALSE; 67 | return 0; 68 | } 69 | }; 70 | 71 | #endif //__FindReplaceDialogWithMessageFilter_h__ 72 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/res/MTPad.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad/res/MTPad.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/res/MTPadDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad/res/MTPadDoc.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad/res/Toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/res/printpre.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad/res/printpre.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by MTPad.rc 4 | // 5 | #define IDD_ABOUTDLG 104 6 | #define IDR_PRINTPREVIEWBAR 108 7 | #define IDR_MAINFRAME 128 8 | #define IDR_TEXTTYPE 129 9 | #define IDR_CONTEXTMENU 130 10 | #define ID_FILE_NEW_WINDOW 32771 11 | #define ID_EDIT_WORD_WRAP 40003 12 | #define ID_PP_BACK 40006 13 | #define ID_PP_CLOSE 40008 14 | #define ID_PP_FORWARD 40011 15 | #define ID_ROW_PANE 61403 16 | #define ID_COL_PANE 61404 17 | 18 | // Next default values for new objects 19 | // 20 | #ifdef APSTUDIO_INVOKED 21 | #ifndef APSTUDIO_READONLY_SYMBOLS 22 | #define _APS_NEXT_RESOURCE_VALUE 110 23 | #define _APS_NEXT_COMMAND_VALUE 40013 24 | #define _APS_NEXT_CONTROL_VALUE 1001 25 | #define _APS_NEXT_SYMED_VALUE 101 26 | #endif 27 | #endif 28 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/stdatl.cpp: -------------------------------------------------------------------------------- 1 | #include "stdatl.h" 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad/stdatl.h: -------------------------------------------------------------------------------- 1 | #define WINVER 0x0501 2 | #define _WIN32_WINNT 0x0501 3 | #define _WIN32_IE 0x0600 4 | #define _RICHEDIT_VER 0x0300 5 | 6 | #define _WTL_USE_CSTRING 7 | 8 | #include 9 | #include 10 | 11 | extern CAppModule _Module; 12 | 13 | #include 14 | #include 15 | 16 | #if defined _M_IX86 17 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 18 | #elif defined _M_IA64 19 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 20 | #elif defined _M_X64 21 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 22 | #else 23 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 24 | #endif 25 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/MTPad.cpp: -------------------------------------------------------------------------------- 1 | #include "stdatl.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include "finddlg.h" 13 | 14 | #include "MTPadRibbon.h" 15 | 16 | 17 | #include "resource.h" 18 | 19 | // Globals 20 | #define WM_UPDATEROWCOL (WM_USER + 1000) 21 | 22 | LPCTSTR lpcstrMTPadRegKey = _T("Software\\Microsoft\\WTL Samples\\MTPad"); 23 | 24 | LPCTSTR lpcstrFilter = 25 | _T("All Files (*.*)\0*.*\0") 26 | _T("Text Files (*.txt)\0*.txt\0") 27 | _T("C++ Files (*.cpp)\0*.cpp\0") 28 | _T("Include Files (*.h)\0*.h\0") 29 | _T("C Files (*.c)\0*.c\0") 30 | _T("Inline Files (*.inl)\0*.inl\0") 31 | _T("Ini Files (*.ini)\0*.ini\0") 32 | _T("Batch Files (*.bat)\0*.bat\0") 33 | _T(""); 34 | 35 | #include "view.h" 36 | #include "aboutdlg.h" 37 | #include "mainfrm.h" 38 | 39 | #include "mtpad.h" 40 | 41 | CAppModule _Module; 42 | 43 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, int nCmdShow) 44 | { 45 | _Module.Init(NULL, hInstance); 46 | HINSTANCE hInstRich = ::LoadLibrary(CRichEditCtrl::GetLibraryName()); 47 | 48 | CThreadManager mgr; 49 | int nRet = mgr.Run(lpCmdLine, nCmdShow); 50 | 51 | ::FreeLibrary(hInstRich); 52 | _Module.Term(); 53 | 54 | return nRet; 55 | } 56 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/MTPad7_2008.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 10.00 2 | # Visual Studio 2008 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MTPad", "MTPad7_2008.vcproj", "{22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Debug|Win32.Build.0 = Debug|Win32 13 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Release|Win32.ActiveCfg = Release|Win32 14 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/MTPad7_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MTPad", "MTPad7_2010.vcxproj", "{22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Debug|Win32.Build.0 = Debug|Win32 13 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Release|Win32.ActiveCfg = Release|Win32 14 | {22B5B9CD-D556-4A0B-B3BB-F9DA41B55FD5}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/MTPad7_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {5ea44da7-effb-468d-9640-a7da49ab85d2} 6 | cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90 7 | 8 | 9 | {1fde8a66-c99a-4be2-a071-81336a92e904} 10 | h;hpp;hxx;hm;inl;fi;fd 11 | 12 | 13 | {bd595d8f-844c-43da-942f-8c0260507771} 14 | ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | Header Files 31 | 32 | 33 | Header Files 34 | 35 | 36 | Header Files 37 | 38 | 39 | Header Files 40 | 41 | 42 | Header Files 43 | 44 | 45 | Header Files 46 | 47 | 48 | 49 | 50 | Resource Files 51 | 52 | 53 | Resource Files 54 | 55 | 56 | Resource Files 57 | 58 | 59 | Resource Files 60 | 61 | 62 | Resource Files 63 | 64 | 65 | Resource Files 66 | 67 | 68 | Resource Files 69 | 70 | 71 | Resource Files 72 | 73 | 74 | Resource Files 75 | 76 | 77 | Resource Files 78 | 79 | 80 | Resource Files 81 | 82 | 83 | 84 | 85 | Resource Files 86 | 87 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/MTPadRibbon.h: -------------------------------------------------------------------------------- 1 | // ***************************************************************************** 2 | // * This is an automatically generated header file for UI Element definition * 3 | // * resource symbols and values. Please do not modify manually. * 4 | // ***************************************************************************** 5 | 6 | #pragma once 7 | 8 | #define ID_FILE_NEW 0xE100 9 | #define ID_FILE_OPEN 0xE101 10 | #define ID_FILE_SAVE 0xE103 11 | #define ID_FILE_SAVE_AS 0xE104 12 | #define ID_FILE_PRINT 0xE107 13 | #define ID_FILE_PRINT_PREVIEW 0xE109 14 | #define ID_FILE_PRINT_SETUP 0xE106 15 | #define ID_FILE_PAGE_SETUP 0xE105 16 | #define ID_APP_ABOUT 0xE140 17 | #define ID_APP_EXIT 0xE141 18 | #define ID_EDIT_CUT 0xE123 19 | #define ID_EDIT_COPY 0xE122 20 | #define ID_EDIT_PASTE 0xE125 21 | #define ID_EDIT_FIND 0xE124 22 | #define ID_EDIT_REPEAT 0xE128 23 | #define ID_EDIT_REPLACE 0xE129 24 | #define ID_EDIT_SELECT_ALL 0xE12A 25 | #define ID_EDIT_UNDO 0xE12B 26 | #define ID_FORMAT_FONT 0xE160 27 | #define ID_VIEW_TOOLBAR 0xE800 28 | #define ID_VIEW_STATUS_BAR 0xE801 29 | #define ID_VIEW_RIBBON 0xE804 30 | #define ID_FILE_NEW_WINDOW 32771 31 | #define ID_EDIT_WORD_WRAP 40003 32 | #define ID_PP_FORWARD 40011 33 | #define ID_PP_FORWARD_LabelTitle_RESID 60001 34 | #define ID_PP_BACK 40006 35 | #define ID_PP_BACK_LabelTitle_RESID 60002 36 | #define ID_PP_CLOSE 40008 37 | #define ID_PP_CLOSE_LabelTitle_RESID 60003 38 | #define ID_RIBBON_FONT 2 39 | #define ID_RIBBON_FONT_LabelTitle_RESID 60004 40 | #define ID_PAGE_SPINNER 3 41 | #define ID_PAGE_SPINNER_LabelTitle_RESID 60005 42 | #define ID_RIBBON_RECENT_FILES 4 43 | #define ID_RIBBON_RECENT_FILES_LabelTitle_RESID 60006 44 | #define ID_TAB_HOME 5 45 | #define ID_TAB_HOME_LabelTitle_RESID 60007 46 | #define ID_TAB_PREVIEW 6 47 | #define ID_TAB_PREVIEW_LabelTitle_RESID 60008 48 | #define ID_GROUP_CLIPBOARD 7 49 | #define ID_GROUP_CLIPBOARD_LabelTitle_RESID 60009 50 | #define ID_GROUP_TEST 8 51 | #define ID_GROUP_TEST_LabelTitle_RESID 60010 52 | #define ID_GROUP_FONT 9 53 | #define ID_GROUP_FONT_LabelTitle_RESID 60011 54 | #define ID_GROUP_FIND 10 55 | #define ID_GROUP_FIND_LabelTitle_RESID 60012 56 | #define ID_GROUP_VIEW 11 57 | #define ID_GROUP_VIEW_LabelTitle_RESID 60013 58 | #define ID_GROUP_VIEW_PREVIEW 12 59 | #define ID_GROUP_VIEW_PREVIEW_LabelTitle_RESID 60014 60 | #define ID_GROUP_PAGE 13 61 | #define ID_RIBBON_APP_MENU 14 62 | #define ID_SAVEMORE 15 63 | #define ID_PRINTMORE 16 64 | #define ID_RIBBON_QAT 17 65 | #define ID_MINITOOLBAR 18 66 | #define ID_CONTEXTMENU 19 67 | #define ID_CONTEXTMAP 20 68 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/MTPadRibbon.rc: -------------------------------------------------------------------------------- 1 | // ****************************************************************************** 2 | // * This is an automatically generated file containing the ribbon resource for * 3 | // * your application. * 4 | // ****************************************************************************** 5 | 6 | #include ".\MTPadRibbon.h" 7 | 8 | STRINGTABLE 9 | BEGIN 10 | ID_PP_FORWARD_LabelTitle_RESID L"Next Page" /* LabelTitle ID_PP_FORWARD_LabelTitle_RESID: (null) */ 11 | END 12 | 13 | STRINGTABLE 14 | BEGIN 15 | ID_PP_BACK_LabelTitle_RESID L"Previous Page" /* LabelTitle ID_PP_BACK_LabelTitle_RESID: (null) */ 16 | END 17 | 18 | STRINGTABLE 19 | BEGIN 20 | ID_PP_CLOSE_LabelTitle_RESID L"Close Preview" /* LabelTitle ID_PP_CLOSE_LabelTitle_RESID: (null) */ 21 | END 22 | 23 | STRINGTABLE 24 | BEGIN 25 | ID_RIBBON_FONT_LabelTitle_RESID L"Font" /* LabelTitle ID_RIBBON_FONT_LabelTitle_RESID: (null) */ 26 | END 27 | 28 | STRINGTABLE 29 | BEGIN 30 | ID_PAGE_SPINNER_LabelTitle_RESID L"View page:" /* LabelTitle ID_PAGE_SPINNER_LabelTitle_RESID: (null) */ 31 | END 32 | 33 | STRINGTABLE 34 | BEGIN 35 | ID_RIBBON_RECENT_FILES_LabelTitle_RESID L"Recent Files" /* LabelTitle ID_RIBBON_RECENT_FILES_LabelTitle_RESID: (null) */ 36 | END 37 | 38 | STRINGTABLE 39 | BEGIN 40 | ID_TAB_HOME_LabelTitle_RESID L"Home" /* LabelTitle ID_TAB_HOME_LabelTitle_RESID: (null) */ 41 | END 42 | 43 | STRINGTABLE 44 | BEGIN 45 | ID_TAB_PREVIEW_LabelTitle_RESID L"Preview" /* LabelTitle ID_TAB_PREVIEW_LabelTitle_RESID: (null) */ 46 | END 47 | 48 | STRINGTABLE 49 | BEGIN 50 | ID_GROUP_CLIPBOARD_LabelTitle_RESID L"Edit" /* LabelTitle ID_GROUP_CLIPBOARD_LabelTitle_RESID: (null) */ 51 | END 52 | 53 | STRINGTABLE 54 | BEGIN 55 | ID_GROUP_TEST_LabelTitle_RESID L"Font" /* LabelTitle ID_GROUP_TEST_LabelTitle_RESID: (null) */ 56 | END 57 | 58 | STRINGTABLE 59 | BEGIN 60 | ID_GROUP_FONT_LabelTitle_RESID L"Font" /* LabelTitle ID_GROUP_FONT_LabelTitle_RESID: (null) */ 61 | END 62 | 63 | STRINGTABLE 64 | BEGIN 65 | ID_GROUP_FIND_LabelTitle_RESID L"Find" /* LabelTitle ID_GROUP_FIND_LabelTitle_RESID: (null) */ 66 | END 67 | 68 | STRINGTABLE 69 | BEGIN 70 | ID_GROUP_VIEW_LabelTitle_RESID L"View" /* LabelTitle ID_GROUP_VIEW_LabelTitle_RESID: (null) */ 71 | END 72 | 73 | STRINGTABLE 74 | BEGIN 75 | ID_GROUP_VIEW_PREVIEW_LabelTitle_RESID L"View" /* LabelTitle ID_GROUP_VIEW_PREVIEW_LabelTitle_RESID: (null) */ 76 | END 77 | 78 | APPLICATION_RIBBON UIFILE "MTPadRibbon.bml" 79 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/aboutdlg.h: -------------------------------------------------------------------------------- 1 | class CAboutDlg : public CDialogImpl 2 | { 3 | public: 4 | enum { IDD = IDD_ABOUTDLG }; 5 | 6 | CFont m_font; 7 | 8 | BEGIN_MSG_MAP(CAboutDlg) 9 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 10 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 11 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 12 | END_MSG_MAP() 13 | 14 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 15 | { 16 | CenterWindow(GetParent()); 17 | 18 | // Set Tahoma font if we are not running on Vista or higher 19 | if(!RunTimeHelper::IsVista()) 20 | { 21 | CLogFont lf; 22 | lf.lfWeight = FW_NORMAL; 23 | lf.SetHeight(8); 24 | SecureHelper::strcpy_x(lf.lfFaceName, LF_FACESIZE, _T("Tahoma")); 25 | m_font.CreateFontIndirect(&lf); 26 | 27 | SetFont(m_font); 28 | 29 | for(CWindow wnd = GetWindow(GW_CHILD); wnd.m_hWnd != NULL; wnd = wnd.GetWindow(GW_HWNDNEXT)) 30 | wnd.SetFont(m_font); 31 | } 32 | 33 | return (LRESULT)TRUE; 34 | } 35 | 36 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 37 | { 38 | EndDialog(wID); 39 | return 0; 40 | } 41 | }; 42 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/finddlg.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __FindReplaceDialogWithMessageFilter_h__ 3 | #define __FindReplaceDialogWithMessageFilter_h__ 4 | 5 | #pragma once 6 | 7 | #ifndef __cplusplus 8 | #error ATL requires C++ compilation (use a .cpp suffix) 9 | #endif 10 | 11 | #ifndef __ATLAPP_H__ 12 | #error FindReplaceDialogWithMessageFilter.h requires atlapp.h to be included first 13 | #endif 14 | 15 | #ifndef __ATLWIN_H__ 16 | #error FindReplaceDialogWithMessageFilter.h requires atlwin.h to be included first 17 | #endif 18 | 19 | class CFindReplaceDialogWithMessageFilter : 20 | public CFindReplaceDialogImpl, 21 | public CMessageFilter 22 | { 23 | protected: 24 | CMessageLoop* m_messageLoop; 25 | 26 | public: 27 | CFindReplaceDialogWithMessageFilter(CMessageLoop* messageLoop) : 28 | m_messageLoop(messageLoop) 29 | { 30 | } 31 | 32 | public: 33 | BOOL PreTranslateMessage(MSG* pMsg) 34 | { 35 | HWND hWndFocus = ::GetFocus(); 36 | if((m_hWnd == hWndFocus) || this->IsChild(hWndFocus)) 37 | return this->IsDialogMessage(pMsg); 38 | 39 | return FALSE; 40 | } 41 | 42 | virtual void OnFinalMessage(HWND /*hWnd*/) 43 | { 44 | delete this; 45 | } 46 | 47 | BEGIN_MSG_MAP(CFindReplaceDialogWithMessageFilter) 48 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 49 | MESSAGE_HANDLER(WM_DESTROY, OnDestroy) 50 | END_MSG_MAP() 51 | 52 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) 53 | { 54 | if(m_messageLoop) 55 | m_messageLoop->AddMessageFilter(this); 56 | 57 | bHandled = FALSE; 58 | return 0; 59 | } 60 | 61 | LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) 62 | { 63 | if(m_messageLoop) 64 | m_messageLoop->RemoveMessageFilter(this); 65 | 66 | bHandled = FALSE; 67 | return 0; 68 | } 69 | }; 70 | 71 | #endif //__FindReplaceDialogWithMessageFilter_h__ 72 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/mtpad.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/mtpad.rc -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/ClosePreviewHH.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/ClosePreviewHH.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/GoToNextHS.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/GoToNextHS.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/GoToPreviousHS.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/GoToPreviousHS.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/MTPad.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/MTPad.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/MTPadDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/MTPadDoc.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/PortraitLandscapeHS.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/PortraitLandscapeHS.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/PrintPreviewL.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/PrintPreviewL.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/SelectAllS.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/SelectAllS.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/Toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/UndoS.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/UndoS.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/res/printpre.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MTPad7/res/printpre.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by mtpad.rc 4 | // 5 | #define IDD_ABOUTDLG 104 6 | #define IDR_PRINTPREVIEWBAR 108 7 | #define IDR_MAINFRAME 128 8 | #define IDR_TEXTTYPE 129 9 | #define IDR_CONTEXTMENU 130 10 | #define ID_FILE_NEW_WINDOW 32771 11 | #define ID_EDIT_WORD_WRAP 40003 12 | #define ID_PP_BACK 40006 13 | #define ID_PP_CLOSE 40008 14 | #define ID_PP_FORWARD 40011 15 | #define ID_ROW_PANE 61403 16 | #define ID_COL_PANE 61404 17 | 18 | // Next default values for new objects 19 | // 20 | #ifdef APSTUDIO_INVOKED 21 | #ifndef APSTUDIO_READONLY_SYMBOLS 22 | #define _APS_NEXT_RESOURCE_VALUE 116 23 | #define _APS_NEXT_COMMAND_VALUE 40013 24 | #define _APS_NEXT_CONTROL_VALUE 1001 25 | #define _APS_NEXT_SYMED_VALUE 101 26 | #endif 27 | #endif 28 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/stdatl.cpp: -------------------------------------------------------------------------------- 1 | #include "stdatl.h" 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MTPad7/stdatl.h: -------------------------------------------------------------------------------- 1 | #define WINVER 0x0601 2 | #define _WIN32_WINNT 0x0601 3 | #define _WIN32_IE 0x0700 4 | #define _RICHEDIT_VER 0x0300 5 | 6 | #include 7 | 8 | #define _WTL_USE_CSTRING 9 | 10 | #include 11 | 12 | extern CAppModule _Module; 13 | 14 | #include 15 | #include 16 | #include 17 | 18 | #if defined _M_IX86 19 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 20 | #elif defined _M_IA64 21 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 22 | #elif defined _M_X64 23 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 24 | #else 25 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 26 | #endif 27 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/AboutDlg.h: -------------------------------------------------------------------------------- 1 | // AboutDlg.h : interface of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CAboutDlg : public CDialogImpl 8 | { 9 | public: 10 | enum { IDD = IDD_ABOUTBOX }; 11 | 12 | BEGIN_MSG_MAP(CAboutDlg) 13 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 14 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 15 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 16 | END_MSG_MAP() 17 | 18 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 19 | { 20 | CenterWindow(GetParent()); 21 | return TRUE; 22 | } 23 | 24 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 25 | { 26 | EndDialog(wID); 27 | return 0; 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/AboutDlgIndirect.h: -------------------------------------------------------------------------------- 1 | // AboutDlgIndirect.h : interface of the CAboutDlgIndirect class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CAboutDlgIndirect : public CIndirectDialogImpl 8 | { 9 | public: 10 | BEGIN_DIALOG(0, 0, 187, 102) 11 | DIALOG_CAPTION(_T("About")) 12 | DIALOG_STYLE(DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU) 13 | DIALOG_FONT(8, _T("MS Shell Dlg 2")) 14 | END_DIALOG() 15 | 16 | BEGIN_CONTROLS_MAP() 17 | CONTROL_DEFPUSHBUTTON(_T("OK"), IDOK, 130, 81, 50, 14, 0, 0) 18 | CONTROL_CTEXT(_T("MemDlg Application v1.0\n\n(c) Copyright 2015"), IDC_STATIC, 25, 57, 78, 32, 0, 0) 19 | CONTROL_ICON(MAKEINTRESOURCE(IDR_MAINFRAME), IDC_STATIC, 55, 26, 18, 20, 0, 0) 20 | CONTROL_GROUPBOX(_T(""), IDC_STATIC, 7, 7, 115, 88, 0, 0) 21 | END_CONTROLS_MAP() 22 | 23 | BEGIN_MSG_MAP(CAboutDlgIndirect) 24 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 25 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 26 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 27 | END_MSG_MAP() 28 | 29 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 30 | { 31 | CenterWindow(GetParent()); 32 | return TRUE; 33 | } 34 | 35 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 36 | { 37 | EndDialog(wID); 38 | return 0; 39 | } 40 | }; 41 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/MemDlg.cpp: -------------------------------------------------------------------------------- 1 | // MemDlg.cpp : main source file for MemDlg.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #include "resource.h" 12 | 13 | #include "View.h" 14 | #include "AboutDlg.h" 15 | #include "AboutDlgIndirect.h" 16 | #include "MainFrm.h" 17 | 18 | CAppModule _Module; 19 | 20 | int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT) 21 | { 22 | CMessageLoop theLoop; 23 | _Module.AddMessageLoop(&theLoop); 24 | 25 | CMainFrame wndMain; 26 | 27 | if(wndMain.CreateEx() == NULL) 28 | { 29 | ATLTRACE(_T("Main window creation failed!\n")); 30 | return 0; 31 | } 32 | 33 | wndMain.ShowWindow(nCmdShow); 34 | 35 | int nRet = theLoop.Run(); 36 | 37 | _Module.RemoveMessageLoop(); 38 | return nRet; 39 | } 40 | 41 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow) 42 | { 43 | HRESULT hRes = ::CoInitialize(NULL); 44 | ATLASSERT(SUCCEEDED(hRes)); 45 | 46 | // this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used 47 | ::DefWindowProc(NULL, 0, 0, 0L); 48 | 49 | AtlInitCommonControls(ICC_COOL_CLASSES | ICC_BAR_CLASSES); // add flags to support other controls 50 | 51 | hRes = _Module.Init(NULL, hInstance); 52 | ATLASSERT(SUCCEEDED(hRes)); 53 | 54 | int nRet = Run(lpstrCmdLine, nCmdShow); 55 | 56 | _Module.Term(); 57 | ::CoUninitialize(); 58 | 59 | return nRet; 60 | } 61 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/MemDlg_2005.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual Studio 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MemDlg", "MemDlg_2005.vcproj", "{18360C6F-BF21-4FA5-9395-BDBD833340E3}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Debug|x64 = Debug|x64 10 | Release|Win32 = Release|Win32 11 | Release|x64 = Release|x64 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|Win32.Build.0 = Debug|Win32 16 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|x64.ActiveCfg = Debug|x64 17 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|x64.Build.0 = Debug|x64 18 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|Win32.ActiveCfg = Release|Win32 19 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|Win32.Build.0 = Release|Win32 20 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|x64.ActiveCfg = Release|x64 21 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|x64.Build.0 = Release|x64 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/MemDlg_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MemDlg", "MemDlg_2010.vcxproj", "{18360C6F-BF21-4FA5-9395-BDBD833340E3}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Debug|x64 = Debug|x64 9 | Release|Win32 = Release|Win32 10 | Release|x64 = Release|x64 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|Win32.ActiveCfg = Debug|Win32 14 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|Win32.Build.0 = Debug|Win32 15 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|x64.ActiveCfg = Debug|x64 16 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Debug|x64.Build.0 = Debug|x64 17 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|Win32.ActiveCfg = Release|Win32 18 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|Win32.Build.0 = Release|Win32 19 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|x64.ActiveCfg = Release|x64 20 | {18360C6F-BF21-4FA5-9395-BDBD833340E3}.Release|x64.Build.0 = Release|x64 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/MemDlg_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {445df108-134d-438e-abaf-2cc9a7169b32} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {bc393898-a096-494a-b33a-8eddc8cb1c90} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {cbe07dbd-d123-4841-9ab1-fe38bf52bdc7} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | Header Files 31 | 32 | 33 | Header Files 34 | 35 | 36 | Header Files 37 | 38 | 39 | Header Files 40 | 41 | 42 | Header Files 43 | 44 | 45 | 46 | 47 | Resource Files 48 | 49 | 50 | Resource Files 51 | 52 | 53 | 54 | 55 | Resource Files 56 | 57 | 58 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/View.h: -------------------------------------------------------------------------------- 1 | // View.h : interface of the CView class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CView : public CWindowImpl 8 | { 9 | public: 10 | DECLARE_WND_CLASS(NULL) 11 | 12 | BOOL PreTranslateMessage(MSG* pMsg) 13 | { 14 | pMsg; 15 | return FALSE; 16 | } 17 | 18 | BEGIN_MSG_MAP(CView) 19 | MESSAGE_HANDLER(WM_PAINT, OnPaint) 20 | END_MSG_MAP() 21 | 22 | LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 23 | { 24 | CPaintDC dc(m_hWnd); 25 | 26 | //TODO: Add your drawing code here 27 | 28 | return 0; 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/res/MemDlg.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MemDlg/res/MemDlg.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/res/toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/MemDlg/res/toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by MemDlg.rc 4 | // 5 | 6 | 7 | #define IDD_ABOUTBOX 100 8 | #define IDR_MAINFRAME 128 9 | #define ID_APP_ABOUT_MEM 32775 10 | 11 | // Next default values for new objects 12 | // 13 | #ifdef APSTUDIO_INVOKED 14 | #ifndef APSTUDIO_READONLY_SYMBOLS 15 | #define _APS_NEXT_RESOURCE_VALUE 201 16 | #define _APS_NEXT_CONTROL_VALUE 1000 17 | #define _APS_NEXT_SYMED_VALUE 102 18 | #define _APS_NEXT_COMMAND_VALUE 32776 19 | #endif 20 | #endif 21 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // MemDlg.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/MemDlg/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | // Change these values to use different versions 9 | #define WINVER 0x0501 10 | #define _WIN32_WINNT 0x0501 11 | #define _WIN32_IE 0x0600 12 | #define _RICHEDIT_VER 0x0300 13 | 14 | #include 15 | #include 16 | 17 | extern CAppModule _Module; 18 | 19 | #include 20 | 21 | #if defined _M_IX86 22 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 23 | #elif defined _M_IA64 24 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 25 | #elif defined _M_X64 26 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 27 | #else 28 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 29 | #endif 30 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/AboutDlg.h: -------------------------------------------------------------------------------- 1 | // aboutdlg.h : interface of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | class CAboutDlg : public CDialogImpl 8 | { 9 | public: 10 | enum { IDD = IDD_ABOUTBOX }; 11 | 12 | BEGIN_MSG_MAP(CAboutDlg) 13 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 14 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 15 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 16 | END_MSG_MAP() 17 | 18 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 19 | { 20 | CenterWindow(GetParent()); 21 | return TRUE; 22 | } 23 | 24 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 25 | { 26 | EndDialog(wID); 27 | return 0; 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/CustomTabView.h: -------------------------------------------------------------------------------- 1 | // CustomTabView.h - CCustomTabView class 2 | 3 | #pragma once 4 | 5 | 6 | class CCustomTabView : public CTabViewImpl 7 | { 8 | public: 9 | DECLARE_WND_CLASS_EX(_T("TabBrowser_CustomTabView"), 0, COLOR_APPWORKSPACE) 10 | 11 | CToolBarCtrl m_wndTB; 12 | int m_cxTB; 13 | 14 | CString m_strTooltip; 15 | 16 | CCustomTabView() : m_cxTB(0) 17 | { } 18 | 19 | // Overrideables - add a toolbar next to the tab control 20 | bool CreateTabControl() 21 | { 22 | bool bRet = CTabViewImpl::CreateTabControl(); 23 | if(bRet) 24 | { 25 | DWORD dwStyle = (ATL_SIMPLE_TOOLBAR_STYLE | TBSTYLE_FLAT | CCS_NODIVIDER | CCS_NORESIZE | CCS_NOPARENTALIGN) & ~WS_VISIBLE; 26 | m_wndTB = AtlCreateSimpleToolBar(m_hWnd, IDR_TABTOOLBAR, FALSE, dwStyle); 27 | 28 | // BLOCK: set drop-down style for the window button 29 | { 30 | TBBUTTONINFO tbbi; 31 | tbbi.cbSize = sizeof(tbbi); 32 | tbbi.dwMask = TBIF_STYLE; 33 | tbbi.fsStyle = BTNS_BUTTON | BTNS_WHOLEDROPDOWN; 34 | m_wndTB.SetButtonInfo(ID_WINDOW_SHOW_VIEWS, &tbbi); 35 | } 36 | 37 | RECT rect = { 0 }; 38 | m_wndTB.GetItemRect(m_wndTB.GetButtonCount() - 1, &rect); 39 | m_cxTB = rect.right; 40 | 41 | CToolTipCtrl tt = m_tab.GetTooltips(); 42 | tt.SetMaxTipWidth(0); // we just want to use \n for a new line 43 | } 44 | 45 | return bRet; 46 | } 47 | 48 | void UpdateLayout() 49 | { 50 | RECT rect; 51 | GetClientRect(&rect); 52 | 53 | if(m_tab.IsWindow() && m_tab.IsWindowVisible()) 54 | m_tab.SetWindowPos(NULL, 0, 0, rect.right - rect.left - m_cxTB, m_cyTabHeight, SWP_NOZORDER); 55 | 56 | if(m_wndTB.IsWindow() && m_tab.IsWindowVisible()) 57 | m_wndTB.SetWindowPos(NULL, rect.right - m_cxTB, 0, m_cxTB, m_cyTabHeight, SWP_NOZORDER); 58 | 59 | if(m_nActivePage != -1) 60 | ::SetWindowPos(GetPageHWND(m_nActivePage), NULL, 0, m_cyTabHeight, rect.right - rect.left, rect.bottom - rect.top - m_cyTabHeight, SWP_NOZORDER); 61 | } 62 | 63 | void ShowTabControl(bool bShow) 64 | { 65 | m_tab.ShowWindow(bShow ? SW_SHOWNOACTIVATE : SW_HIDE); 66 | m_wndTB.ShowWindow(bShow ? SW_SHOWNOACTIVATE : SW_HIDE); 67 | } 68 | 69 | void UpdateTooltipText(LPNMTTDISPINFO pTTDI) 70 | { 71 | ATLASSERT(pTTDI != NULL); 72 | 73 | m_strTooltip = GetPageTitle(pTTDI->hdr.idFrom); 74 | 75 | CAxWindow wnd = GetPageHWND(pTTDI->hdr.idFrom); 76 | CComPtr spWebBrowser; 77 | HRESULT hRet = wnd.QueryControl(IID_IWebBrowser2, (void**)&spWebBrowser); 78 | hRet; // avoid level 4 warning 79 | ATLASSERT(SUCCEEDED(hRet)); 80 | if(spWebBrowser != NULL) 81 | { 82 | BSTR bstrURL; 83 | spWebBrowser->get_LocationURL(&bstrURL); 84 | m_strTooltip += _T("\n"); 85 | m_strTooltip += bstrURL; 86 | } 87 | 88 | pTTDI->lpszText = (LPTSTR)(LPCTSTR)m_strTooltip; 89 | } 90 | }; 91 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/OpenDlg.h: -------------------------------------------------------------------------------- 1 | // OpenDlg.h - COpenDlg class 2 | 3 | #pragma once 4 | 5 | 6 | class COpenDlg : public CDialogImpl 7 | { 8 | public: 9 | enum { IDD = IDD_OPEN }; 10 | 11 | CString m_strURL; 12 | bool m_bNewTab; 13 | 14 | COpenDlg(LPCTSTR lpstrURL) : m_bNewTab(false) 15 | { 16 | m_strURL = lpstrURL; 17 | } 18 | 19 | BEGIN_MSG_MAP(COpenDlg) 20 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 21 | COMMAND_ID_HANDLER(IDOK, OnOK) 22 | COMMAND_ID_HANDLER(IDCANCEL, OnCancel) 23 | END_MSG_MAP() 24 | 25 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 26 | { 27 | 28 | if(m_strURL.IsEmpty()) 29 | { 30 | m_bNewTab = true; 31 | CButton btnCheck = GetDlgItem(IDC_NEW_TAB); 32 | btnCheck.SetCheck(1); 33 | btnCheck.EnableWindow(FALSE); 34 | } 35 | else 36 | { 37 | CEdit edit = GetDlgItem(IDC_EDIT_URL); 38 | edit.SetWindowText(m_strURL); 39 | 40 | CButton btnCheck = GetDlgItem(IDC_NEW_TAB); 41 | btnCheck.SetCheck(m_bNewTab ? 1 : 0); 42 | } 43 | 44 | return TRUE; 45 | } 46 | 47 | LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 48 | { 49 | CEdit edit = GetDlgItem(IDC_EDIT_URL); 50 | int nLen = edit.GetWindowTextLength(); 51 | edit.GetWindowText(m_strURL.GetBuffer(nLen), nLen + 1); 52 | m_strURL.ReleaseBuffer(); 53 | 54 | CButton btnCheck = GetDlgItem(IDC_NEW_TAB); 55 | m_bNewTab = (btnCheck.GetCheck() != 0); 56 | 57 | EndDialog(wID); 58 | return 0; 59 | } 60 | 61 | LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 62 | { 63 | EndDialog(wID); 64 | return 0; 65 | } 66 | }; 67 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/TabBrowser.cpp: -------------------------------------------------------------------------------- 1 | // TabBrowser.cpp : main source file for TabBrowser.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | #include "resource.h" 14 | 15 | #include "BrowserView.h" 16 | #include "CustomTabView.h" 17 | #include "AddressCombo.h" 18 | #include "OpenDlg.h" 19 | #include "WindowsDlg.h" 20 | #include "AboutDlg.h" 21 | #include "MainFrm.h" 22 | 23 | CAppModule _Module; 24 | 25 | int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT) 26 | { 27 | CMessageLoop theLoop; 28 | _Module.AddMessageLoop(&theLoop); 29 | 30 | CMainFrame wndMain; 31 | 32 | if(wndMain.CreateEx() == NULL) 33 | { 34 | ATLTRACE(_T("Main window creation failed!\n")); 35 | return 0; 36 | } 37 | 38 | wndMain.ShowWindow(nCmdShow); 39 | 40 | int nRet = theLoop.Run(); 41 | 42 | _Module.RemoveMessageLoop(); 43 | return nRet; 44 | } 45 | 46 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow) 47 | { 48 | HRESULT hRes = ::CoInitialize(NULL); 49 | ATLASSERT(SUCCEEDED(hRes)); 50 | 51 | // this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used 52 | ::DefWindowProc(NULL, 0, 0, 0L); 53 | 54 | AtlInitCommonControls(ICC_COOL_CLASSES | ICC_BAR_CLASSES | ICC_USEREX_CLASSES); 55 | 56 | hRes = _Module.Init(NULL, hInstance); 57 | ATLASSERT(SUCCEEDED(hRes)); 58 | 59 | AtlAxWinInit(); 60 | 61 | int nRet = Run(lpstrCmdLine, nCmdShow); 62 | 63 | _Module.Term(); 64 | ::CoUninitialize(); 65 | 66 | return nRet; 67 | } 68 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/TabBrowser.h: -------------------------------------------------------------------------------- 1 | // TabBrowser.h 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/TabBrowser_2005.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual Studio 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TabBrowser", "TabBrowser_2005.vcproj", "{4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Debug|Win32.Build.0 = Debug|Win32 14 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Release|Win32.ActiveCfg = Release|Win32 15 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/TabBrowser_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TabBrowser", "TabBrowser_2010.vcxproj", "{4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Debug|Win32.Build.0 = Debug|Win32 13 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Release|Win32.ActiveCfg = Release|Win32 14 | {4F93E0CE-7116-44A2-AEF1-9A6DE07C7CE0}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/TabBrowser_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {537c2178-2014-45e7-b63a-10017a925a94} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {fcf8d2e2-6c7d-48d7-b656-735eedf22b64} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {bdaee16e-d54a-4b27-99b5-f4791be8de57} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | Header Files 31 | 32 | 33 | Header Files 34 | 35 | 36 | Header Files 37 | 38 | 39 | Header Files 40 | 41 | 42 | Header Files 43 | 44 | 45 | Header Files 46 | 47 | 48 | Header Files 49 | 50 | 51 | Header Files 52 | 53 | 54 | 55 | 56 | Resource Files 57 | 58 | 59 | Resource Files 60 | 61 | 62 | Resource Files 63 | 64 | 65 | Resource Files 66 | 67 | 68 | Resource Files 69 | 70 | 71 | Resource Files 72 | 73 | 74 | 75 | 76 | Resource Files 77 | 78 | 79 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/res/Go.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/TabBrowser/res/Go.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/res/PageImage.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/TabBrowser/res/PageImage.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/res/TabBrowser.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/TabBrowser/res/TabBrowser.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/res/TabToolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/TabBrowser/res/TabToolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/TabBrowser/res/Toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/res/Toolbar_Big.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/TabBrowser/res/Toolbar_Big.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by TabBrowser.RC 4 | // 5 | 6 | #define IDD_ABOUTBOX 100 7 | #define IDR_MAINFRAME 128 8 | #define IDS_OPEN_ERROR 129 9 | #define IDD_OPEN 201 10 | #define IDD_WINDOWS 202 11 | #define IDR_TABTOOLBAR 203 12 | #define IDB_PAGEIMAGE 204 13 | #define IDR_MAINFRAME_BIG 205 14 | #define IDR_GO 207 15 | #define IDR_TOOLBAR_MENU 210 16 | #define IDC_EDIT_URL 1000 17 | #define IDC_LIST1 1001 18 | #define IDC_ACTIVATE 1002 19 | #define IDC_CLOSEWINDOWS 1003 20 | #define IDC_NEW_TAB 1004 21 | #define ID_LINKS_FIRST 31000 22 | #define ID_LINKS_MICROSOFT 31000 23 | #define ID_LINKS_MSDN 31001 24 | #define ID_LINKS_LIVE 31002 25 | #define ID_LINKS_UPDATE 31003 26 | #define ID_LINKS_WTL 31004 27 | #define ID_LINKS_LAST 31099 28 | #define ID_LINKS_URL_FIRST 31100 29 | #define ID_LINKS_URL_MICROSOFT 31100 30 | #define ID_LINKS_URL_MSDN 31101 31 | #define ID_LINKS_URL_LIVE 31102 32 | #define ID_LINKS_URL_UPDATE 31103 33 | #define ID_LINKS_URL_WTL 31104 34 | #define ID_LINKS_URL_LAST 31199 35 | #define ID_WINDOW_CLOSE 32773 36 | #define ID_WINDOW_CLOSE_ALL 32776 37 | #define ID_BROWSER_BACK 32777 38 | #define ID_BROWSER_FORWARD 32778 39 | #define ID_BROWSER_REFRESH 32779 40 | #define ID_BROWSER_STOP 32782 41 | #define ID_WINDOW_SHOW_VIEWS 32783 42 | #define ID_BROWSER_HOME 32791 43 | #define ID_BROWSER_SEARCH 32795 44 | #define ID_VIEW_ADDRESS_BAR 32796 45 | #define ID_GO 32797 46 | #define IDS_LOADING 32798 47 | #define IDS_ADDRESS 32799 48 | #define IDS_LINKS 32800 49 | #define IDS_BLANK_URL 32801 50 | #define IDS_BLANK_TITLE 32802 51 | #define ID_VIEW_LOCK_TOOLBARS 32807 52 | #define ID_VIEW_LINKS_BAR 32808 53 | 54 | // Next default values for new objects 55 | // 56 | #ifdef APSTUDIO_INVOKED 57 | #ifndef APSTUDIO_READONLY_SYMBOLS 58 | #define _APS_NEXT_RESOURCE_VALUE 211 59 | #define _APS_NEXT_COMMAND_VALUE 32810 60 | #define _APS_NEXT_CONTROL_VALUE 1005 61 | #define _APS_NEXT_SYMED_VALUE 101 62 | #endif 63 | #endif 64 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // TabBrowser.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/TabBrowser/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | // Change these values to use different versions 9 | #define WINVER 0x0501 10 | #define _WIN32_WINNT 0x0501 11 | #define _WIN32_IE 0x0600 12 | #define _RICHEDIT_VER 0x0300 13 | 14 | #define _WTL_USE_CSTRING 15 | 16 | #include 17 | #include 18 | 19 | extern CAppModule _Module; 20 | 21 | #include 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | #if defined _M_IX86 28 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 29 | #elif defined _M_IA64 30 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 31 | #elif defined _M_X64 32 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 33 | #else 34 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 35 | #endif 36 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/ExplorerCombo.h: -------------------------------------------------------------------------------- 1 | // explorercombo.h 2 | 3 | #ifndef __EXPLORERCOMBO_H__ 4 | #define __EXPLORERCOMBO_H__ 5 | 6 | #pragma once 7 | 8 | #include "resource.h" 9 | 10 | 11 | class CExplorerCombo : public CWindowImpl 12 | { 13 | public: 14 | enum 15 | { 16 | m_cxGap = 2, 17 | m_cxMinDropWidth = 200 18 | }; 19 | 20 | CComboBox m_cb; 21 | CToolBarCtrl m_tb; 22 | SIZE m_sizeTB; 23 | 24 | DECLARE_WND_SUPERCLASS(_T("WtlExplorer_ComboBox"), CComboBoxEx::GetWndClassName()) 25 | 26 | BEGIN_MSG_MAP(CExplorerCombo) 27 | MESSAGE_HANDLER(WM_CREATE, OnCreate) 28 | MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBkgnd) 29 | MESSAGE_HANDLER(WM_WINDOWPOSCHANGING, OnWindowPosChanging) 30 | END_MSG_MAP() 31 | 32 | LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& /*bHandled*/) 33 | { 34 | // let the combo box initialize itself 35 | LRESULT lRet = DefWindowProc(uMsg, wParam, lParam); 36 | 37 | if(lRet != -1) 38 | { 39 | // adjust the drop-down width 40 | m_cb = GetComboCtrl(); 41 | m_cb.SetDroppedWidth(m_cxMinDropWidth); 42 | 43 | // create a toolbar for the GO button 44 | m_tb = CFrameWindowImplBase<>::CreateSimpleToolBarCtrl(m_hWnd, IDT_GO1, FALSE, ATL_SIMPLE_TOOLBAR_PANE_STYLE | TBSTYLE_LIST); 45 | LPCTSTR lpszStrings = _T("Go\0"); 46 | m_tb.AddStrings(lpszStrings); 47 | 48 | RECT rect; 49 | m_tb.GetItemRect(0, &rect); 50 | m_sizeTB.cx = rect.right; 51 | m_sizeTB.cy = rect.bottom; 52 | } 53 | 54 | return lRet; 55 | } 56 | 57 | LRESULT OnEraseBkgnd(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled) 58 | { 59 | CDCHandle dc = (HDC)wParam; 60 | CWindow wndParent = GetParent(); 61 | 62 | // Forward this to the parent window, rebar bands are transparent 63 | POINT pt = { 0, 0 }; 64 | MapWindowPoints(wndParent, &pt, 1); 65 | dc.OffsetWindowOrg(pt.x, pt.y, &pt); 66 | LRESULT lRet = wndParent.SendMessage(WM_ERASEBKGND, (WPARAM)dc.m_hDC); 67 | dc.SetWindowOrg(pt.x, pt.y); 68 | 69 | bHandled = (lRet != 0); 70 | return lRet; 71 | } 72 | 73 | LRESULT OnWindowPosChanging(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) 74 | { 75 | if(m_tb.m_hWnd == NULL) 76 | { 77 | bHandled = FALSE; 78 | return 1; 79 | } 80 | 81 | // copy the WINDOWPOS struct and adjust for the GO button 82 | WINDOWPOS wp = *(LPWINDOWPOS)lParam; 83 | wp.cx -= m_sizeTB.cx + m_cxGap; 84 | LRESULT lRet = DefWindowProc(uMsg, wParam, (LPARAM)&wp); 85 | 86 | // paint below the GO button 87 | RECT rcGo = { wp.cx, 0, wp.cx + m_sizeTB.cx + m_cxGap, wp.cy }; 88 | InvalidateRect(&rcGo); 89 | 90 | // center the GO button relative to the combo box 91 | RECT rcCombo; 92 | m_cb.GetWindowRect(&rcCombo); 93 | int y = (rcCombo.bottom - rcCombo.top - m_sizeTB.cy) / 2; 94 | // if(y < 0) 95 | // y = 0; 96 | 97 | // position the GO button on the right 98 | m_tb.SetWindowPos(NULL, wp.cx + m_cxGap, y, m_sizeTB.cx, m_sizeTB.cy, SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOOWNERZORDER); 99 | 100 | return lRet; 101 | } 102 | }; 103 | 104 | #endif //__EXPLORERCOMBO_H__ 105 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/ShellMgr.h: -------------------------------------------------------------------------------- 1 | // shellmgr.h 2 | 3 | #ifndef __SHELLMGR_H__ 4 | #define __SHELLMGR_H__ 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | 11 | 12 | class CShellItemIDList 13 | { 14 | public: 15 | LPITEMIDLIST m_pidl; 16 | 17 | CShellItemIDList(LPITEMIDLIST pidl = NULL) : m_pidl(pidl) 18 | { } 19 | 20 | ~CShellItemIDList() 21 | { 22 | ::CoTaskMemFree(m_pidl); 23 | } 24 | 25 | void Attach(LPITEMIDLIST pidl) 26 | { 27 | ::CoTaskMemFree(m_pidl); 28 | m_pidl = pidl; 29 | } 30 | 31 | LPITEMIDLIST Detach() 32 | { 33 | LPITEMIDLIST pidl = m_pidl; 34 | m_pidl = NULL; 35 | return pidl; 36 | } 37 | 38 | bool IsNull() const 39 | { 40 | return (m_pidl == NULL); 41 | } 42 | 43 | CShellItemIDList& operator =(LPITEMIDLIST pidl) 44 | { 45 | Attach(pidl); 46 | return *this; 47 | } 48 | 49 | LPITEMIDLIST* operator &() 50 | { 51 | return &m_pidl; 52 | } 53 | 54 | operator LPITEMIDLIST() 55 | { 56 | return m_pidl; 57 | } 58 | 59 | operator LPCTSTR() 60 | { 61 | return (LPCTSTR)m_pidl; 62 | } 63 | 64 | operator LPTSTR() 65 | { 66 | return (LPTSTR)m_pidl; 67 | } 68 | 69 | void CreateEmpty(UINT cbSize) 70 | { 71 | ::CoTaskMemFree(m_pidl); 72 | m_pidl = (LPITEMIDLIST)::CoTaskMemAlloc(cbSize); 73 | ATLASSERT(m_pidl != NULL); 74 | if(m_pidl != NULL) 75 | memset(m_pidl, 0, cbSize); 76 | } 77 | }; 78 | 79 | 80 | typedef struct _LVItemData 81 | { 82 | _LVItemData() : ulAttribs(0) 83 | { } 84 | 85 | CComPtr spParentFolder; 86 | 87 | CShellItemIDList lpi; 88 | ULONG ulAttribs; 89 | 90 | } LVITEMDATA, *LPLVITEMDATA; 91 | 92 | typedef struct _TVItemData 93 | { 94 | _TVItemData() 95 | { } 96 | 97 | CComPtr spParentFolder; 98 | 99 | CShellItemIDList lpi; 100 | CShellItemIDList lpifq; 101 | 102 | } TVITEMDATA, *LPTVITEMDATA; 103 | 104 | 105 | class CShellMgr 106 | { 107 | public: 108 | int GetIconIndex(LPITEMIDLIST lpi, UINT uFlags); 109 | 110 | void GetNormalAndSelectedIcons(LPITEMIDLIST lpifq, LPTVITEM lptvitem); 111 | 112 | LPITEMIDLIST ConcatPidls(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2); 113 | 114 | BOOL GetName (LPSHELLFOLDER lpsf, LPITEMIDLIST lpi, DWORD dwFlags, LPTSTR lpFriendlyName); 115 | LPITEMIDLIST Next(LPCITEMIDLIST pidl); 116 | UINT GetSize(LPCITEMIDLIST pidl); 117 | LPITEMIDLIST CopyITEMID(LPITEMIDLIST lpi); 118 | 119 | LPITEMIDLIST GetFullyQualPidl(LPSHELLFOLDER lpsf, LPITEMIDLIST lpi); 120 | 121 | BOOL DoContextMenu(HWND hwnd, LPSHELLFOLDER lpsfParent, LPITEMIDLIST lpi, POINT point); 122 | }; 123 | 124 | #endif //__SHELLMGR_H__ 125 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/WTLExplorer_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WTLExplorer", "WTLExplorer_2005.vcproj", "{37D083DA-69C9-45DE-B9EC-4E05F285FAD9}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Debug|Win32.Build.0 = Debug|Win32 13 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Release|Win32.ActiveCfg = Release|Win32 14 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/WTLExplorer_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WTLExplorer", "WTLExplorer_2010.vcxproj", "{37D083DA-69C9-45DE-B9EC-4E05F285FAD9}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Debug|Win32.Build.0 = Debug|Win32 13 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Release|Win32.ActiveCfg = Release|Win32 14 | {37D083DA-69C9-45DE-B9EC-4E05F285FAD9}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/WTLExplorer_2010.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {1eabc072-34ec-413c-954b-8f1e2bd3eaa5} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | {0961c103-85e3-4ced-86e9-b7c3b656f00f} 10 | h;hpp;hxx;hm;inl 11 | 12 | 13 | {cf9fa156-c943-469f-9b94-b00c0f77c766} 14 | ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | Source Files 26 | 27 | 28 | Source Files 29 | 30 | 31 | 32 | 33 | Source Files 34 | 35 | 36 | 37 | 38 | Header Files 39 | 40 | 41 | Header Files 42 | 43 | 44 | Header Files 45 | 46 | 47 | Header Files 48 | 49 | 50 | Header Files 51 | 52 | 53 | 54 | 55 | Resource Files 56 | 57 | 58 | Resource Files 59 | 60 | 61 | Resource Files 62 | 63 | 64 | Resource Files 65 | 66 | 67 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/WTLExplorer/res/Toolbar.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/res/WTLExplorer.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/WTLExplorer/res/WTLExplorer.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/res/go.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/WTLExplorer/res/go.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/res/go1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/WTLExplorer/res/go1.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by WTLExplorer.rc 4 | // 5 | #define ID_COMBO_GO 101 6 | #define ID_VIEW_ICONS 102 7 | #define ID_VIEW_DETAILS 103 8 | #define ID_VIEW_SMALL_ICONS 104 9 | #define ID_VIEW_LIST 105 10 | #define ID_VIEW_SORT_NAME 106 11 | #define ID_VIEW_SORT_SIZE 107 12 | #define ID_VIEW_SORT_TYPE 108 13 | #define ID_VIEW_SORT_TIME 109 14 | #define ID_VIEW_SORT_ATTR 110 15 | #define IDR_MAINFRAME 128 16 | #define IDT_GO 202 17 | #define IDT_GO1 203 18 | #define ID_FILE_NEW_WINDOW 32771 19 | #define ID_VIEW_ADDRESS_BAR 32772 20 | 21 | // Next default values for new objects 22 | // 23 | #ifdef APSTUDIO_INVOKED 24 | #ifndef APSTUDIO_READONLY_SYMBOLS 25 | #define _APS_NEXT_RESOURCE_VALUE 201 26 | #define _APS_NEXT_COMMAND_VALUE 32773 27 | #define _APS_NEXT_CONTROL_VALUE 1000 28 | #define _APS_NEXT_SYMED_VALUE 101 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // WTLExplorer.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/WTLExplorer/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #ifndef __STDAFX_H__ 7 | #define __STDAFX_H__ 8 | 9 | #pragma once 10 | 11 | // Change these values to use different versions 12 | #define WINVER 0x0501 13 | #define _WIN32_WINNT 0x0501 14 | #define _WIN32_IE 0x0600 15 | #define _RICHEDIT_VER 0x0300 16 | 17 | #include 18 | #include 19 | 20 | extern CAppModule _Module; 21 | 22 | #include 23 | 24 | #if defined _M_IX86 25 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 26 | #elif defined _M_IA64 27 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 28 | #elif defined _M_X64 29 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 30 | #else 31 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 32 | #endif 33 | 34 | #endif //__STDAFX_H__ 35 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizard.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __TestWizard_h__ 3 | #define __TestWizard_h__ 4 | 5 | #include "TestWizardInfo.h" 6 | 7 | class CTestWizard 8 | { 9 | protected: 10 | // Data members 11 | CTestWizardInfo m_testWizardInfo; 12 | 13 | public: 14 | // Constructors 15 | CTestWizard(); 16 | 17 | // General Methods 18 | bool ExecuteWizard(); 19 | 20 | void InitializeDefaultValues(); 21 | void StoreDefaultValues(); 22 | 23 | bool GetStringValue(CRegKeyEx& regKey, LPCTSTR valueName, CString& value); 24 | bool GetBoolValue(CRegKeyEx& regKey, LPCTSTR valueName, bool& value); 25 | 26 | bool SetStringValue(CRegKeyEx& regKey, LPCTSTR valueName, LPCTSTR value); 27 | bool SetBoolValue(CRegKeyEx& regKey, LPCTSTR valueName, bool value); 28 | }; 29 | 30 | #endif // __TestWizard_h__ 31 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardCompletionPage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardCompletionPage.cpp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardCompletionPage.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __TestWizardCompletionPage_h__ 3 | #define __TestWizardCompletionPage_h__ 4 | 5 | #include "TestWizardInfo.h" 6 | 7 | class CTestWizardCompletionPage : 8 | public CWizard97ExteriorPageImpl, 9 | public CTestWizardInfoRef 10 | { 11 | protected: 12 | // Typedefs 13 | typedef CTestWizardCompletionPage thisClass; 14 | typedef CWizard97ExteriorPageImpl baseClass; 15 | 16 | // Data members 17 | CFont m_fontSummary; 18 | CRichEditCtrl m_editSummary; 19 | 20 | public: 21 | // Constructors 22 | CTestWizardCompletionPage(_U_STRINGorID title = (LPCTSTR)NULL) : 23 | baseClass(title) 24 | { } 25 | 26 | // Message Handlers 27 | enum { IDD = IDD_WIZ97_COMPLETION }; 28 | BEGIN_MSG_MAP(thisClass) 29 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 30 | 31 | CHAIN_MSG_MAP(baseClass) 32 | END_MSG_MAP() 33 | 34 | LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 35 | 36 | // Helpers 37 | void InitializeFont(void); 38 | void InitializeControls(void); 39 | void InitializeValues(void); 40 | void UpdateSummary(void); 41 | 42 | // Overrides from base class 43 | int OnSetActive(); 44 | int OnWizardBack(); 45 | int OnWizardFinish(); 46 | void OnHelp(); 47 | }; 48 | 49 | #endif // __TestWizardCompletionPage_h__ 50 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardOutputPage.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __TestWizardOutputPage_h__ 3 | #define __TestWizardOutputPage_h__ 4 | 5 | #include "TestWizardInfo.h" 6 | 7 | class CTestWizardOutputPage : 8 | public CWizard97InteriorPageImpl, 9 | public CTestWizardInfoRef 10 | { 11 | protected: 12 | // Typedefs 13 | typedef CTestWizardOutputPage thisClass; 14 | typedef CWizard97InteriorPageImpl baseClass; 15 | 16 | // Data members 17 | CButton m_radioCopyToClipboard; 18 | CButton m_radioSendEmail; 19 | CButton m_radioSaveToFile; 20 | 21 | CStatic m_labelSaveFileName; 22 | CEdit m_editFileName; 23 | CButton m_buttonBrowseFile; 24 | CStatic m_labelFileEncoding; 25 | CComboBox m_comboFileEncoding; 26 | 27 | public: 28 | // Constructor 29 | CTestWizardOutputPage(_U_STRINGorID title = (LPCTSTR)NULL) : 30 | baseClass(title) 31 | { 32 | baseClass::SetHeaderTitle(_T("Output File List")); 33 | baseClass::SetHeaderSubTitle(_T("Please choose how to output the file list.")); 34 | } 35 | 36 | // Message Handlers 37 | enum { IDD = IDD_WIZ97_OUTPUT }; 38 | BEGIN_MSG_MAP(thisClass) 39 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 40 | MESSAGE_HANDLER(WM_DESTROY, OnDestroy) 41 | 42 | COMMAND_HANDLER(IDC_RADIO_COPYTOCLIPBOARD, BN_CLICKED, OnClickCopyToClipboard) 43 | COMMAND_HANDLER(IDC_RADIO_SENDEMAIL, BN_CLICKED, OnClickSendEmail) 44 | COMMAND_HANDLER(IDC_RADIO_SAVETOFILE, BN_CLICKED, OnClickSaveToFile) 45 | COMMAND_HANDLER(IDC_BTN_FILEBROWSE, BN_CLICKED, OnClickBrowseFileName) 46 | 47 | CHAIN_MSG_MAP(baseClass) 48 | END_MSG_MAP() 49 | 50 | LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 51 | LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 52 | 53 | LRESULT OnClickCopyToClipboard(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 54 | LRESULT OnClickSendEmail(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 55 | LRESULT OnClickSaveToFile(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 56 | LRESULT OnClickBrowseFileName(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 57 | 58 | // Helpers 59 | void InitializeControls(void); 60 | void UninitializeControls(void); 61 | void InitializeValues(void); 62 | bool StoreValues(void); 63 | 64 | // Overrides from base class 65 | int OnSetActive(); 66 | int OnWizardNext(); 67 | int OnWizardBack(); 68 | void OnHelp(); 69 | 70 | }; 71 | 72 | #endif // __TestWizardOutputPage_h__ 73 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardPathFilterPage.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __TestWizardPathFilterPage_h__ 3 | #define __TestWizardPathFilterPage_h__ 4 | 5 | #include "TestWizardInfo.h" 6 | 7 | class CTestWizardPathFilterPage : 8 | public CWizard97InteriorPageImpl, 9 | public CTestWizardInfoRef 10 | { 11 | protected: 12 | // Typedefs 13 | typedef CTestWizardPathFilterPage thisClass; 14 | typedef CWizard97InteriorPageImpl baseClass; 15 | 16 | // Data members 17 | CStatic m_labelPath; 18 | CEdit m_editPath; 19 | CButton m_buttonBrowsePath; 20 | 21 | CButton m_radioRecurse; 22 | CButton m_radioNoRecurse; 23 | 24 | CStatic m_labelFilter; 25 | CButton m_radioFilterAll; 26 | CButton m_radioFilterCustom; 27 | CEdit m_editFilterCustom; 28 | 29 | public: 30 | // Constructor 31 | CTestWizardPathFilterPage(_U_STRINGorID title = (LPCTSTR)NULL) : 32 | baseClass(title) 33 | { 34 | baseClass::SetHeaderTitle(_T("Path and Filter to Find Files")); 35 | baseClass::SetHeaderSubTitle(_T("Select the path and filter identifying a list of files.")); 36 | } 37 | 38 | // Message Handlers 39 | enum { IDD = IDD_WIZ97_PATHFILTER }; 40 | BEGIN_MSG_MAP(thisClass) 41 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 42 | MESSAGE_HANDLER(WM_DESTROY, OnDestroy) 43 | 44 | COMMAND_HANDLER(IDC_RADIO_FILTER_ALL, BN_CLICKED, OnClickFilterAll) 45 | COMMAND_HANDLER(IDC_RADIO_FILTER_CUSTOM, BN_CLICKED, OnClickFilterCustom) 46 | COMMAND_HANDLER(IDC_BTN_BROWSEPATH, BN_CLICKED, OnClickBrowsePath) 47 | 48 | CHAIN_MSG_MAP(baseClass) 49 | END_MSG_MAP() 50 | 51 | LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 52 | LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 53 | 54 | LRESULT OnClickFilterAll(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 55 | LRESULT OnClickFilterCustom(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 56 | LRESULT OnClickBrowsePath(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 57 | LRESULT OnClickBrowseDefaultPath(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 58 | 59 | // Helpers 60 | void InitializeControls(void); 61 | void UninitializeControls(void); 62 | void InitializeValues(void); 63 | bool StoreValues(void); 64 | 65 | // Overrides from base class 66 | int OnSetActive(); 67 | int OnWizardNext(); 68 | int OnWizardBack(); 69 | void OnHelp(); 70 | }; 71 | 72 | #endif // __TestWizardPathFilterPage_h__ 73 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardSheet.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "stdafx.h" 3 | #include "TestWizardSheet.h" 4 | 5 | CTestWizardSheet::CTestWizardSheet(CTestWizardInfo* pTestWizardInfo, UINT uStartPage, HWND hWndParent) : 6 | baseClass(_T("Test Wizard"), IDB_WIZ97_HEADER, IDB_WIZ97_WATERMARK, uStartPage, hWndParent), 7 | infoRefClass(pTestWizardInfo) 8 | { 9 | m_pageWelcome.SetTestWizardInfo(pTestWizardInfo); 10 | m_pagePathFiler.SetTestWizardInfo(pTestWizardInfo); 11 | m_pageFilePreview.SetTestWizardInfo(pTestWizardInfo); 12 | m_pageOutput.SetTestWizardInfo(pTestWizardInfo); 13 | m_pageCompletion.SetTestWizardInfo(pTestWizardInfo); 14 | 15 | this->AddPage(m_pageWelcome); 16 | this->AddPage(m_pagePathFiler); 17 | this->AddPage(m_pageFilePreview); 18 | this->AddPage(m_pageOutput); 19 | this->AddPage(m_pageCompletion); 20 | } 21 | 22 | LRESULT CTestWizardSheet::OnHelp(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/) 23 | { 24 | // We get here when the user hits F1 while on a page, 25 | // or uses the "What's This" button then clicks on a control. 26 | // We can also handle WM_HELP on the page for the cases 27 | // when a control on the dialog has focus. If the page doesn't handle WM_HELP, 28 | // then the sheet is given a chance to handle it (and we end up here). 29 | 30 | LPHELPINFO helpInfo = (LPHELPINFO)lParam; 31 | if(helpInfo) 32 | { 33 | if(helpInfo->dwContextId != 0) 34 | { 35 | // If dwContextId is set, then the control with 36 | // focus has a help context ID, so we'll show context help. 37 | m_pTestWizardInfo->ShowContextHelp(helpInfo); 38 | } 39 | else 40 | { 41 | int currentIndex = this->GetActiveIndex(); 42 | if(currentIndex >= 0) 43 | { 44 | int pageDialogId = this->IndexToId(currentIndex); 45 | if(pageDialogId != 0) 46 | { 47 | m_pTestWizardInfo->ShowHelp(pageDialogId, helpInfo->iCtrlId); 48 | } 49 | } 50 | } 51 | } 52 | 53 | return 0; 54 | } 55 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardSheet.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __TestWizardSheet_h__ 3 | #define __TestWizardSheet_h__ 4 | 5 | 6 | #include "TestWizardWelcomePage.h" 7 | #include "TestWizardPathFilterPage.h" 8 | #include "TestWizardFilePreviewPage.h" 9 | #include "TestWizardOutputPage.h" 10 | #include "TestWizardCompletionPage.h" 11 | 12 | class CTestWizardSheet : 13 | public CWizard97SheetImpl, 14 | public CTestWizardInfoRef 15 | { 16 | protected: 17 | // Typedefs 18 | typedef CTestWizardSheet thisClass; 19 | typedef CWizard97SheetImpl baseClass; 20 | typedef CTestWizardInfoRef infoRefClass; 21 | 22 | // Data members 23 | CTestWizardWelcomePage m_pageWelcome; 24 | CTestWizardPathFilterPage m_pagePathFiler; 25 | CTestWizardFilePreviewPage m_pageFilePreview; 26 | CTestWizardOutputPage m_pageOutput; 27 | CTestWizardCompletionPage m_pageCompletion; 28 | 29 | public: 30 | // Constructors 31 | CTestWizardSheet(CTestWizardInfo* pTestWizardInfo, UINT uStartPage = 0, HWND hWndParent = NULL); 32 | 33 | // Message Handlers 34 | BEGIN_MSG_MAP(thisClass) 35 | MESSAGE_HANDLER(WM_HELP, OnHelp) 36 | CHAIN_MSG_MAP(baseClass) 37 | END_MSG_MAP() 38 | 39 | LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 40 | }; 41 | 42 | #endif // __TestWizardSheet_h__ 43 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardWelcomePage.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "stdafx.h" 3 | #include "TestWizardWelcomePage.h" 4 | 5 | LRESULT CTestWizardWelcomePage::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 6 | { 7 | this->InitializeControls(); 8 | this->InitializeValues(); 9 | 10 | return 1; 11 | } 12 | 13 | void CTestWizardWelcomePage::InitializeControls(void) 14 | { 15 | CFontHandle fontExteriorPageTitleFont(baseClass::GetExteriorPageTitleFont()); 16 | CFontHandle fontBulletFont(baseClass::GetBulletFont()); 17 | 18 | CWindow title = this->GetDlgItem(IDC_WIZ97_EXTERIOR_TITLE); 19 | CWindow bullet1 = this->GetDlgItem(IDC_WIZ97_BULLET1); 20 | CWindow bullet2 = this->GetDlgItem(IDC_WIZ97_BULLET2); 21 | CWindow bullet3 = this->GetDlgItem(IDC_WIZ97_BULLET3); 22 | CWindow bullet4 = this->GetDlgItem(IDC_WIZ97_BULLET4); 23 | m_buttonSkipWelcome = this->GetDlgItem(IDC_WIZ97_WELCOME_NOTAGAIN); 24 | 25 | title.SetFont(fontExteriorPageTitleFont); 26 | bullet1.SetFont(fontBulletFont); 27 | bullet2.SetFont(fontBulletFont); 28 | bullet3.SetFont(fontBulletFont); 29 | bullet4.SetFont(fontBulletFont); 30 | } 31 | 32 | void CTestWizardWelcomePage::InitializeValues(void) 33 | { 34 | bool showWelcome = m_pTestWizardInfo->GetShowWelcome(); 35 | m_buttonSkipWelcome.SetCheck(showWelcome ? BST_UNCHECKED : BST_CHECKED); 36 | } 37 | 38 | bool CTestWizardWelcomePage::StoreValues(void) 39 | { 40 | m_pTestWizardInfo->SetShowWelcome(m_buttonSkipWelcome.GetCheck() == BST_UNCHECKED); 41 | return true; 42 | } 43 | 44 | // Overrides from base class 45 | int CTestWizardWelcomePage::OnSetActive() 46 | { 47 | this->SetWizardButtons(PSWIZB_NEXT); 48 | 49 | // 0 = allow activate 50 | // -1 = go back to page that was active 51 | // page ID = jump to page 52 | int result = 0; 53 | 54 | if(m_allowWelcomeToHide) 55 | { 56 | // Have it so that the welcome page is only hidden on 57 | // the first access, but is available if the user goes 58 | // "back" to visit it. 59 | m_allowWelcomeToHide = false; 60 | if(m_buttonSkipWelcome.GetCheck() == BST_CHECKED) 61 | { 62 | result = IDD_WIZ97_PATHFILTER; 63 | } 64 | } 65 | 66 | return result; 67 | } 68 | 69 | int CTestWizardWelcomePage::OnWizardNext() 70 | { 71 | bool success = this->StoreValues(); 72 | if(!success) 73 | { 74 | // Any errors are already reported, and if appropriate, 75 | // the control that needs attention has been given focus. 76 | return -1; 77 | } 78 | 79 | // 0 = goto next page 80 | // -1 = prevent page change 81 | // >0 = jump to page by dlg ID 82 | 83 | return m_pTestWizardInfo->FindNextPage(IDD); 84 | } 85 | 86 | void CTestWizardWelcomePage::OnHelp() 87 | { 88 | m_pTestWizardInfo->ShowHelp(IDD); 89 | } 90 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard/TestWizardWelcomePage.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __TestWizardWelcomePage_h__ 3 | #define __TestWizardWelcomePage_h__ 4 | 5 | #include "TestWizardInfo.h" 6 | 7 | class CTestWizardWelcomePage : 8 | public CWizard97ExteriorPageImpl, 9 | public CTestWizardInfoRef 10 | { 11 | protected: 12 | // Typedefs 13 | typedef CTestWizardWelcomePage thisClass; 14 | typedef CWizard97ExteriorPageImpl baseClass; 15 | 16 | // Data members 17 | CButton m_buttonSkipWelcome; 18 | bool m_allowWelcomeToHide; 19 | 20 | public: 21 | // Constructors 22 | CTestWizardWelcomePage(_U_STRINGorID title = (LPCTSTR)NULL) : 23 | baseClass(title), 24 | m_allowWelcomeToHide(true) 25 | { } 26 | 27 | // Message Handlers 28 | enum { IDD = IDD_WIZ97_WELCOME }; 29 | BEGIN_MSG_MAP(thisClass) 30 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 31 | 32 | CHAIN_MSG_MAP(baseClass) 33 | END_MSG_MAP() 34 | 35 | LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 36 | 37 | // Helper methods 38 | void InitializeControls(void); 39 | void InitializeValues(void); 40 | bool StoreValues(void); 41 | 42 | // Overrides from base class 43 | int OnSetActive(); 44 | int OnWizardNext(); 45 | void OnHelp(); 46 | }; 47 | 48 | #endif // __TestWizardWelcomePage_h__ 49 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard97Test.cpp: -------------------------------------------------------------------------------- 1 | // Wizard97Test.cpp : main source file for Wizard97Test.exe 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include "resource.h" 7 | 8 | #include "Wizard\TestWizard.h" 9 | 10 | CAppModule _Module; 11 | 12 | 13 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR /*lpstrCmdLine*/, int /*nCmdShow*/) 14 | { 15 | HRESULT hRes = ::OleInitialize(NULL); 16 | ATLASSERT(SUCCEEDED(hRes)); 17 | 18 | // this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used 19 | ::DefWindowProc(NULL, 0, 0, 0L); 20 | 21 | AtlInitCommonControls( 22 | ICC_WIN95_CLASSES | 23 | ICC_DATE_CLASSES | 24 | ICC_USEREX_CLASSES | 25 | ICC_COOL_CLASSES | 26 | ICC_PAGESCROLLER_CLASS | 27 | ICC_NATIVEFNTCTL_CLASS); 28 | 29 | // We use a RichEdit control 30 | HINSTANCE hInstRich = ::LoadLibrary(CRichEditCtrl::GetLibraryName()); 31 | ATLASSERT(hInstRich != NULL); 32 | 33 | hRes = _Module.Init(NULL, hInstance); 34 | ATLASSERT(SUCCEEDED(hRes)); 35 | 36 | int nRet = 0; 37 | // BLOCK: Run application 38 | { 39 | CTestWizard wizard; 40 | wizard.ExecuteWizard(); 41 | } 42 | 43 | ::FreeLibrary(hInstRich); 44 | 45 | _Module.Term(); 46 | ::OleUninitialize(); 47 | 48 | return nRet; 49 | } 50 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard97Test.h: -------------------------------------------------------------------------------- 1 | // Wizard97Test.h 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard97Test_2005.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Wizard97Test", "Wizard97Test_2005.vcproj", "{AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Debug|Win32.Build.0 = Debug|Win32 13 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Release|Win32.ActiveCfg = Release|Win32 14 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | GlobalSection(DPCodeReviewSolutionGUID) = preSolution 20 | DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000} 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/Wizard97Test_2010.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2010 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Wizard97Test", "Wizard97Test_2010.vcxproj", "{AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Debug|Win32.ActiveCfg = Debug|Win32 12 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Debug|Win32.Build.0 = Debug|Win32 13 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Release|Win32.ActiveCfg = Release|Win32 14 | {AADB8628-DC1E-4AC9-ABE6-0C692A68F56F}.Release|Win32.Build.0 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | GlobalSection(DPCodeReviewSolutionGUID) = preSolution 20 | DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000} 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/Context.h: -------------------------------------------------------------------------------- 1 | #include "..\resource.hm" 2 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/Context.txt: -------------------------------------------------------------------------------- 1 | .topic HIDC_BTN_BROWSEPATH 2 | Browse to choose a root directory 3 | 4 | .topic HIDC_EDIT_FILTER 5 | A filename or wildcard to use when searching 6 | 7 | .topic HIDC_EDIT_PATH 8 | The root directory to start the search 9 | 10 | .topic HIDC_RADIO_FILTER_ALL 11 | Reference all files 12 | 13 | .topic HIDC_RADIO_FILTER_CUSTOM 14 | Custom wildcard or filename. The wildcard "*" means 0 or more of any character, and "?" means 1 of any character. 15 | 16 | .topic HIDC_RADIO_NORECURSE 17 | When searching, look only in the directory specified 18 | 19 | .topic HIDC_RADIO_RECURSE 20 | When searching, look in the directory specified plus all sub-directories -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Completion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test Wizard - Completion Page 4 | 5 | 6 | 7 | 8 | 9 |

Test Wizard - Completion Page

10 | 11 |

12 | After completing all of the steps in the wizard, you are shown a summary 13 | of your choices, and the actions that will be taken. You may use the back 14 | button to go back to any previous steps and make any modifications. 15 |

16 | 17 | 18 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Completion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Completion.png -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Output.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test Wizard - Select Output Page 4 | 5 | 6 | 7 | 8 | 9 |

Test Wizard - Select Output Page

10 | 11 |

Explanation about the wizard page...

12 | 13 | 14 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Output.png -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_PathFilter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test Wizard - Path and Filter Page 4 | 5 | 6 | 7 | 8 | 9 |

Test Wizard - Path and Filter Page

10 | 11 |

Explanation about the wizard page...

12 | 13 | 14 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_PathFilter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_PathFilter.png -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_PreviewFileList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test Wizard - Preview File List Page 4 | 5 | 6 | 7 | 8 | 9 |

Test Wizard - Preview File List Page

10 | 11 |

Explanation about the wizard page...

12 | 13 | 14 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_PreviewFileList.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_PreviewFileList.png -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test Wizard - Welcome Page 4 | 5 | 6 | 7 | 8 | 9 |

Test Wizard - Welcome Page

10 |

11 | The first page of the New EP Scene Wizard is a welcome page. 12 | It gives a brief description of the steps in the wizard. 13 |

14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/help/TestWizard_Welcome.png -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/Wizard97Test.hhc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
    13 |
  • 14 | 15 | 16 | 17 |
      18 |
    • 19 | 20 | 21 | 22 |
    • 23 | 24 | 25 | 26 |
    • 27 | 28 | 29 | 30 |
    • 31 | 32 | 33 | 34 |
    • 35 | 36 | 37 | 38 |
    39 |
40 | 41 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/Wizard97Test.hhk: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
    11 |
  • 12 | 13 | 14 | 15 | 16 |
  • 17 | 18 | 19 | 20 | 21 |
  • 22 | 23 | 24 | 25 | 26 |
  • 27 | 28 | 29 | 30 | 31 |
  • 32 | 33 | 34 | 35 | 36 |
  • 37 | 38 | 39 | 40 | 41 |
  • 42 | 43 | 44 | 45 | 46 |
  • 47 | 48 | 49 | 50 | 51 |
  • 52 | 53 | 54 | 55 | 56 |
  • 57 | 58 | 59 | 60 | 61 |
  • 62 | 63 | 64 | 65 | 66 |
67 | 68 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/Wizard97Test.hhp: -------------------------------------------------------------------------------- 1 | [OPTIONS] 2 | Binary Index=No 3 | Binary TOC=Yes 4 | Compatibility=1.1 or later 5 | Compiled file=Wizard97Test.chm 6 | Contents file=Wizard97Test.hhc 7 | Default Window=$global_main 8 | Default topic=Wizard97Test.html 9 | Display compile progress=No 10 | Enhanced decompilation=Yes 11 | Full-text search=Yes 12 | Index file=Wizard97Test.hhk 13 | Language=0x409 English (United States) 14 | Title=Test Wizard Help 15 | 16 | [WINDOWS] 17 | $global_main="Test Wizard Help","Wizard97Test.hhc","Wizard97Test.hhk","Wizard97Test.html","Wizard97Test.html",,,,,0x42420,,0x387e,,,,,,,,0 18 | 19 | 20 | [FILES] 21 | Wizard97Test.html 22 | Context.h 23 | Context.txt 24 | TestWizard_Completion.html 25 | TestWizard_Output.html 26 | TestWizard_PathFilter.html 27 | TestWizard_PreviewFileList.html 28 | TestWizard_Welcome.html 29 | 30 | [TEXT POPUPS] 31 | Context.h 32 | Context.txt 33 | 34 | [INFOTYPES] 35 | 36 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/Wizard97Test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test Wizard Help 4 | 5 | 6 | 7 | 8 | 9 |

Test Wizard Help

10 |

This test wizard has the following steps:

11 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/readme-help.txt: -------------------------------------------------------------------------------- 1 | To compile the HtmlHelp file into the .chm, use the free HTML Help Workshop from Microsoft. 2 | Currently, you can download this from 3 | http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp 4 | or 5 | http://go.microsoft.com/fwlink/?LinkId=14188 6 | or 7 | http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f-9aa0-d597d16580cc&DisplayLang=en 8 | or 9 | http://download.microsoft.com/download/0/a/9/0a939ef6-e31c-430f-a3df-dfae7960d564/htmlhelp.exe -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/help/style.css: -------------------------------------------------------------------------------- 1 | body { font-family: Verdana; font-size:10pt;} 2 | td { font-family: Verdana; font-size:10pt;} 3 | li { font-size:10pt;} 4 | h1 { font-size:14pt; font-weight:bold;} 5 | h2 { font-size:12pt; font-weight:bold;} 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/res/Wizard97Test.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/res/Wizard97Test.ico -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/res/header.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/res/header.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/res/watermark.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/WTL10_10320_Release/Samples/Wizard97Test/res/watermark.bmp -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Wizard97Test.rc 4 | // 5 | #define IDD_WIZ97_INTERIOR_BLANK 110 6 | #define IDD_WIZ97_EXTERIOR_BLANK 111 7 | #define IDD_WIZ97_WELCOME 115 8 | #define IDD_WIZ97_COMPLETION 116 9 | #define IDD_WIZ97_PATHFILTER 117 10 | #define IDD_WIZ97_FILEPREVIEW 118 11 | #define IDD_WIZ97_OUTPUT 119 12 | 13 | #define IDB_WIZ97_HEADER 1000 14 | #define IDB_WIZ97_WATERMARK 1001 15 | 16 | #define IDC_WIZ97_EXTERIOR_TITLE 1004 17 | #define IDC_WIZ97_EXTERIOR_DESC 1005 18 | #define IDC_WIZ97_WELCOME_NOTAGAIN 1006 19 | #define IDC_WIZ97_SUMMARY 1007 20 | #define IDC_WIZ97_EXTERIOR_CLICKFINISH 1008 21 | #define IDC_WIZ97_BULLET1 1011 22 | #define IDC_WIZ97_BULLET2 1012 23 | #define IDC_WIZ97_BULLET3 1013 24 | #define IDC_WIZ97_BULLET4 1014 25 | #define IDC_WIZ97_BULLET5 1015 26 | #define IDC_WIZ97_BULLET6 1016 27 | #define IDC_WIZ97_BULLET7 1017 28 | #define IDC_WIZ97_BULLET8 1018 29 | #define IDC_WIZ97_BULLET9 1019 30 | #define IDC_WIZ97_BULLET1_DESC 1021 31 | #define IDC_WIZ97_BULLET2_DESC 1022 32 | #define IDC_WIZ97_BULLET3_DESC 1023 33 | #define IDC_WIZ97_BULLET4_DESC 1024 34 | #define IDC_WIZ97_BULLET5_DESC 1025 35 | #define IDC_WIZ97_BULLET6_DESC 1026 36 | #define IDC_WIZ97_BULLET7_DESC 1027 37 | #define IDC_WIZ97_BULLET8_DESC 1028 38 | #define IDC_WIZ97_BULLET9_DESC 1029 39 | #define IDC_LABEL_DESCRIPTION 1101 40 | #define IDC_LABEL_PATH 1102 41 | #define IDC_EDIT_PATH 1103 42 | #define IDC_BTN_BROWSEPATH 1104 43 | #define IDC_RADIO_RECURSE 1105 44 | #define IDC_RADIO_NORECURSE 1106 45 | #define IDC_LABEL_FILTER 1107 46 | #define IDC_RADIO_FILTER_ALL 1108 47 | #define IDC_RADIO_FILTER_CUSTOM 1109 48 | #define IDC_EDIT_FILTER 1110 49 | #define IDC_LIST_FILES 1120 50 | #define IDC_BTN_ADD 1121 51 | #define IDC_BTN_REMOVE 1122 52 | #define IDC_BTN_PREVIEW 1123 53 | #define IDC_RADIO_COPYTOCLIPBOARD 1200 54 | #define IDC_RADIO_SENDEMAIL 1201 55 | #define IDC_RADIO_SAVETOFILE 1202 56 | #define IDC_EDIT_SAVETOFILE 1203 57 | #define IDC_BTN_FILEBROWSE 1204 58 | #define IDC_LABEL_FILEENCODING 1205 59 | #define IDC_COMBO_FILEENCODING 1206 60 | #define IDC_LABEL_FILENAME 1207 61 | 62 | // Next default values for new objects 63 | // 64 | #ifdef APSTUDIO_INVOKED 65 | #ifndef APSTUDIO_READONLY_SYMBOLS 66 | #define _APS_NEXT_RESOURCE_VALUE 201 67 | #define _APS_NEXT_COMMAND_VALUE 32772 68 | #define _APS_NEXT_CONTROL_VALUE 1208 69 | #define _APS_NEXT_SYMED_VALUE 201 70 | #endif 71 | #endif 72 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/resource.hm: -------------------------------------------------------------------------------- 1 | // Microsoft Developer Studio generated Help ID include file. 2 | // Used by Wizard97Test.rc 3 | // 4 | #define HIDC_BTN_BROWSEPATH 0x80750451 // IDD_WIZ97_PATHFILTER 5 | #define HIDC_EDIT_FILTER 0x80750452 // IDD_WIZ97_PATHFILTER 6 | #define HIDC_EDIT_PATH 0x80750453 // IDD_WIZ97_PATHFILTER 7 | #define HIDC_RADIO_FILTER_ALL 0x80750454 // IDD_WIZ97_PATHFILTER 8 | #define HIDC_RADIO_FILTER_CUSTOM 0x80750455 // IDD_WIZ97_PATHFILTER 9 | #define HIDC_RADIO_NORECURSE 0x80750456 // IDD_WIZ97_PATHFILTER 10 | #define HIDC_RADIO_RECURSE 0x80750457 // IDD_WIZ97_PATHFILTER 11 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // Wizard97Test.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /WTL10_10320_Release/Samples/Wizard97Test/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__215476E2_9EAF_445C_9A58_E8CBCF4461AE__INCLUDED_) 7 | #define AFX_STDAFX_H__215476E2_9EAF_445C_9A58_E8CBCF4461AE__INCLUDED_ 8 | 9 | #pragma once 10 | 11 | // Preprocessor definitions 12 | #ifndef STRICT 13 | #define STRICT 14 | #endif 15 | 16 | #define WINVER 0x0501 17 | #define _WIN32_WINNT 0x0501 // Require Windows 2000 or later 18 | #define _WIN32_IE 0x0600 // Require IE 5.01 or later (comes with Windows 2000 or later) 19 | #define _RICHEDIT_VER 0x0300 // Require RichEdit 3.0 or later (comes with Windows 2000 or later) 20 | 21 | // Includes 22 | #include "resource.h" 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #include 29 | 30 | extern CAppModule _Module; 31 | 32 | #include 33 | 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | 43 | #if defined _M_IX86 44 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 45 | #elif defined _M_IA64 46 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 47 | #elif defined _M_X64 48 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 49 | #else 50 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 51 | #endif 52 | 53 | #endif // !defined(AFX_STDAFX_H__215476E2_9EAF_445C_9A58_E8CBCF4461AE__INCLUDED_) 54 | -------------------------------------------------------------------------------- /Win32DiskImager_VS2022.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32929.385 5 | MinimumVisualStudioVersion = 17.0.0.0 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win32DiskImagerRenewal", "DiskImager\DiskImager.vcxproj", "{700967AC-0FA9-4F5E-801C-3758BE4743C6}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|ARM64 = Debug|ARM64 11 | Debug|Win32 = Debug|Win32 12 | Debug|x64 = Debug|x64 13 | Release|ARM64 = Release|ARM64 14 | Release|Win32 = Release|Win32 15 | Release|x64 = Release|x64 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Debug|ARM64.ActiveCfg = Debug|ARM64 19 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Debug|ARM64.Build.0 = Debug|ARM64 20 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Debug|Win32.Build.0 = Debug|Win32 22 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Debug|x64.ActiveCfg = Debug|x64 23 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Debug|x64.Build.0 = Debug|x64 24 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Release|ARM64.ActiveCfg = Release|ARM64 25 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Release|ARM64.Build.0 = Release|ARM64 26 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Release|Win32.ActiveCfg = Release|Win32 27 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Release|Win32.Build.0 = Release|Win32 28 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Release|x64.ActiveCfg = Release|x64 29 | {700967AC-0FA9-4F5E-801C-3758BE4743C6}.Release|x64.Build.0 = Release|x64 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {626183E3-FE8B-473D-9A29-D9DFF65A1822} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /doc_img/ss.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/doc_img/ss.jpg -------------------------------------------------------------------------------- /doc_img/ss2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/doc_img/ss2.jpg -------------------------------------------------------------------------------- /doc_img/uac_error.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/doc_img/uac_error.jpg -------------------------------------------------------------------------------- /doc_img/uac_ok.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dnobori/DN-Win32DiskImagerRenewal/a449c415dbd2484153aabc72d78729a9bd9fa720/doc_img/uac_ok.jpg --------------------------------------------------------------------------------