home *** CD-ROM | disk | FTP | other *** search
- //
- // Copyright (c) 1996 Vermeer Technologies, Inc., a wholly owned
- // subsidiary of Microsoft Corp. All Rights Reserved
- //
- // File: simple.cpp
- // Defines the initialization routines for the DLL.
- //
-
- #include "stdafx.h"
- #include "simple.h"
- #include "simpledialog.h"
- #include "../webbot.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CSimpleApp
-
- BEGIN_MESSAGE_MAP(CSimpleApp, CWinApp)
- //{{AFX_MSG_MAP(CSimpleApp)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CSimpleApp construction
-
- CSimpleApp::CSimpleApp()
- {
- // TODO: add construction code here,
- // Place all significant initialization in InitInstance
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // The one and only CSimpleApp object
-
- CSimpleApp theApp;
-
- BeginWebBotExpand(simple,ret,botAttribs,cgi,form)
- {
- ret.Append(botAttribs.GetValue("ExpandTo"));
- }
- EndWebBotExpand
-
-
-
- BeginWebBotEdit(simple, botAttribs)
- {
- CSimpleDialog dlg;
- dlg.m_edit = botAttribs.GetValue("PREVIEW");
- int nResponse = dlg.DoModal();
- botAttribs.SetValue("ExpandTo", dlg.m_edit);
- botAttribs.SetValue("PREVIEW", dlg.m_edit);
- return (nResponse == IDOK);
- }
- EndWebBotEdit
-