... //g_hWnd = Frame.hWnd(); g_hWnd = WinApi::findWindow("AxaptaClientClassName", ""); g_hWnd = WinApi::findWindowEx(g_hWnd, 0, "", ""); ...