Extend static functions in CAppUtils with a window handle parameter