I have no choice but to use a static member function for a particular peice of code. But it requires being able to set the text of a pane in my statusbar control and ofcourse, it doesn't work since the status bar is not static and I can't use "this".

In short then, how can I set the text via this static member function?