Clean bloat comments
Please make sure these were bloat and not important.
This commit is contained in:
@@ -54,9 +54,6 @@ HRESULT IEBrowser::doExternal(std::wstring funcName,
|
||||
else if (funcName==L"SetController")
|
||||
{
|
||||
bool ding = false;
|
||||
//int len = SysStringLen(pDispParams->rgvarg->bstrVal)+1;
|
||||
//char * args = new char[len];
|
||||
//WideCharToMultiByte(CP_ACP, 0, pDispParams->rgvarg->bstrVal, len, args, len, NULL, (LPBOOL)TRUE);
|
||||
if(pDispParams->rgvarg->intVal < 0 || pDispParams->rgvarg->intVal > 7)
|
||||
return S_OK;
|
||||
Enum::Controller::Value cont = (Enum::Controller::Value)pDispParams->rgvarg->intVal;
|
||||
@@ -78,20 +75,9 @@ HRESULT IEBrowser::doExternal(std::wstring funcName,
|
||||
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(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")
|
||||
@@ -112,11 +98,6 @@ HRESULT IEBrowser::doExternal(std::wstring funcName,
|
||||
color.Flags = CC_FULLOPEN | CC_RGBINIT;
|
||||
if(ChooseColorA((LPCHOOSECOLOR)&color))
|
||||
{
|
||||
//DWORD dwR = GetRValue(color.rgbResult);
|
||||
//DWORD dwG = GetGValue(color.rgbResult);
|
||||
//DWORD dwB = GetBValue(color.rgbResult);
|
||||
//wchar_t * str = L"Test";
|
||||
//swprintf_s(str, 16, L"#%02X%02X%02X", dwR, dwG, dwB);
|
||||
pVarResult->vt = VT_UI4;
|
||||
pVarResult->ulVal = color.rgbResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user