On 30/04/2015 at 05:59, xxxxxxxx wrote:
what do you mean by putting "BaseDocument* doc inside my parameters of Message"?
Do you mean, you are changing the prototype of Message? That cannot work.
Instead cast the data parameter (void* type) into a BaseDocument pointer. Like so:
BaseDocument* doc = static_cast<BaseDocument*>data;
Of course only in the case of MSG_MENUPREPARE.