The GetWindow function retrieves a handle to a window that has the specified relationship (Z order or owner) to the specified window.
get Origin window handle
HWND GetWindow( HWND hWnd, UINT uCmd )
HWND GetWindow( int nWin = OGW_MAIN )
The window handle of an Origin window.
EX1
int GetWindow_ex1() { HWND hwnd = GetWindow(); MessageBox(hwnd, "This is a test", "TestGetWindow"); return 1; }
retrieves the Windows handle of Origin's internal windows.
GetMenu
origin.h