In this post, with regards to using OnMessage() to call a method of a class, it is stated:
This first parameter is passed as This if a class/object method is called.from OnMessage() as Lexikos already stated.
Thus, the this object should be passed as the first parameter, yet it isn't accessible, as below:
Gui, Add, Text, , Click me! Gui,Show OnMessage(0x201,"b.a") class b { a(p*) { ; "This first parameter is passed as This if a class/object method is called.from OnMessage() as Lexikos already stated." msgbox % IsObject(p.1) } } return esc::ExitApp
Is it possible to access the this object from a method called by OnMessage()? How?