diff --git a/EMD.APS b/EMD.APS new file mode 100644 index 0000000..d418539 Binary files /dev/null and b/EMD.APS differ diff --git a/EMD.DSP b/EMD.DSP new file mode 100644 index 0000000..58c409d --- /dev/null +++ b/EMD.DSP @@ -0,0 +1,147 @@ +# Microsoft Developer Studio Project File - Name="EMD" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 5.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Application" 0x0101 + +CFG=EMD - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "EMD.MAK". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "EMD.MAK" CFG="EMD - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "EMD - Win32 Release" (based on "Win32 (x86) Application") +!MESSAGE "EMD - Win32 Debug" (based on "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "EMD - Win32 Release" + +# PROP BASE Use_MFC 6 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 6 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 +# ADD BASE RSC /l 0x407 /d "NDEBUG" /d "_AFXDLL" +# ADD RSC /l 0x407 /d "NDEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386 +# ADD LINK32 /nologo /subsystem:windows /machine:I386 /out:"Release/EMD.scr" + +!ELSEIF "$(CFG)" == "EMD - Win32 Debug" + +# PROP BASE Use_MFC 6 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 6 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 +# ADD BASE RSC /l 0x407 /d "_DEBUG" /d "_AFXDLL" +# ADD RSC /l 0x407 /d "_DEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept +# ADD LINK32 /nologo /subsystem:windows /debug /machine:I386 /out:"Debug/EMD.scr" /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "EMD - Win32 Release" +# Name "EMD - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\EMD.cpp +# End Source File +# Begin Source File + +SOURCE=.\EMD.rc +# End Source File +# Begin Source File + +SOURCE=.\EMDDlg.cpp +# End Source File +# Begin Source File + +SOURCE=.\StdAfx.cpp +# ADD CPP /Yc"stdafx.h" +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=.\EMD.h +# End Source File +# Begin Source File + +SOURCE=.\EMDDlg.h +# End Source File +# Begin Source File + +SOURCE=.\Resource.h +# End Source File +# Begin Source File + +SOURCE=.\StdAfx.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\res\EMD.ico +# End Source File +# Begin Source File + +SOURCE=.\res\EMD.rc2 +# End Source File +# End Group +# Begin Source File + +SOURCE=.\ReadMe.txt +# End Source File +# End Target +# End Project diff --git a/EMD.DSW b/EMD.DSW new file mode 100644 index 0000000..0dd9f62 --- /dev/null +++ b/EMD.DSW @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 5.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "EMD"=.\EMD.DSP - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/EMD.MAK b/EMD.MAK new file mode 100644 index 0000000..db07814 --- /dev/null +++ b/EMD.MAK @@ -0,0 +1,279 @@ +# Microsoft Developer Studio Generated NMAKE File, Based on EMD.DSP +!IF "$(CFG)" == "" +CFG=EMD - Win32 Debug +!MESSAGE No configuration specified. Defaulting to EMD - Win32 Debug. +!ENDIF + +!IF "$(CFG)" != "EMD - Win32 Release" && "$(CFG)" != "EMD - Win32 Debug" +!MESSAGE Invalid configuration "$(CFG)" specified. +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "EMD.MAK" CFG="EMD - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "EMD - Win32 Release" (based on "Win32 (x86) Application") +!MESSAGE "EMD - Win32 Debug" (based on "Win32 (x86) Application") +!MESSAGE +!ERROR An invalid configuration is specified. +!ENDIF + +!IF "$(OS)" == "Windows_NT" +NULL= +!ELSE +NULL=nul +!ENDIF + +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "EMD - Win32 Release" + +OUTDIR=.\Release +INTDIR=.\Release +# Begin Custom Macros +OutDir=.\Release +# End Custom Macros + +!IF "$(RECURSE)" == "0" + +ALL : "$(OUTDIR)\EMD.scr" + +!ELSE + +ALL : "$(OUTDIR)\EMD.scr" + +!ENDIF + +CLEAN : + -@erase "$(INTDIR)\EMD.obj" + -@erase "$(INTDIR)\EMD.pch" + -@erase "$(INTDIR)\EMD.res" + -@erase "$(INTDIR)\EMDDlg.obj" + -@erase "$(INTDIR)\StdAfx.obj" + -@erase "$(INTDIR)\vc50.idb" + -@erase "$(OUTDIR)\EMD.scr" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP_PROJ=/nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D\ + "_AFXDLL" /Fp"$(INTDIR)\EMD.pch" /Yu"stdafx.h" /Fo"$(INTDIR)\\"\ + /Fd"$(INTDIR)\\" /FD /c +CPP_OBJS=.\Release/ +CPP_SBRS=. +MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /o NUL /win32 +RSC_PROJ=/l 0x407 /fo"$(INTDIR)\EMD.res" /d "NDEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +BSC32_FLAGS=/nologo /o"$(OUTDIR)\EMD.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +LINK32_FLAGS=/nologo /subsystem:windows /incremental:no\ + /pdb:"$(OUTDIR)\EMD.pdb" /machine:I386 /out:"$(OUTDIR)\EMD.scr" +LINK32_OBJS= \ + "$(INTDIR)\EMD.obj" \ + "$(INTDIR)\EMD.res" \ + "$(INTDIR)\EMDDlg.obj" \ + "$(INTDIR)\StdAfx.obj" + +"$(OUTDIR)\EMD.scr" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ELSEIF "$(CFG)" == "EMD - Win32 Debug" + +OUTDIR=.\Debug +INTDIR=.\Debug +# Begin Custom Macros +OutDir=.\Debug +# End Custom Macros + +!IF "$(RECURSE)" == "0" + +ALL : "$(OUTDIR)\EMD.scr" + +!ELSE + +ALL : "$(OUTDIR)\EMD.scr" + +!ENDIF + +CLEAN : + -@erase "$(INTDIR)\EMD.obj" + -@erase "$(INTDIR)\EMD.pch" + -@erase "$(INTDIR)\EMD.res" + -@erase "$(INTDIR)\EMDDlg.obj" + -@erase "$(INTDIR)\StdAfx.obj" + -@erase "$(INTDIR)\vc50.idb" + -@erase "$(INTDIR)\vc50.pdb" + -@erase "$(OUTDIR)\EMD.ilk" + -@erase "$(OUTDIR)\EMD.pdb" + -@erase "$(OUTDIR)\EMD.scr" + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +CPP_PROJ=/nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS"\ + /D "_AFXDLL" /Fp"$(INTDIR)\EMD.pch" /Yu"stdafx.h" /Fo"$(INTDIR)\\"\ + /Fd"$(INTDIR)\\" /FD /c +CPP_OBJS=.\Debug/ +CPP_SBRS=. +MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /o NUL /win32 +RSC_PROJ=/l 0x407 /fo"$(INTDIR)\EMD.res" /d "_DEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +BSC32_FLAGS=/nologo /o"$(OUTDIR)\EMD.bsc" +BSC32_SBRS= \ + +LINK32=link.exe +LINK32_FLAGS=/nologo /subsystem:windows /incremental:yes\ + /pdb:"$(OUTDIR)\EMD.pdb" /debug /machine:I386 /out:"$(OUTDIR)\EMD.scr"\ + /pdbtype:sept +LINK32_OBJS= \ + "$(INTDIR)\EMD.obj" \ + "$(INTDIR)\EMD.res" \ + "$(INTDIR)\EMDDlg.obj" \ + "$(INTDIR)\StdAfx.obj" + +"$(OUTDIR)\EMD.scr" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) $(LINK32_OBJS) +<< + +!ENDIF + +.c{$(CPP_OBJS)}.obj:: + $(CPP) @<< + $(CPP_PROJ) $< +<< + +.cpp{$(CPP_OBJS)}.obj:: + $(CPP) @<< + $(CPP_PROJ) $< +<< + +.cxx{$(CPP_OBJS)}.obj:: + $(CPP) @<< + $(CPP_PROJ) $< +<< + +.c{$(CPP_SBRS)}.sbr:: + $(CPP) @<< + $(CPP_PROJ) $< +<< + +.cpp{$(CPP_SBRS)}.sbr:: + $(CPP) @<< + $(CPP_PROJ) $< +<< + +.cxx{$(CPP_SBRS)}.sbr:: + $(CPP) @<< + $(CPP_PROJ) $< +<< + + +!IF "$(CFG)" == "EMD - Win32 Release" || "$(CFG)" == "EMD - Win32 Debug" +SOURCE=.\EMD.cpp + +!IF "$(CFG)" == "EMD - Win32 Release" + +DEP_CPP_EMD_C=\ + ".\EMD.h"\ + ".\EMDDlg.h"\ + + +"$(INTDIR)\EMD.obj" : $(SOURCE) $(DEP_CPP_EMD_C) "$(INTDIR)"\ + "$(INTDIR)\EMD.pch" + + +!ELSEIF "$(CFG)" == "EMD - Win32 Debug" + +DEP_CPP_EMD_C=\ + ".\EMD.h"\ + ".\EMDDlg.h"\ + ".\StdAfx.h"\ + + +"$(INTDIR)\EMD.obj" : $(SOURCE) $(DEP_CPP_EMD_C) "$(INTDIR)"\ + "$(INTDIR)\EMD.pch" + + +!ENDIF + +SOURCE=.\EMD.rc +DEP_RSC_EMD_R=\ + ".\res\EMD.ico"\ + ".\res\EMD.rc2"\ + + +"$(INTDIR)\EMD.res" : $(SOURCE) $(DEP_RSC_EMD_R) "$(INTDIR)" + $(RSC) $(RSC_PROJ) $(SOURCE) + + +SOURCE=.\EMDDlg.cpp + +!IF "$(CFG)" == "EMD - Win32 Release" + +DEP_CPP_EMDDL=\ + ".\EMD.h"\ + ".\EMDDlg.h"\ + + +"$(INTDIR)\EMDDlg.obj" : $(SOURCE) $(DEP_CPP_EMDDL) "$(INTDIR)"\ + "$(INTDIR)\EMD.pch" + + +!ELSEIF "$(CFG)" == "EMD - Win32 Debug" + +DEP_CPP_EMDDL=\ + ".\EMD.h"\ + ".\EMDDlg.h"\ + ".\StdAfx.h"\ + + +"$(INTDIR)\EMDDlg.obj" : $(SOURCE) $(DEP_CPP_EMDDL) "$(INTDIR)"\ + "$(INTDIR)\EMD.pch" + + +!ENDIF + +SOURCE=.\StdAfx.cpp +DEP_CPP_STDAF=\ + ".\StdAfx.h"\ + + +!IF "$(CFG)" == "EMD - Win32 Release" + +CPP_SWITCHES=/nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D\ + "_AFXDLL" /Fp"$(INTDIR)\EMD.pch" /Yc"stdafx.h" /Fo"$(INTDIR)\\"\ + /Fd"$(INTDIR)\\" /FD /c + +"$(INTDIR)\StdAfx.obj" "$(INTDIR)\EMD.pch" : $(SOURCE) $(DEP_CPP_STDAF)\ + "$(INTDIR)" + $(CPP) @<< + $(CPP_SWITCHES) $(SOURCE) +<< + + +!ELSEIF "$(CFG)" == "EMD - Win32 Debug" + +CPP_SWITCHES=/nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D\ + "_WINDOWS" /D "_AFXDLL" /Fp"$(INTDIR)\EMD.pch" /Yc"stdafx.h" /Fo"$(INTDIR)\\"\ + /Fd"$(INTDIR)\\" /FD /c + +"$(INTDIR)\StdAfx.obj" "$(INTDIR)\EMD.pch" : $(SOURCE) $(DEP_CPP_STDAF)\ + "$(INTDIR)" + $(CPP) @<< + $(CPP_SWITCHES) $(SOURCE) +<< + + +!ENDIF + + +!ENDIF + diff --git a/EMD.OPT b/EMD.OPT new file mode 100644 index 0000000..7306d3a Binary files /dev/null and b/EMD.OPT differ diff --git a/EMD.clw b/EMD.clw new file mode 100644 index 0000000..54a7303 --- /dev/null +++ b/EMD.clw @@ -0,0 +1,36 @@ +; CLW file contains information for the MFC ClassWizard + +[General Info] +Version=1 +LastClass=CEMDDlg +LastTemplate=CDialog +NewFileInclude1=#include "stdafx.h" +NewFileInclude2=#include "emd.h" +LastPage=0 + +ClassCount=2 +Class1=CEMDApp +Class2=CEMDDlg + +ResourceCount=1 +Resource1=IDD_EMD_DIALOG + +[CLS:CEMDApp] +Type=0 +BaseClass=CWinApp +HeaderFile=EMD.h +ImplementationFile=EMD.cpp +LastObject=CEMDApp + +[CLS:CEMDDlg] +Type=0 +BaseClass=CDialog +HeaderFile=EMDDlg.h +ImplementationFile=EMDDlg.cpp +LastObject=CEMDDlg + +[DLG:IDD_EMD_DIALOG] +Type=1 +Class=CEMDDlg +ControlCount=0 + diff --git a/EMD.cpp b/EMD.cpp new file mode 100644 index 0000000..b2efbab --- /dev/null +++ b/EMD.cpp @@ -0,0 +1,46 @@ +//------------------------------------------------------------------------| EMD.cpp // +// | EMD.scr, Bildschirmschoner // +// | von Dietmar Schrausser, (C) SCHRAUSSER 2011 // +// + +#include "stdafx.h" +#include "EMD.h" +#include "EMDDlg.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + + +BEGIN_MESSAGE_MAP(CEMDApp, CWinApp) + //{{AFX_MSG_MAP(CEMDApp) + //}}AFX_MSG + ON_COMMAND(ID_HELP, CWinApp::OnHelp) +END_MESSAGE_MAP() + + +CEMDApp::CEMDApp(){} +CEMDApp theApp; + + +BOOL CEMDApp::InitInstance() +{ + AfxEnableControlContainer(); + + #ifdef _AFXDLL + Enable3dControls(); + #else + Enable3dControlsStatic(); + #endif + + CEMDDlg dlg; + m_pMainWnd = &dlg; + int nResponse = dlg.DoModal(); + + if (nResponse == IDOK){} + else if (nResponse == IDCANCEL){} + + return 0; +} diff --git a/EMD.h b/EMD.h new file mode 100644 index 0000000..76708da --- /dev/null +++ b/EMD.h @@ -0,0 +1,39 @@ +//------------------------------------------------------------------------| EMD.h // +// | EMD.scr, Bildschirmschoner // +// | von Dietmar Schrausser, (C) SCHRAUSSER 2011 // +// + + +#if !defined(AFX_EMD_H__9D2ED6FA_E526_4083_BA98_94441F4270D6__INCLUDED_) +#define AFX_EMD_H__9D2ED6FA_E526_4083_BA98_94441F4270D6__INCLUDED_ + +#if _MSC_VER >= 1000 +#pragma once +#endif + +#ifndef __AFXWIN_H__ + #error include 'stdafx.h' before including this file for PCH +#endif + +#include "resource.h" + + +class CEMDApp : public CWinApp +{ + public: + CEMDApp(); + + //{{AFX_VIRTUAL(CEMDApp) + public: + virtual BOOL InitInstance(); + //}}AFX_VIRTUAL + + + //{{AFX_MSG(CEMDApp) + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +//{{AFX_INSERT_LOCATION}} + +#endif diff --git a/EMD.ncb b/EMD.ncb new file mode 100644 index 0000000..5033e90 Binary files /dev/null and b/EMD.ncb differ diff --git a/EMD.rc b/EMD.rc new file mode 100644 index 0000000..3e08d8f --- /dev/null +++ b/EMD.rc @@ -0,0 +1,168 @@ +//Microsoft Developer Studio generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// German (Germany) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) +#ifdef _WIN32 +LANGUAGE LANG_GERMAN, SUBLANG_GERMAN +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE DISCARDABLE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE DISCARDABLE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE DISCARDABLE +BEGIN + "#define _AFX_NO_SPLITTER_RESOURCES\r\n" + "#define _AFX_NO_OLE_RESOURCES\r\n" + "#define _AFX_NO_TRACKER_RESOURCES\r\n" + "#define _AFX_NO_PROPERTY_RESOURCES\r\n" + "\r\n" + "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)\r\n" + "#ifdef _WIN32\r\n" + "LANGUAGE 7, 1\r\n" + "#pragma code_page(1252)\r\n" + "#endif\r\n" + "#include ""res\\EMD.rc2"" // non-Microsoft Visual C++ edited resources\r\n" + "#include ""l.deu\\afxres.rc"" // Standard components\r\n" + "#endif\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDR_MAINFRAME ICON DISCARDABLE "res\\EMD.ico" + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_EMD_DIALOG DIALOGEX 0, 0, 27, 27 +STYLE DS_SYSMODAL | WS_POPUP | WS_VISIBLE | WS_THICKFRAME +EXSTYLE WS_EX_APPWINDOW +FONT 8, "MS Sans Serif" +BEGIN +END + + +#ifndef _MAC +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040704b0" + BEGIN + VALUE "CompanyName", "SCHRAUSSER\0" + VALUE "FileDescription", "EMD Bildschirmschoner\0" + VALUE "FileVersion", "1, 0, 0, 0\0" + VALUE "InternalName", "EMD\0" + VALUE "LegalCopyright", "Dietmar Schrausser (C) SCHRAUSSER 2011\0" + VALUE "OriginalFilename", "EMD.SCR\0" + VALUE "ProductName", "EMD\0" + VALUE "ProductVersion", "1, 0, 0, 0\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x407, 1200 + END +END + +#endif // !_MAC + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO DISCARDABLE +BEGIN + IDD_EMD_DIALOG, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 20 + TOPMARGIN, 7 + BOTTOMMARGIN, 20 + END +END +#endif // APSTUDIO_INVOKED + +#endif // German (Germany) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// +#define _AFX_NO_SPLITTER_RESOURCES +#define _AFX_NO_OLE_RESOURCES +#define _AFX_NO_TRACKER_RESOURCES +#define _AFX_NO_PROPERTY_RESOURCES + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) +#ifdef _WIN32 +LANGUAGE 7, 1 +#pragma code_page(1252) +#endif +#include "res\EMD.rc2" // non-Microsoft Visual C++ edited resources +#include "l.deu\afxres.rc" // Standard components +#endif +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/EMDDlg.cpp b/EMDDlg.cpp new file mode 100644 index 0000000..1406387 --- /dev/null +++ b/EMDDlg.cpp @@ -0,0 +1,152 @@ +//------------------------------------------------------------------------| EMDDlg.cpp // +// | EMD.scr, Bildschirmschoner // +// | von Dietmar Schrausser, (C) SCHRAUSSER 2011 // +// + +#include "stdafx.h" +#include "EMD.h" +#include "EMDDlg.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + + +CEMDDlg::CEMDDlg(CWnd* pParent ): CDialog(CEMDDlg::IDD, pParent) +{ + //{{AFX_DATA_INIT(CEMDDlg) + //}}AFX_DATA_INIT + m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); +} + +void CEMDDlg::DoDataExchange(CDataExchange* pDX) +{ + CDialog::DoDataExchange(pDX); + //{{AFX_DATA_MAP(CEMDDlg) + //}}AFX_DATA_MAP +} + +BEGIN_MESSAGE_MAP(CEMDDlg, CDialog) + //{{AFX_MSG_MAP(CEMDDlg) + ON_WM_PAINT() + ON_WM_QUERYDRAGICON() + ON_WM_MOUSEMOVE() + ON_WM_SHOWWINDOW() + ON_WM_TIMER() + ON_WM_SIZE() + ON_WM_KEYDOWN() + ON_WM_LBUTTONDOWN() + ON_WM_RBUTTONDOWN() + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +BOOL CEMDDlg::OnInitDialog() +{ + CDialog::OnInitDialog(); + + sw=x_=0; + sw1=1; + sw_m=1; + + SetTimer(0,10,0); + ShowCursor(0); + + return 1; +} + +void CEMDDlg::OnShowWindow(BOOL bShow, UINT nStatus) +{ + CDialog::OnShowWindow(bShow, nStatus); + + ShowWindow(SW_SHOWMAXIMIZED);// +} + +void CEMDDlg::OnPaint() +{ + UpdateWindow(); + + CPaintDC ooo(this); + + if(sw==0) + { + CRect oo(0, 0, dlg.x, dlg.y); + ooo.FillSolidRect(oo, 0 ); + + ooo.SetTextColor (13357270); + + CFont o2; + o2.CreateStockObject(ANSI_VAR_FONT); + ooo.SelectObject(&o2); + ooo.TextOut(dlg.x-100, dlg.y-20,"(C) SCHRAUSSER"); + } + + + if (sw==1) + { + /* + CRect o1(+x_, 150, 80+x_, 600); + ooo.FillSolidRect(o1, 0 ); + + CRect o2(80+x_, 150, 160+x_, 600); + ooo.FillSolidRect(o2, 65280 ); + + CRect o3(160+x_, 150, 240+x_, 600); + ooo.FillSolidRect(o3, 0 ); + */ + + CRect o1((dlg.x/15 +x_)-dlg.x/15, dlg.y/6, (dlg.x/15+80 +x_)-dlg.x/15, 5*(dlg.y/6)); + ooo.FillSolidRect(o1, 0 ); + + CRect o2((dlg.x/15+80 +x_)-dlg.x/15, dlg.y/6, (dlg.x/15+160+x_)-dlg.x/15, 5*(dlg.y/6)); + ooo.FillSolidRect(o2, 65280 ); + + CRect o3((dlg.x/15+160+x_)-dlg.x/15, dlg.y/6, (dlg.x/15+240+x_)-dlg.x/15, 5*(dlg.y/6)); + ooo.FillSolidRect(o3, 0 ); + } + sw=1; +} + +void CEMDDlg::OnTimer(UINT nIDEvent) +{ + if(sw1== 1)x_+=3; + if(sw1==-1)x_-=3; + + if(x_>=dlg.x-240|| x_<=-1)sw1*=-1;//1050 + + RedrawWindow(); + + CDialog::OnTimer(nIDEvent); +} + +HCURSOR CEMDDlg::OnQueryDragIcon(){return (HCURSOR) m_hIcon;} + +void CEMDDlg::OnSize(UINT nType, int cx, int cy) +{ + CDialog::OnSize(nType, cx, cy); + + dlg.x= cx; + dlg.y= cy; + + RedrawWindow(); +} + +void CEMDDlg::OnMouseMove(UINT nFlags, CPoint point) +{ + if(sw_m==1) + { + pt1.x=point.x; + pt1.y=point.y; + sw_m=0; + } + + if(pt1.x!=point.x || pt1.y!=point.y) CDialog::OnCancel(); // + + CDialog::OnMouseMove(nFlags, point); +} + + +void CEMDDlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) {/*if(nChar!=VK_SPACE)*/CDialog::OnCancel();CDialog::OnKeyDown(nChar, nRepCnt, nFlags);} +void CEMDDlg::OnLButtonDown(UINT nFlags, CPoint point) {CDialog::OnCancel();CDialog::OnLButtonDown(nFlags, point);} +void CEMDDlg::OnRButtonDown(UINT nFlags, CPoint point) {CDialog::OnCancel();CDialog::OnRButtonDown(nFlags, point);} diff --git a/EMDDlg.h b/EMDDlg.h new file mode 100644 index 0000000..dee647e --- /dev/null +++ b/EMDDlg.h @@ -0,0 +1,54 @@ +//------------------------------------------------------------------------| EMDDlg.h // +// | EMD.scr, Bildschirmschoner // +// | von Dietmar Schrausser, (C) SCHRAUSSER 2011 // +// + +#if !defined(AFX_EMDDLG_H__51113773_72DD_4211_A14E_C35C65E2F83B__INCLUDED_) +#define AFX_EMDDLG_H__51113773_72DD_4211_A14E_C35C65E2F83B__INCLUDED_ + +#if _MSC_VER >= 1000 +#pragma once +#endif + + +class CEMDDlg : public CDialog +{ + public: + CEMDDlg(CWnd* pParent = NULL); + + POINT pt1; + POINT dlg; + + int x_, sw, sw1, sw_m; + + + //{{AFX_DATA(CEMDDlg) + enum { IDD = IDD_EMD_DIALOG }; + //}}AFX_DATA + + //{{AFX_VIRTUAL(CEMDDlg) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + + protected: + HICON m_hIcon; + + //{{AFX_MSG(CEMDDlg) + virtual BOOL OnInitDialog(); + afx_msg void OnPaint(); + afx_msg HCURSOR OnQueryDragIcon(); + afx_msg void OnMouseMove(UINT nFlags, CPoint point); + afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); + afx_msg void OnTimer(UINT nIDEvent); + afx_msg void OnSize(UINT nType, int cx, int cy); + afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); + afx_msg void OnLButtonDown(UINT nFlags, CPoint point); + afx_msg void OnRButtonDown(UINT nFlags, CPoint point); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +//{{AFX_INSERT_LOCATION}} + +#endif diff --git a/ReadMe.txt b/ReadMe.txt new file mode 100644 index 0000000..a612ac8 --- /dev/null +++ b/ReadMe.txt @@ -0,0 +1,81 @@ +======================================================================== + MICROSOFT FOUNDATION CLASS LIBRARY : EMD +======================================================================== + + +AppWizard has created this EMD application for you. This application +not only demonstrates the basics of using the Microsoft Foundation classes +but is also a starting point for writing your application. + +This file contains a summary of what you will find in each of the files that +make up your EMD application. + +EMD.h + This is the main header file for the application. It includes other + project specific headers (including Resource.h) and declares the + CEMDApp application class. + +EMD.cpp + This is the main application source file that contains the application + class CEMDApp. + +EMD.rc + This is a listing of all of the Microsoft Windows resources that the + program uses. It includes the icons, bitmaps, and cursors that are stored + in the RES subdirectory. This file can be directly edited in Microsoft + Developer Studio. + +res\EMD.ico + This is an icon file, which is used as the application's icon. This + icon is included by the main resource file EMD.rc. + +res\EMD.rc2 + This file contains resources that are not edited by Microsoft + Developer Studio. You should place all resources not + editable by the resource editor in this file. + +EMD.clw + This file contains information used by ClassWizard to edit existing + classes or add new classes. ClassWizard also uses this file to store + information needed to create and edit message maps and dialog data + maps and to create prototype member functions. + + +///////////////////////////////////////////////////////////////////////////// + +AppWizard creates one dialog class: + +EMDDlg.h, EMDDlg.cpp - the dialog + These files contain your CEMDDlg class. This class defines + the behavior of your application's main dialog. The dialog's + template is in EMD.rc, which can be edited in Microsoft + Developer Studio. + + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named EMD.pch and a precompiled types file named StdAfx.obj. + +Resource.h + This is the standard header file, which defines new resource IDs. + Microsoft Developer Studio reads and updates this file. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" to indicate parts of the source code you +should add to or customize. + +If your application uses MFC in a shared DLL, and your application is +in a language other than the operating system's current language, you +will need to copy the corresponding localized resources MFC40XXX.DLL +from the Microsoft Visual C++ CD-ROM onto the system or system32 directory, +and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation. +For example, MFC40DEU.DLL contains resources translated to German.) If you +don't do this, some of the UI elements of your application will remain in the +language of the operating system. + +///////////////////////////////////////////////////////////////////////////// diff --git a/StdAfx.cpp b/StdAfx.cpp new file mode 100644 index 0000000..dd19502 --- /dev/null +++ b/StdAfx.cpp @@ -0,0 +1,3 @@ + +#include "stdafx.h" + diff --git a/StdAfx.h b/StdAfx.h new file mode 100644 index 0000000..36c70de --- /dev/null +++ b/StdAfx.h @@ -0,0 +1,21 @@ + +#if !defined(AFX_STDAFX_H__FF565343_1FF0_4BDE_BC2E_5C53561BEC14__INCLUDED_) +#define AFX_STDAFX_H__FF565343_1FF0_4BDE_BC2E_5C53561BEC14__INCLUDED_ + +#if _MSC_VER >= 1000 +#pragma once +#endif + +#define VC_EXTRALEAN + +#include +#include +#include +#ifndef _AFX_NO_AFXCMN_SUPPORT +#include +#endif + + +//{{AFX_INSERT_LOCATION}} + +#endif \ No newline at end of file diff --git a/resource.h b/resource.h new file mode 100644 index 0000000..da8c7ab --- /dev/null +++ b/resource.h @@ -0,0 +1,20 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by EMD.rc +// +#define IDM_ABOUTBOX 0x0010 +#define IDD_ABOUTBOX 100 +#define IDS_ABOUTBOX 101 +#define IDD_EMD_DIALOG 102 +#define IDR_MAINFRAME 128 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 132 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif