Update of /cvsroot/win32forth/win32forth-extsrc/extsrc/w32fHtmlDisplay In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22808/extsrc/w32fHtmlDisplay Added Files: resource.h w32fHtmlDisplay.c w32fHtmlDisplay.def w32fHtmlDisplay.dsp w32fHtmlDisplay.dsw w32fHtmlDisplay.h w32fHtmlDisplay.rc Log Message: Commit of base Win32Forth-extsrc --- NEW FILE: w32fHtmlDisplay.h --- /* * This include file is meant to be included with any C source you * write which uses the cwebpage DLL. */ #ifndef __CWEBPAGE_H_INCLUDED #define __CWEBPAGE_H_INCLUDED #include <windows.h> #ifdef __cplusplus { #endif long WINAPI EmbedBrowserObject(HWND); #define EMBEDBROWSEROBJECT EmbedBrowserObject typedef long WINAPI EmbedBrowserObjectPtr(HWND); void WINAPI UnEmbedBrowserObject(HWND); #define UNEMBEDBROWSEROBJECT UnEmbedBrowserObject typedef long WINAPI UnEmbedBrowserObjectPtr(HWND); long WINAPI DisplayHTMLPage(HWND, LPCTSTR); #define DISPLAYHTMLPAGE DisplayHTMLPage typedef long WINAPI DisplayHTMLPagePtr(HWND, LPCTSTR); long WINAPI DisplayHTMLStr(HWND, LPCTSTR); #define DISPLAYHTMLSTR DisplayHTMLStr typedef long WINAPI DisplayHTMLStrPtr(HWND, LPCTSTR); void WINAPI ResizeBrowser(HWND, DWORD, DWORD); #define RESIZEBROWSER ResizeBrowser typedef void WINAPI ResizeBrowserPtr(HWND, DWORD, DWORD); #define WEBPAGE_GOBACK 0 #define WEBPAGE_GOFORWARD 1 #define WEBPAGE_GOHOME 2 #define WEBPAGE_SEARCH 3 #define WEBPAGE_REFRESH 4 #define WEBPAGE_STOP 5 void WINAPI DoPageAction(HWND, DWORD); #define DOPAGEACTION DoPageAction typedef void WINAPI DoPageActionPtr(HWND, DWORD); #ifdef __cplusplus } #endif #endif /* __CWEBPAGE_H_INCLUDED */ --- NEW FILE: w32fHtmlDisplay.dsp --- # Microsoft Developer Studio Project File - Name="DLL" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** NICHT BEARBEITEN ** # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 CFG=DLL - Win32 Debug !MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE !MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl !MESSAGE !MESSAGE NMAKE /f "w32fHtmlDisplay.mak". !MESSAGE !MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben !MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: !MESSAGE !MESSAGE NMAKE /f "w32fHtmlDisplay.mak" CFG="DLL - Win32 Debug" !MESSAGE !MESSAGE Für die Konfiguration stehen zur Auswahl: !MESSAGE !MESSAGE "DLL - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library") !MESSAGE "DLL - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe MTL=midl.exe RSC=rc.exe !IF "$(CFG)" == "DLL - 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 Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLL_EXPORTS" /YX /FD /c # ADD CPP /nologo /MT /W3 /Ob2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLL_EXPORTS" /FR /YX /FD /c # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "NDEBUG" # ADD RSC /l 0x409 /d "NDEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib LIBC.LIB /nologo /dll /machine:I386 /nodefaultlib /out:"../../w32fHtmlDisplay.dll" /section:Shared,rws # SUBTRACT LINK32 /pdb:none !ELSEIF "$(CFG)" == "DLL - Win32 Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "Debug" # PROP BASE Intermediate_Dir "Debug" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # 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 /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLL_EXPORTS" /YX /FD /GZ /c # ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLL_EXPORTS" /FR /YX /FD /GZ /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"../../w32fHtmlDisplay.dll" /pdbtype:sept # SUBTRACT LINK32 /nodefaultlib !ENDIF # Begin Target # Name "DLL - Win32 Release" # Name "DLL - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=.\w32fHtmlDisplay.c # End Source File # Begin Source File SOURCE=.\w32fHtmlDisplay.def # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File SOURCE=.\w32fHtmlDisplay.h # End Source File # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # Begin Source File SOURCE=.\w32fHtmlDisplay.rc # End Source File # End Group # End Target # End Project --- NEW FILE: w32fHtmlDisplay.c --- /* * Dll.c -- A dynamic link library to display a web page in your own window. * * This is very loosely based upon a C++ example written by Chris Becke. I used * that to learn the minimum of what I needed to know about hosting the browser * object. Then I wrote this example from the ground up in C. * * The functions in this DLL callable by a program: * * EmbedBrowserObject() -- Embeds a browser object in your own window. * UnEmbedBrowserObject() -- Detaches the browser object from your window. * DisplayHTMLPage() -- Displays a URL or HTML file on disk. * DisplayHTMLStr() -- Displays a (in memory) string of HTML code. * * For the release (ie, not debug) version, then you should set your linker to * ignore the default libraries. This will reduce code size. */ #include <windows.h> [...1941 lines suppressed...] } /* case DLL_THREAD_DETACH: { break; } */ /* ============================================================== */ case DLL_PROCESS_DETACH: { OleUninitialize(); UnregisterClass( "w32fHtmlDisplayClass", hinstDLL ); } } /* Success */ return(1); } --- NEW FILE: w32fHtmlDisplay.rc --- //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 ///////////////////////////////////////////////////////////////////////////// // Deutsch (Deutschland) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) #ifdef _WIN32 LANGUAGE LANG_GERMAN, SUBLANG_GERMAN #pragma code_page(1252) #endif //_WIN32 #ifndef _MAC ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,0,3 PRODUCTVERSION 1,0,0,3 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x40004L FILETYPE 0x2L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040704b0" BEGIN VALUE "Comments", "\0" VALUE "CompanyName", "Win32Forth developer team\0" VALUE "FileDescription", "HTML display for Win32Forth\0" VALUE "FileVersion", "1, 0, 0, 3\0" VALUE "InternalName", "w32fHtmlDisplay\0" VALUE "LegalCopyright", "Copyright 2004 Win32Forth developer team\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "w32fHtmlDisplay.dll\0" VALUE "PrivateBuild", "\0" VALUE "ProductName", "Win32Forth\0" VALUE "ProductVersion", "1, 0, 0, 3\0" VALUE "SpecialBuild", "\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x407, 1200 END END #endif // !_MAC #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 "\r\n" "\0" END #endif // APSTUDIO_INVOKED #endif // Deutsch (Deutschland) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED --- NEW FILE: resource.h --- //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by w32fHtmlDisplay.rc // // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 101 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1000 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif --- NEW FILE: w32fHtmlDisplay.def --- LIBRARY w32fHtmlDisplay EXPORTS EmbedBrowserObject UnEmbedBrowserObject DisplayHTMLStr DisplayHTMLPage ResizeBrowser DoPageAction --- NEW FILE: w32fHtmlDisplay.dsw --- Microsoft Developer Studio Workspace File, Format Version 6.00 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! ############################################################################### Project: "DLL"=.\DLL.dsp - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ }}} ############################################################################### Global: Package=<5> {{{ }}} Package=<3> {{{ }}} ############################################################################### |