|
From: kimosabe <ka...@ka...> - 2012-06-15 19:21:29
|
Here is a simple solution:
// Detects if UDF is being called from the function wizard.
template<class X>
inline bool in_function_wizard(void)
{
return !Excel<X>(xlfGetTool, XOPER<X>(4), XOPER<X>(_T("Standard")),
XOPER<X>(1));
}
This uses the library from http://xll.codeplex.com http://xll.codeplex.com
, but you get the idea. No need to enumerate windows like in the Excel SDK
example. Enjoy!
--
View this message in context: http://old.nabble.com/Detecting-calls-from-the-Function-Wizard.-tp34020083p34020083.html
Sent from the quantlib-dev mailing list archive at Nabble.com.
|