Added surface tool
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#include "Globals.h"
|
||||
#pragma once
|
||||
#include "ax.h"
|
||||
#include "Tool/SurfaceTool.h"
|
||||
#include "Application.h"
|
||||
|
||||
HRESULT IEBrowser::doExternal(std::wstring funcName,
|
||||
DISPID dispIdMember,
|
||||
@@ -53,6 +55,28 @@ HRESULT IEBrowser::doExternal(std::wstring funcName,
|
||||
AudioPlayer::playSound(dingSound);
|
||||
return S_OK;
|
||||
}
|
||||
else if(funcName==L"SetSurface")
|
||||
{
|
||||
if(pDispParams->cArgs < 2)
|
||||
return E_NOTIMPL;
|
||||
int j = pDispParams->rgvarg->intVal;
|
||||
int i = (pDispParams->rgvarg+1)->intVal;
|
||||
printf("Got values %d and %d", i, j);
|
||||
if(i > 5 || i < 0)
|
||||
return E_NOTIMPL;
|
||||
g_usableApp->changeTool(new SurfaceTool((Enum::SurfaceType::Value)i, j));
|
||||
/*VARIANT val1;
|
||||
VARIANT val2;
|
||||
unsigned int puArgErr;
|
||||
HRESULT res = DispGetParam(pDispParams,1,VT_VARIANT,&val1, &puArgErr);
|
||||
if(res != S_OK)
|
||||
return res;
|
||||
//res = DispGetParam(pDispParams,1,VT_UI4,&val2, &puArgErr);
|
||||
//if(res != S_OK)
|
||||
//return res;
|
||||
*/
|
||||
return S_OK;
|
||||
}
|
||||
else if(funcName==L"SetColor")
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user