I created a dummy class for SomeClass and "this" wasn't underlined anymore. So I decided to extend the snippet to a compilable form but I still don't see any underline.
What am I doing differently?
What Visual Assist and Visual Studio versions are you using?
I moved SomeFunctionCallback to a class, because the last parameter of MEventMessage::addEventCallback suggests that SomeFunctionCallback is in a class:
class SomeBaseClass
{
};
typedef void (SomeBaseClass::*METHODPTR)(void*);
class SomeClass : public SomeBaseClass
{
public:
void SomeMethod();
void SomeFunctionCallback(void * clientData) {}
};
class MEventMessage
{
public:
static int addEventCallback(char* str, METHODPTR method, SomeBaseClass* obj) {return 0;}
};
void SomeClass::SomeMethod()
{
int id = MEventMessage::addEventCallback("PreFileNewOrOpened", (METHODPTR)&SomeClass::SomeFunctionCallback, this);
}