Initial
This commit is contained in:
380
dialog/DIALOG.BAK
Normal file
380
dialog/DIALOG.BAK
Normal file
@@ -0,0 +1,380 @@
|
||||
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
!IF "$(CFG)" == ""
|
||||
CFG=dialog - Win32 Debug
|
||||
!MESSAGE No configuration specified. Defaulting to dialog - Win32 Debug.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" != "dialog - Win32 Release" && "$(CFG)" != "dialog - Win32 Debug"
|
||||
!MESSAGE Invalid configuration "$(CFG)" specified.
|
||||
!MESSAGE You can specify a configuration when running NMAKE on this makefile
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Dialog.mak" CFG="dialog - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "dialog - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "dialog - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
!ERROR An invalid configuration is specified.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(OS)" == "Windows_NT"
|
||||
NULL=
|
||||
!ELSE
|
||||
NULL=nul
|
||||
!ENDIF
|
||||
################################################################################
|
||||
# Begin Project
|
||||
# PROP Target_Last_Scanned "dialog - Win32 Debug"
|
||||
CPP=cl.exe
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Target_Dir ""
|
||||
OUTDIR=.\Release
|
||||
INTDIR=.\Release
|
||||
|
||||
ALL : "$(OUTDIR)\Dialog.lib"
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\Dlgtmpl.obj"
|
||||
-@erase "$(INTDIR)\Dyndlg.obj"
|
||||
-@erase "$(INTDIR)\Stdtmpl.obj"
|
||||
-@erase "$(OUTDIR)\Dialog.lib"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
|
||||
CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS"\
|
||||
/Fp"$(INTDIR)/Dialog.pch" /YX /Fo"$(INTDIR)/" /c
|
||||
CPP_OBJS=.\Release/
|
||||
CPP_SBRS=.\.
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Dialog.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo
|
||||
LIB32_FLAGS=/nologo /out:"$(OUTDIR)/Dialog.lib"
|
||||
LIB32_OBJS= \
|
||||
"$(INTDIR)\Dlgtmpl.obj" \
|
||||
"$(INTDIR)\Dyndlg.obj" \
|
||||
"$(INTDIR)\Stdtmpl.obj"
|
||||
|
||||
"$(OUTDIR)\Dialog.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS)
|
||||
$(LIB32) @<<
|
||||
$(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS)
|
||||
<<
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "dialog__"
|
||||
# PROP BASE Intermediate_Dir "dialog__"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "msvcobj"
|
||||
# PROP Intermediate_Dir "msvcobj"
|
||||
# PROP Target_Dir ""
|
||||
OUTDIR=.\msvcobj
|
||||
INTDIR=.\msvcobj
|
||||
|
||||
ALL : "..\exe\msdialog.lib"
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\Dlgtmpl.obj"
|
||||
-@erase "$(INTDIR)\Dyndlg.obj"
|
||||
-@erase "$(INTDIR)\Stdtmpl.obj"
|
||||
-@erase "..\exe\msdialog.lib"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /Zp1 /MTd /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /Fp"..\exe\msvc42.pch" /YX"windows.h" /c
|
||||
CPP_PROJ=/nologo /Zp1 /MTd /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D\
|
||||
"__FLAT__" /D "STRICT" /Fp"..\exe\msvc42.pch" /YX"windows.h" /Fo"$(INTDIR)/" /c\
|
||||
|
||||
CPP_OBJS=.\msvcobj/
|
||||
CPP_SBRS=.\.
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Dialog.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"..\exe\msdialog.lib"
|
||||
LIB32_FLAGS=/nologo /out:"..\exe\msdialog.lib"
|
||||
LIB32_OBJS= \
|
||||
"$(INTDIR)\Dlgtmpl.obj" \
|
||||
"$(INTDIR)\Dyndlg.obj" \
|
||||
"$(INTDIR)\Stdtmpl.obj"
|
||||
|
||||
"..\exe\msdialog.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS)
|
||||
$(LIB32) @<<
|
||||
$(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_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) $<
|
||||
|
||||
################################################################################
|
||||
# Begin Target
|
||||
|
||||
# Name "dialog - Win32 Release"
|
||||
# Name "dialog - Win32 Debug"
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
################################################################################
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Stdtmpl.cpp
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
DEP_CPP_STDTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Fixup.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.tpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Stdtmpl.obj" : $(SOURCE) $(DEP_CPP_STDTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
DEP_CPP_STDTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.tpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Stdtmpl.obj" : $(SOURCE) $(DEP_CPP_STDTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
################################################################################
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dyndlg.cpp
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
DEP_CPP_DYNDL=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dyndlg.obj" : $(SOURCE) $(DEP_CPP_DYNDL) "$(INTDIR)"
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
DEP_CPP_DYNDL=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dyndlg.obj" : $(SOURCE) $(DEP_CPP_DYNDL) "$(INTDIR)"
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
################################################################################
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgtmpl.cpp
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
DEP_CPP_DLGTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dlgtmpl.obj" : $(SOURCE) $(DEP_CPP_DLGTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
DEP_CPP_DLGTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dlgtmpl.obj" : $(SOURCE) $(DEP_CPP_DLGTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
################################################################################
|
||||
29
dialog/DIALOG.DSW
Normal file
29
dialog/DIALOG.DSW
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 5.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "dialog"=.\dialog.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
27
dialog/DIALOG.PLG
Normal file
27
dialog/DIALOG.PLG
Normal file
@@ -0,0 +1,27 @@
|
||||
--------------------Configuration: dialog - Win32 Debug--------------------
|
||||
Begining build with project "C:\work\DIALOG\dialog.dsp", at root.
|
||||
Active configuration is Win32 (x86) Static Library (based on Win32 (x86) Static Library)
|
||||
|
||||
Project's tools are:
|
||||
"32-bit C/C++ Compiler for 80x86" with flags "/nologo /Zp1 /MTd /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /Fp"..\exe\msvc42.pch" /YX"windows.h" /Fo".\msvcobj/" /Fd".\msvcobj/" /FD /c "
|
||||
"Browser Database Maker" with flags "/nologo /o".\msvcobj/dialog.bsc" "
|
||||
"Library Manager" with flags "/nologo /out:"..\exe\msdialog.lib" "
|
||||
"Custom Build" with flags ""
|
||||
"<Component 0xa>" with flags ""
|
||||
|
||||
Creating temp file "C:\WINDOWS\TEMP\RSPC1E1.TMP" with contents </nologo /Zp1 /MTd /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /Fp"..\exe\msvc42.pch" /YX"windows.h" /Fo".\msvcobj/" /Fd".\msvcobj/" /FD /c
|
||||
"C:\work\DIALOG\Dlgtmpl.cpp"
|
||||
"C:\work\DIALOG\Dyndlg.cpp"
|
||||
"C:\work\DIALOG\Stdtmpl.cpp"
|
||||
>
|
||||
Creating command line "cl.exe @C:\WINDOWS\TEMP\RSPC1E1.TMP"
|
||||
Creating command line "link.exe -lib /nologo /out:"..\exe\msdialog.lib" .\msvcobj\Dlgtmpl.obj .\msvcobj\Dyndlg.obj .\msvcobj\Stdtmpl.obj"
|
||||
Compiling...
|
||||
Dlgtmpl.cpp
|
||||
Dyndlg.cpp
|
||||
Stdtmpl.cpp
|
||||
Creating library...
|
||||
|
||||
|
||||
|
||||
msdialog.lib - 0 error(s), 0 warning(s)
|
||||
BIN
dialog/DIALOG32.DSW
Normal file
BIN
dialog/DIALOG32.DSW
Normal file
Binary file not shown.
BIN
dialog/DIALOG32.IDE
Normal file
BIN
dialog/DIALOG32.IDE
Normal file
Binary file not shown.
155
dialog/DLGITEM.HPP
Normal file
155
dialog/DLGITEM.HPP
Normal file
@@ -0,0 +1,155 @@
|
||||
#ifndef _DIALOG_DIALOGITEMTEMPLATE_HPP_
|
||||
#define _DIALOG_DIALOGITEMTEMPLATE_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_RECTANGLE_HPP_
|
||||
#include <common/rect.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_STRING_HPP_
|
||||
#include <common/string.hpp>
|
||||
#endif
|
||||
|
||||
class DialogItemTemplate : private DLGITEMTEMPLATE
|
||||
{
|
||||
public:
|
||||
DialogItemTemplate(void);
|
||||
DialogItemTemplate(const DialogItemTemplate &someDialogItemTemplate);
|
||||
~DialogItemTemplate();
|
||||
DialogItemTemplate &operator=(const DialogItemTemplate &someDialogItemTemplate);
|
||||
WORD operator==(const DialogItemTemplate &someDialogItemTemplate)const;
|
||||
String className(void)const;
|
||||
void className(const String &className);
|
||||
String titleText(void)const;
|
||||
void titleText(const String &titleText);
|
||||
DWORD style(void)const;
|
||||
void style(DWORD style);
|
||||
DWORD extendedStyle(void)const;
|
||||
void extendedStyle(DWORD extendedStyle);
|
||||
Rect posRect(void)const;
|
||||
void posRect(const Rect &posRect);
|
||||
WORD itemID(void)const;
|
||||
void itemID(WORD itemID);
|
||||
private:
|
||||
String mClassName;
|
||||
String mTitleText;
|
||||
};
|
||||
|
||||
inline
|
||||
DialogItemTemplate::DialogItemTemplate(void)
|
||||
{
|
||||
style(0);
|
||||
extendedStyle(0);
|
||||
posRect(Rect(0,0,0,0));
|
||||
itemID(0);
|
||||
}
|
||||
|
||||
inline
|
||||
DialogItemTemplate::DialogItemTemplate(const DialogItemTemplate &someDialogItemTemplate)
|
||||
{
|
||||
*this=someDialogItemTemplate;
|
||||
}
|
||||
|
||||
inline
|
||||
DialogItemTemplate::~DialogItemTemplate()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
DialogItemTemplate &DialogItemTemplate::operator=(const DialogItemTemplate &someDialogItemTemplate)
|
||||
{
|
||||
style(someDialogItemTemplate.style());
|
||||
extendedStyle(someDialogItemTemplate.extendedStyle());
|
||||
posRect(someDialogItemTemplate.posRect());
|
||||
itemID(someDialogItemTemplate.itemID());
|
||||
className(someDialogItemTemplate.className());
|
||||
titleText(someDialogItemTemplate.titleText());
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline
|
||||
WORD DialogItemTemplate::operator==(const DialogItemTemplate &someDialogItemTemplate)const
|
||||
{
|
||||
return (style()==someDialogItemTemplate.style()&&
|
||||
extendedStyle()==someDialogItemTemplate.extendedStyle()&&
|
||||
posRect()==someDialogItemTemplate.posRect()&&
|
||||
itemID()==someDialogItemTemplate.itemID()&&
|
||||
className()==someDialogItemTemplate.className()&&
|
||||
titleText()==someDialogItemTemplate.titleText());
|
||||
}
|
||||
|
||||
inline
|
||||
DWORD DialogItemTemplate::style(void)const
|
||||
{
|
||||
return DLGITEMTEMPLATE::style;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogItemTemplate::style(DWORD style)
|
||||
{
|
||||
DLGITEMTEMPLATE::style=style;
|
||||
}
|
||||
|
||||
inline
|
||||
DWORD DialogItemTemplate::extendedStyle(void)const
|
||||
{
|
||||
return DLGITEMTEMPLATE::dwExtendedStyle;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogItemTemplate::extendedStyle(DWORD extendedStyle)
|
||||
{
|
||||
DLGITEMTEMPLATE::dwExtendedStyle=extendedStyle;
|
||||
}
|
||||
|
||||
inline
|
||||
Rect DialogItemTemplate::posRect(void)const
|
||||
{
|
||||
return Rect(DLGITEMTEMPLATE::x,DLGITEMTEMPLATE::y,DLGITEMTEMPLATE::cx,DLGITEMTEMPLATE::cy);
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogItemTemplate::posRect(const Rect &posRect)
|
||||
{
|
||||
DLGITEMTEMPLATE::x=posRect.left();
|
||||
DLGITEMTEMPLATE::y=posRect.top();
|
||||
DLGITEMTEMPLATE::cx=posRect.right();
|
||||
DLGITEMTEMPLATE::cy=posRect.bottom();
|
||||
}
|
||||
|
||||
inline
|
||||
WORD DialogItemTemplate::itemID(void)const
|
||||
{
|
||||
return DLGITEMTEMPLATE::id;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogItemTemplate::itemID(WORD itemID)
|
||||
{
|
||||
DLGITEMTEMPLATE::id=itemID;
|
||||
}
|
||||
|
||||
inline
|
||||
String DialogItemTemplate::className(void)const
|
||||
{
|
||||
return mClassName;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogItemTemplate::className(const String &className)
|
||||
{
|
||||
mClassName=className;
|
||||
}
|
||||
|
||||
inline
|
||||
String DialogItemTemplate::titleText(void)const
|
||||
{
|
||||
return mTitleText;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogItemTemplate::titleText(const String &titleText)
|
||||
{
|
||||
mTitleText=titleText;
|
||||
}
|
||||
#endif
|
||||
56
dialog/DLGTMPL.CPP
Normal file
56
dialog/DLGTMPL.CPP
Normal file
@@ -0,0 +1,56 @@
|
||||
#include <common/widestr.hpp>
|
||||
#include <dialog/dlgtmpl.hpp>
|
||||
|
||||
DialogTemplate::operator DLGTEMPLATE *(void)
|
||||
{
|
||||
DLGTEMPLATE *lpDLGTEMPLATE=0;
|
||||
DLGITEMTEMPLATE *lpDLGITEMTEMPLATE;
|
||||
BYTE *lpCharByte;
|
||||
DWORD sizeData;
|
||||
|
||||
if(!itemCount())return lpDLGTEMPLATE;
|
||||
sizeData=MaxTemplateBytes;
|
||||
mItemData.size(sizeData,GMEM_FIXED|GMEM_ZEROINIT);
|
||||
lpDLGTEMPLATE=(DLGTEMPLATE*)((BYTE*)&mItemData[0]);
|
||||
::memcpy(lpDLGTEMPLATE,&((DLGTEMPLATE&)*this),sizeof(DLGTEMPLATE));
|
||||
lpCharByte=((BYTE*)lpDLGTEMPLATE)+sizeof(DLGTEMPLATE);
|
||||
*((WORD*)lpCharByte)=0x0000; // no menu
|
||||
lpCharByte+=sizeof(WORD);
|
||||
if(className().isNull()){*((WORD*)lpCharByte)=0x0000;lpCharByte+=sizeof(WORD);}
|
||||
else lpCharByte=copyString(lpCharByte,className());
|
||||
if(titleText().isNull()){*((WORD*)lpCharByte)=0x0000;lpCharByte+=sizeof(WORD);}
|
||||
else lpCharByte=copyString(lpCharByte,titleText());
|
||||
if(style()&DS_SETFONT)
|
||||
{
|
||||
*((WORD*)lpCharByte)=pointSize();
|
||||
lpCharByte+=sizeof(WORD);
|
||||
lpCharByte=copyString(lpCharByte,typeFace());
|
||||
}
|
||||
lpCharByte=alignBoundary(lpCharByte);
|
||||
lpDLGITEMTEMPLATE=(DLGITEMTEMPLATE*)lpCharByte;
|
||||
for(short itemIndex=0;itemIndex<itemCount();itemIndex++)
|
||||
{
|
||||
DialogItemTemplate dlgItem(mDlgItems[itemIndex]);
|
||||
if(dlgItem.className().isNull())continue;
|
||||
::memcpy(lpDLGITEMTEMPLATE,&dlgItem,sizeof(DLGITEMTEMPLATE));
|
||||
lpCharByte=((BYTE*)lpDLGITEMTEMPLATE)+sizeof(DLGITEMTEMPLATE);
|
||||
lpCharByte=copyString(lpCharByte,dlgItem.className());
|
||||
lpCharByte=copyString(lpCharByte,dlgItem.titleText());
|
||||
*((WORD*)lpCharByte)=0;
|
||||
lpCharByte+=sizeof(WORD);
|
||||
lpCharByte=alignBoundary(lpCharByte);
|
||||
lpDLGITEMTEMPLATE=(DLGITEMTEMPLATE*)lpCharByte;
|
||||
}
|
||||
return lpDLGTEMPLATE;
|
||||
}
|
||||
|
||||
BYTE *DialogTemplate::copyString(BYTE *lpCharByte,const String &someString)const
|
||||
{
|
||||
WideString wideString(someString);
|
||||
if(!wideString.size())return lpCharByte;
|
||||
for(short itemIndex=0;itemIndex<wideString.size();itemIndex++)
|
||||
((WORD*)lpCharByte)[itemIndex]=(WORD)wideString.operator[](itemIndex);
|
||||
lpCharByte+=wideString.size()*sizeof(WORD);
|
||||
return lpCharByte;
|
||||
}
|
||||
|
||||
228
dialog/DLGTMPL.HPP
Normal file
228
dialog/DLGTMPL.HPP
Normal file
@@ -0,0 +1,228 @@
|
||||
#ifndef _DIALOG_DIALOGTEMPLATE_HPP_
|
||||
#define _DIALOG_DIALOGTEMPLATE_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_RECTANGLE_HPP_
|
||||
#include <common/rect.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_GLOBALDATA_HPP_
|
||||
#include <common/gdata.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_BLOCK_HPP_
|
||||
#include <common/block.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_STRING_HPP_
|
||||
#include <common/string.hpp>
|
||||
#endif
|
||||
#ifndef _DIALOG_DIALOGITEMTEMPLATE_HPP_
|
||||
#include <dialog/dlgitem.hpp>
|
||||
#endif
|
||||
|
||||
class DialogTemplate : private DLGTEMPLATE
|
||||
{
|
||||
public:
|
||||
DialogTemplate(void);
|
||||
DialogTemplate(const DialogTemplate &someDialogTemplate);
|
||||
~DialogTemplate();
|
||||
DialogTemplate &operator=(const DialogTemplate &someDialogTemplate);
|
||||
WORD operator==(const DialogTemplate &someDialogTemplate)const;
|
||||
operator DLGTEMPLATE *(void);
|
||||
DialogTemplate &operator+=(const DialogItemTemplate &someDialogItemTemplate);
|
||||
DWORD style(void)const;
|
||||
void style(DWORD style);
|
||||
DWORD extendedStyle(void)const;
|
||||
void extendedStyle(DWORD extendedStyle);
|
||||
Rect posRect(void)const;
|
||||
void posRect(const Rect &posRect);
|
||||
WORD itemCount(void)const;
|
||||
String className(void)const;
|
||||
void className(const String &className);
|
||||
String titleText(void)const;
|
||||
void titleText(const String &titleText);
|
||||
String typeFace(void)const;
|
||||
void typeFace(const String &typeFace);
|
||||
WORD pointSize(void)const;
|
||||
void pointSize(WORD pointSize);
|
||||
private:
|
||||
enum{MaxTemplateBytes=16384};
|
||||
void itemCount(WORD itemCount);
|
||||
BYTE *alignBoundary(BYTE *lpCharByte)const;
|
||||
BYTE *copyString(BYTE *lpCharByte,const String &someString)const;
|
||||
Block<DialogItemTemplate> mDlgItems;
|
||||
GlobalData<BYTE> mItemData;
|
||||
WORD mPointSize;
|
||||
String mClassName;
|
||||
String mTitleText;
|
||||
String mTypeFace;
|
||||
};
|
||||
|
||||
inline
|
||||
DialogTemplate::DialogTemplate(void)
|
||||
{
|
||||
style(0);
|
||||
extendedStyle(0);
|
||||
itemCount(0);
|
||||
posRect(Rect(0,0,0,0));
|
||||
pointSize(0);
|
||||
}
|
||||
|
||||
inline
|
||||
DialogTemplate::DialogTemplate(const DialogTemplate &someDialogTemplate)
|
||||
{
|
||||
pointSize(0);
|
||||
*this=someDialogTemplate;
|
||||
}
|
||||
|
||||
inline
|
||||
DialogTemplate::~DialogTemplate()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
DialogTemplate &DialogTemplate::operator=(const DialogTemplate &someDialogTemplate)
|
||||
{
|
||||
style(someDialogTemplate.style());
|
||||
extendedStyle(someDialogTemplate.extendedStyle());
|
||||
itemCount(someDialogTemplate.itemCount());
|
||||
className(someDialogTemplate.className());
|
||||
titleText(someDialogTemplate.titleText());
|
||||
posRect(someDialogTemplate.posRect());
|
||||
pointSize(someDialogTemplate.pointSize());
|
||||
typeFace(someDialogTemplate.typeFace());
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline
|
||||
WORD DialogTemplate::operator==(const DialogTemplate &someDialogTemplate)const
|
||||
{
|
||||
return (style()==someDialogTemplate.style()&&
|
||||
extendedStyle()==someDialogTemplate.extendedStyle()&&
|
||||
itemCount()==someDialogTemplate.itemCount()&&
|
||||
className()==someDialogTemplate.className()&&
|
||||
titleText()==someDialogTemplate.titleText()&&
|
||||
posRect()==someDialogTemplate.posRect()&&
|
||||
pointSize()==someDialogTemplate.pointSize()&&
|
||||
typeFace()==someDialogTemplate.typeFace());
|
||||
}
|
||||
|
||||
inline
|
||||
DialogTemplate &DialogTemplate::operator+=(const DialogItemTemplate &someDialogItemTemplate)
|
||||
{
|
||||
mDlgItems.insert(&someDialogItemTemplate);
|
||||
itemCount(itemCount()+1);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline
|
||||
DWORD DialogTemplate::style(void)const
|
||||
{
|
||||
return DLGTEMPLATE::style;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::style(DWORD style)
|
||||
{
|
||||
DLGTEMPLATE::style=style;
|
||||
}
|
||||
|
||||
inline
|
||||
DWORD DialogTemplate::extendedStyle(void)const
|
||||
{
|
||||
return DLGTEMPLATE::dwExtendedStyle;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::extendedStyle(DWORD extendedStyle)
|
||||
{
|
||||
DLGTEMPLATE::dwExtendedStyle=extendedStyle;
|
||||
}
|
||||
|
||||
inline
|
||||
WORD DialogTemplate::itemCount(void)const
|
||||
{
|
||||
return DLGTEMPLATE::cdit;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::itemCount(WORD itemCount)
|
||||
{
|
||||
DLGTEMPLATE::cdit=itemCount;
|
||||
}
|
||||
|
||||
inline
|
||||
Rect DialogTemplate::posRect(void)const
|
||||
{
|
||||
return Rect(DLGTEMPLATE::x,DLGTEMPLATE::y,DLGTEMPLATE::cx,DLGTEMPLATE::cy);
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::posRect(const Rect &posRect)
|
||||
{
|
||||
DLGTEMPLATE::x=posRect.left();
|
||||
DLGTEMPLATE::y=posRect.top();
|
||||
DLGTEMPLATE::cx=posRect.right();
|
||||
DLGTEMPLATE::cy=posRect.bottom();
|
||||
}
|
||||
|
||||
inline
|
||||
String DialogTemplate::className(void)const
|
||||
{
|
||||
return mClassName;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::className(const String &className)
|
||||
{
|
||||
mClassName=className;
|
||||
}
|
||||
|
||||
inline
|
||||
String DialogTemplate::titleText(void)const
|
||||
{
|
||||
return mTitleText;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::titleText(const String &titleText)
|
||||
{
|
||||
mTitleText=titleText;
|
||||
}
|
||||
|
||||
inline
|
||||
String DialogTemplate::typeFace(void)const
|
||||
{
|
||||
return mTypeFace;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::typeFace(const String &typeFace)
|
||||
{
|
||||
mTypeFace=typeFace;
|
||||
}
|
||||
|
||||
inline
|
||||
WORD DialogTemplate::pointSize(void)const
|
||||
{
|
||||
return mPointSize;
|
||||
}
|
||||
|
||||
inline
|
||||
void DialogTemplate::pointSize(WORD pointSize)
|
||||
{
|
||||
mPointSize=pointSize;
|
||||
}
|
||||
|
||||
inline
|
||||
BYTE *DialogTemplate::alignBoundary(BYTE *lpCharByte)const
|
||||
{
|
||||
WORD *lpWORD=((WORD*)lpCharByte);
|
||||
ULONG align;
|
||||
|
||||
align=(ULONG)lpWORD;
|
||||
align+=3;
|
||||
align>>=2;
|
||||
align<<=2;
|
||||
return (BYTE*)align;
|
||||
}
|
||||
#endif
|
||||
85
dialog/DYNDLG.BAK
Normal file
85
dialog/DYNDLG.BAK
Normal file
@@ -0,0 +1,85 @@
|
||||
#ifndef _DIALOG_DYNAMICDIALOG_HPP_
|
||||
#define _DIALOG_DYNAMICDIALOG_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_DWINDOW_HPP_
|
||||
#include <common/dwindow.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_CALLBACK_HPP_
|
||||
#include <common/callback.hpp>
|
||||
#endif
|
||||
#ifndef _DIALOG_DIALOGITEMTEMPLATE_HPP_
|
||||
#include <dialog/dlgitem.hpp>
|
||||
#endif
|
||||
#ifndef _DIALOG_DIALOGTEMPLATE_HPP_
|
||||
#include <dialog/dlgtmpl.hpp>
|
||||
#endif
|
||||
|
||||
class DynamicDialog : public DWindow
|
||||
{
|
||||
public:
|
||||
enum DialogType{ModalDialog,ModelessDialog};
|
||||
DynamicDialog(void);
|
||||
virtual ~DynamicDialog();
|
||||
void createDialog(HWND hParentWnd,DialogTemplate &someDialogTemplate,DialogType typeDialog=ModalDialog);
|
||||
void createDialog(DialogTemplate &someDialogTemplate,DialogType typeDialog=ModalDialog);
|
||||
protected:
|
||||
virtual WORD dlgCommand(DWORD commandID,CallbackData &someCallbackData);
|
||||
virtual void dlgInitDialog(CallbackData &someCallbackData);
|
||||
virtual void dlgDestroyDialog(CallbackData &someCallbackData);
|
||||
private:
|
||||
DynamicDialog(const DynamicDialog &someDynamicDialog);
|
||||
CallbackData::ReturnType initDialogHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType closeHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType destroyHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType dialogCodeHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType commandHandler(CallbackData &someCallbackData);
|
||||
Callback<DynamicDialog> mInitDialogHandler;
|
||||
Callback<DynamicDialog> mCloseHandler;
|
||||
Callback<DynamicDialog> mDestroyHandler;
|
||||
Callback<DynamicDialog> mDialogCodeHandler;
|
||||
Callback<DynamicDialog> mCommandHandler;
|
||||
};
|
||||
|
||||
inline
|
||||
DynamicDialog::DynamicDialog(void)
|
||||
: mDestroyHandler(this,&DynamicDialog::destroyHandler),
|
||||
mInitDialogHandler(this,&DynamicDialog::initDialogHandler),
|
||||
mCloseHandler(this,&DynamicDialog::closeHandler),
|
||||
mDialogCodeHandler(this,&DynamicDialog::dialogCodeHandler),
|
||||
mCommandHandler(this,&DynamicDialog::commandHandler)
|
||||
{
|
||||
insertHandler(VectorHandler::DestroyHandler,&mDestroyHandler);
|
||||
insertHandler(VectorHandler::InitDialogHandler,&mInitDialogHandler);
|
||||
insertHandler(VectorHandler::CloseHandler,&mCloseHandler);
|
||||
insertHandler(VectorHandler::DialogCodeHandler,&mDialogCodeHandler);
|
||||
insertHandler(VectorHandler::CommandHandler,&mCommandHandler);
|
||||
}
|
||||
|
||||
inline
|
||||
DynamicDialog::DynamicDialog(const DynamicDialog &someDynamicDialog)
|
||||
: mDestroyHandler(this,&DynamicDialog::destroyHandler),
|
||||
mInitDialogHandler(this,&DynamicDialog::initDialogHandler),
|
||||
mCloseHandler(this,&DynamicDialog::closeHandler),
|
||||
mDialogCodeHandler(this,&DynamicDialog::dialogCodeHandler),
|
||||
mCommandHandler(this,&DynamicDialog::commandHandler)
|
||||
{
|
||||
insertHandler(VectorHandler::DestroyHandler,&mDestroyHandler);
|
||||
insertHandler(VectorHandler::InitDialogHandler,&mInitDialogHandler);
|
||||
insertHandler(VectorHandler::CloseHandler,&mCloseHandler);
|
||||
insertHandler(VectorHandler::DialogCodeHandler,&mDialogCodeHandler);
|
||||
insertHandler(VectorHandler::CommandHandler,&mCommandHandler);
|
||||
}
|
||||
|
||||
inline
|
||||
DynamicDialog::~DynamicDialog()
|
||||
{
|
||||
removeHandler(VectorHandler::DestroyHandler,&mDestroyHandler);
|
||||
removeHandler(VectorHandler::InitDialogHandler,&mInitDialogHandler);
|
||||
removeHandler(VectorHandler::CloseHandler,&mCloseHandler);
|
||||
removeHandler(VectorHandler::DialogCodeHandler,&mDialogCodeHandler);
|
||||
removeHandler(VectorHandler::CommandHandler,&mCommandHandler);
|
||||
}
|
||||
#endif
|
||||
|
||||
104
dialog/DYNDLG.CPP
Normal file
104
dialog/DYNDLG.CPP
Normal file
@@ -0,0 +1,104 @@
|
||||
#include <dialog/dyndlg.hpp>
|
||||
#include <common/widestr.hpp>
|
||||
|
||||
DynamicDialog::DynamicDialog(void)
|
||||
{
|
||||
mDestroyHandler.setCallback(this,&DynamicDialog::destroyHandler);
|
||||
mInitDialogHandler.setCallback(this,&DynamicDialog::initDialogHandler);
|
||||
mCloseHandler.setCallback(this,&DynamicDialog::closeHandler);
|
||||
mDialogCodeHandler.setCallback(this,&DynamicDialog::dialogCodeHandler);
|
||||
mCommandHandler.setCallback(this,&DynamicDialog::commandHandler);
|
||||
insertHandler(VectorHandler::DestroyHandler,&mDestroyHandler);
|
||||
insertHandler(VectorHandler::InitDialogHandler,&mInitDialogHandler);
|
||||
insertHandler(VectorHandler::CloseHandler,&mCloseHandler);
|
||||
insertHandler(VectorHandler::DialogCodeHandler,&mDialogCodeHandler);
|
||||
insertHandler(VectorHandler::CommandHandler,&mCommandHandler);
|
||||
}
|
||||
|
||||
DynamicDialog::DynamicDialog(const DynamicDialog &someDynamicDialog)
|
||||
{
|
||||
mDestroyHandler.setCallback(this,&DynamicDialog::destroyHandler);
|
||||
mInitDialogHandler.setCallback(this,&DynamicDialog::initDialogHandler);
|
||||
mCloseHandler.setCallback(this,&DynamicDialog::closeHandler);
|
||||
mDialogCodeHandler.setCallback(this,&DynamicDialog::dialogCodeHandler);
|
||||
mCommandHandler.setCallback(this,&DynamicDialog::commandHandler);
|
||||
insertHandler(VectorHandler::DestroyHandler,&mDestroyHandler);
|
||||
insertHandler(VectorHandler::InitDialogHandler,&mInitDialogHandler);
|
||||
insertHandler(VectorHandler::CloseHandler,&mCloseHandler);
|
||||
insertHandler(VectorHandler::DialogCodeHandler,&mDialogCodeHandler);
|
||||
insertHandler(VectorHandler::CommandHandler,&mCommandHandler);
|
||||
}
|
||||
|
||||
DynamicDialog::~DynamicDialog()
|
||||
{
|
||||
removeHandler(VectorHandler::DestroyHandler,&mDestroyHandler);
|
||||
removeHandler(VectorHandler::InitDialogHandler,&mInitDialogHandler);
|
||||
removeHandler(VectorHandler::CloseHandler,&mCloseHandler);
|
||||
removeHandler(VectorHandler::DialogCodeHandler,&mDialogCodeHandler);
|
||||
removeHandler(VectorHandler::CommandHandler,&mCommandHandler);
|
||||
}
|
||||
|
||||
void DynamicDialog::createDialog(HWND hParent,DialogTemplate &someDialogTemplate,DialogType typeDialog)
|
||||
{
|
||||
HINSTANCE hInstance((HINSTANCE)::GetWindowLong(hParent,GWL_HINSTANCE));
|
||||
if(ModalDialog==typeDialog)::DialogBoxIndirectParam(hInstance,(DLGTEMPLATE*)someDialogTemplate,hParent,DWindow::DlgProc,(LONG)(LPSTR)(DWindow*)this);
|
||||
else if(!isValid())::CreateDialogIndirectParam(hInstance,(DLGTEMPLATE*)someDialogTemplate,hParent,DWindow::DlgProc,(LONG)(LPSTR)(DWindow*)this);
|
||||
}
|
||||
|
||||
void DynamicDialog::createDialog(DialogTemplate &someDialogTemplate,DialogType typeDialog)
|
||||
{
|
||||
if(ModalDialog==typeDialog)::DialogBoxIndirectParam(processInstance(),(DLGTEMPLATE*)someDialogTemplate,(HWND)0,DWindow::DlgProc,(LONG)(LPSTR)(DWindow*)this);
|
||||
else if(!isValid())::CreateDialogIndirectParam(processInstance(),(DLGTEMPLATE*)someDialogTemplate,(HWND)0,DWindow::DlgProc,(LONG)(LPSTR)(DWindow*)this);
|
||||
}
|
||||
|
||||
CallbackData::ReturnType DynamicDialog::closeHandler(CallbackData &/*someCallbackData*/)
|
||||
{
|
||||
destroy();
|
||||
return (CallbackData::ReturnType)FALSE;
|
||||
}
|
||||
|
||||
CallbackData::ReturnType DynamicDialog::destroyHandler(CallbackData &someCallbackData)
|
||||
{
|
||||
dlgDestroyDialog(someCallbackData);
|
||||
return (CallbackData::ReturnType)FALSE;
|
||||
}
|
||||
|
||||
CallbackData::ReturnType DynamicDialog::initDialogHandler(CallbackData &someCallbackData)
|
||||
{
|
||||
return dlgInitDialog(someCallbackData);
|
||||
}
|
||||
|
||||
CallbackData::ReturnType DynamicDialog::commandHandler(CallbackData &someCallbackData)
|
||||
{
|
||||
WORD cmdReturn(dlgCommand(someCallbackData.wmCommandID(),someCallbackData));
|
||||
if(IDCANCEL==someCallbackData.wmCommandID()&&!cmdReturn)endDialog(FALSE);
|
||||
else if(IDOK==someCallbackData.wmCommandID()&&!cmdReturn)endDialog(TRUE);
|
||||
return (CallbackData::ReturnType)FALSE;
|
||||
}
|
||||
|
||||
CallbackData::ReturnType DynamicDialog::dialogCodeHandler(CallbackData &someCallbackData)
|
||||
{
|
||||
return dlgCode(someCallbackData);
|
||||
}
|
||||
|
||||
// *** virtuals
|
||||
|
||||
WORD DynamicDialog::dlgCommand(DWORD /*commandID*/,CallbackData &/*someCallbackData*/)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
WORD DynamicDialog::dlgCode(CallbackData &/*someCallbackData*/)
|
||||
{
|
||||
return DLGC_WANTTAB;
|
||||
}
|
||||
|
||||
BOOL DynamicDialog::dlgInitDialog(CallbackData &/*someCallbackData*/)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void DynamicDialog::dlgDestroyDialog(CallbackData &/*someCallbackData*/)
|
||||
{
|
||||
}
|
||||
|
||||
46
dialog/DYNDLG.HPP
Normal file
46
dialog/DYNDLG.HPP
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef _DIALOG_DYNAMICDIALOG_HPP_
|
||||
#define _DIALOG_DYNAMICDIALOG_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_DWINDOW_HPP_
|
||||
#include <common/dwindow.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_CALLBACK_HPP_
|
||||
#include <common/callback.hpp>
|
||||
#endif
|
||||
#ifndef _DIALOG_DIALOGITEMTEMPLATE_HPP_
|
||||
#include <dialog/dlgitem.hpp>
|
||||
#endif
|
||||
#ifndef _DIALOG_DIALOGTEMPLATE_HPP_
|
||||
#include <dialog/dlgtmpl.hpp>
|
||||
#endif
|
||||
|
||||
class DynamicDialog : public DWindow
|
||||
{
|
||||
public:
|
||||
enum DialogType{ModalDialog,ModelessDialog};
|
||||
DynamicDialog(void);
|
||||
virtual ~DynamicDialog();
|
||||
void createDialog(HWND hParentWnd,DialogTemplate &someDialogTemplate,DialogType typeDialog=ModalDialog);
|
||||
void createDialog(DialogTemplate &someDialogTemplate,DialogType typeDialog=ModalDialog);
|
||||
protected:
|
||||
virtual WORD dlgCommand(DWORD commandID,CallbackData &someCallbackData);
|
||||
virtual WORD dlgCode(CallbackData &someCallbackData);
|
||||
virtual BOOL dlgInitDialog(CallbackData &someCallbackData);
|
||||
virtual void dlgDestroyDialog(CallbackData &someCallbackData);
|
||||
private:
|
||||
DynamicDialog(const DynamicDialog &someDynamicDialog);
|
||||
CallbackData::ReturnType initDialogHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType closeHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType destroyHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType dialogCodeHandler(CallbackData &someCallbackData);
|
||||
CallbackData::ReturnType commandHandler(CallbackData &someCallbackData);
|
||||
Callback<DynamicDialog> mInitDialogHandler;
|
||||
Callback<DynamicDialog> mCloseHandler;
|
||||
Callback<DynamicDialog> mDestroyHandler;
|
||||
Callback<DynamicDialog> mDialogCodeHandler;
|
||||
Callback<DynamicDialog> mCommandHandler;
|
||||
};
|
||||
#endif
|
||||
|
||||
114
dialog/Dialog.001
Normal file
114
dialog/Dialog.001
Normal file
@@ -0,0 +1,114 @@
|
||||
# Microsoft Developer Studio Project File - Name="dialog" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
CFG=dialog - Win32 Release
|
||||
!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 "dialog.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 "dialog.mak" CFG="dialog - Win32 Release"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "dialog - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "dialog - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir ".\Release"
|
||||
# PROP BASE Intermediate_Dir ".\Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir ".\Release"
|
||||
# PROP Intermediate_Dir ".\Release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir ".\dialog__"
|
||||
# PROP BASE Intermediate_Dir ".\dialog__"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir ".\msvcobj"
|
||||
# PROP Intermediate_Dir ".\msvcobj"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /Zp1 /MTd /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /Fp"..\exe\msvc42.pch" /YX"windows.h" /FD /c
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"..\exe\msdialog.lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "dialog - Win32 Release"
|
||||
# Name "dialog - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgtmpl.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dyndlg.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Stdtmpl.cpp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgitem.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgtmpl.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dyndlg.hpp
|
||||
# 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"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
||||
120
dialog/Dialog.dsp
Normal file
120
dialog/Dialog.dsp
Normal file
@@ -0,0 +1,120 @@
|
||||
# Microsoft Developer Studio Project File - Name="dialog" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
CFG=dialog - Win32 Release
|
||||
!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 "Dialog.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 "Dialog.mak" CFG="dialog - Win32 Release"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "dialog - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "dialog - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir ".\Release"
|
||||
# PROP BASE Intermediate_Dir ".\Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir ".\Release"
|
||||
# PROP Intermediate_Dir ".\Release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /MT /GX /O2 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir ".\dialog__"
|
||||
# PROP BASE Intermediate_Dir ".\dialog__"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir ".\msvcobj"
|
||||
# PROP Intermediate_Dir ".\msvcobj"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /Gz /MTd /Zi /Od /D "_DEBUG" /D "__FLAT__" /D "STRICT" /D "WIN32" /D "_WINDOWS" /Fp"..\exe\msvc42.pch" /YX"windows.h" /FD /c
|
||||
# ADD BASE RSC /l 0x409
|
||||
# ADD RSC /l 0x409
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"..\exe\msdialog.lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "dialog - Win32 Release"
|
||||
# Name "dialog - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgtmpl.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dyndlg.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Stdtmpl.cpp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgitem.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgtmpl.hpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dyndlg.hpp
|
||||
# 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"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
||||
380
dialog/Dialog.mak
Normal file
380
dialog/Dialog.mak
Normal file
@@ -0,0 +1,380 @@
|
||||
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
!IF "$(CFG)" == ""
|
||||
CFG=dialog - Win32 Debug
|
||||
!MESSAGE No configuration specified. Defaulting to dialog - Win32 Debug.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" != "dialog - Win32 Release" && "$(CFG)" != "dialog - Win32 Debug"
|
||||
!MESSAGE Invalid configuration "$(CFG)" specified.
|
||||
!MESSAGE You can specify a configuration when running NMAKE on this makefile
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Dialog.mak" CFG="dialog - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "dialog - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "dialog - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
!ERROR An invalid configuration is specified.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(OS)" == "Windows_NT"
|
||||
NULL=
|
||||
!ELSE
|
||||
NULL=nul
|
||||
!ENDIF
|
||||
################################################################################
|
||||
# Begin Project
|
||||
# PROP Target_Last_Scanned "dialog - Win32 Debug"
|
||||
CPP=cl.exe
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Target_Dir ""
|
||||
OUTDIR=.\Release
|
||||
INTDIR=.\Release
|
||||
|
||||
ALL : "$(OUTDIR)\Dialog.lib"
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\Dlgtmpl.obj"
|
||||
-@erase "$(INTDIR)\Dyndlg.obj"
|
||||
-@erase "$(INTDIR)\Stdtmpl.obj"
|
||||
-@erase "$(OUTDIR)\Dialog.lib"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
|
||||
CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS"\
|
||||
/Fp"$(INTDIR)/Dialog.pch" /YX /Fo"$(INTDIR)/" /c
|
||||
CPP_OBJS=.\Release/
|
||||
CPP_SBRS=.\.
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Dialog.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo
|
||||
LIB32_FLAGS=/nologo /out:"$(OUTDIR)/Dialog.lib"
|
||||
LIB32_OBJS= \
|
||||
"$(INTDIR)\Dlgtmpl.obj" \
|
||||
"$(INTDIR)\Dyndlg.obj" \
|
||||
"$(INTDIR)\Stdtmpl.obj"
|
||||
|
||||
"$(OUTDIR)\Dialog.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS)
|
||||
$(LIB32) @<<
|
||||
$(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS)
|
||||
<<
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "dialog__"
|
||||
# PROP BASE Intermediate_Dir "dialog__"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "msvcobj"
|
||||
# PROP Intermediate_Dir "msvcobj"
|
||||
# PROP Target_Dir ""
|
||||
OUTDIR=.\msvcobj
|
||||
INTDIR=.\msvcobj
|
||||
|
||||
ALL : "..\exe\msdialog.lib"
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\Dlgtmpl.obj"
|
||||
-@erase "$(INTDIR)\Dyndlg.obj"
|
||||
-@erase "$(INTDIR)\Stdtmpl.obj"
|
||||
-@erase "..\exe\msdialog.lib"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
|
||||
# ADD CPP /nologo /Zp1 /MTd /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /Fp"..\exe\msvc42.pch" /YX"windows.h" /c
|
||||
CPP_PROJ=/nologo /Zp1 /MTd /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D\
|
||||
"__FLAT__" /D "STRICT" /Fp"..\exe\msvc42.pch" /YX"windows.h" /Fo"$(INTDIR)/" /c\
|
||||
|
||||
CPP_OBJS=.\msvcobj/
|
||||
CPP_SBRS=.\.
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Dialog.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"..\exe\msdialog.lib"
|
||||
LIB32_FLAGS=/nologo /out:"..\exe\msdialog.lib"
|
||||
LIB32_OBJS= \
|
||||
"$(INTDIR)\Dlgtmpl.obj" \
|
||||
"$(INTDIR)\Dyndlg.obj" \
|
||||
"$(INTDIR)\Stdtmpl.obj"
|
||||
|
||||
"..\exe\msdialog.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS)
|
||||
$(LIB32) @<<
|
||||
$(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_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) $<
|
||||
|
||||
################################################################################
|
||||
# Begin Target
|
||||
|
||||
# Name "dialog - Win32 Release"
|
||||
# Name "dialog - Win32 Debug"
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
################################################################################
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Stdtmpl.cpp
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
DEP_CPP_STDTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Fixup.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.tpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Stdtmpl.obj" : $(SOURCE) $(DEP_CPP_STDTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
DEP_CPP_STDTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pvector.tpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Stdtmpl.obj" : $(SOURCE) $(DEP_CPP_STDTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
################################################################################
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dyndlg.cpp
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
DEP_CPP_DYNDL=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dyndlg.obj" : $(SOURCE) $(DEP_CPP_DYNDL) "$(INTDIR)"
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
DEP_CPP_DYNDL=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\.\Dyndlg.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.hpp"\
|
||||
{$(INCLUDE)}"\Common\Callback.tpp"\
|
||||
{$(INCLUDE)}"\Common\Cbdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Cbptr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Dwindow.hpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Guiwnd.hpp"\
|
||||
{$(INCLUDE)}"\Common\Pcallbck.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Vhandler.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windowsx.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dyndlg.obj" : $(SOURCE) $(DEP_CPP_DYNDL) "$(INTDIR)"
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
################################################################################
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Dlgtmpl.cpp
|
||||
|
||||
!IF "$(CFG)" == "dialog - Win32 Release"
|
||||
|
||||
DEP_CPP_DLGTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dlgtmpl.obj" : $(SOURCE) $(DEP_CPP_DLGTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ELSEIF "$(CFG)" == "dialog - Win32 Debug"
|
||||
|
||||
DEP_CPP_DLGTM=\
|
||||
{$(INCLUDE)}"\.\Dlgitem.hpp"\
|
||||
{$(INCLUDE)}"\.\Dlgtmpl.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.hpp"\
|
||||
{$(INCLUDE)}"\Common\Block.tpp"\
|
||||
{$(INCLUDE)}"\Common\except.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.hpp"\
|
||||
{$(INCLUDE)}"\Common\Gdata.tpp"\
|
||||
{$(INCLUDE)}"\Common\Gdipoint.hpp"\
|
||||
{$(INCLUDE)}"\Common\Point.hpp"\
|
||||
{$(INCLUDE)}"\Common\Rect.hpp"\
|
||||
{$(INCLUDE)}"\Common\Stdlib.hpp"\
|
||||
{$(INCLUDE)}"\Common\String.hpp"\
|
||||
{$(INCLUDE)}"\Common\Types.hpp"\
|
||||
{$(INCLUDE)}"\Common\Widestr.hpp"\
|
||||
{$(INCLUDE)}"\Common\Windows.hpp"\
|
||||
|
||||
|
||||
"$(INTDIR)\Dlgtmpl.obj" : $(SOURCE) $(DEP_CPP_DLGTM) "$(INTDIR)"
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
################################################################################
|
||||
BIN
dialog/Release/Dialog.lib
Normal file
BIN
dialog/Release/Dialog.lib
Normal file
Binary file not shown.
BIN
dialog/Release/vc60.idb
Normal file
BIN
dialog/Release/vc60.idb
Normal file
Binary file not shown.
14
dialog/STDTMPL.CPP
Normal file
14
dialog/STDTMPL.CPP
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef _MSC_VER
|
||||
#define _EXPAND_VECTOR_TEMPLATES_
|
||||
#define _EXPAND_BLOCK_TEMPLATES_
|
||||
#include <common/pvector.hpp>
|
||||
#include <common/pvector.tpp>
|
||||
#include <common/block.hpp>
|
||||
#include <common/block.tpp>
|
||||
#include <common/callback.hpp>
|
||||
#include <common/callback.tpp>
|
||||
#include <dialog/dyndlg.hpp>
|
||||
|
||||
typedef Block<DialogItemTemplate> g;
|
||||
#endif
|
||||
|
||||
BIN
dialog/dialog.mdp
Normal file
BIN
dialog/dialog.mdp
Normal file
Binary file not shown.
Reference in New Issue
Block a user