I should explain why I was doing that in the first place: we have a message service, so we have abstracted the wmessagebox. The initial call to our message service passes the complete reference to the desired callback method. Our message service then passes that along to wmessagebox.