RPR GetMainHwnd
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetMainHwnd
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetMainHwnd
Contents |
GetMainHwnd()
HWND GetMainHwnd()
Gets the HWND, the windows handle, of the main REAPER window
Parameters
None
Returns
HWND
Examples
C++
void SetReaperWndSize(COMMAND_T* = NULL) { int x = GetPrivateProfileInt("REAPER", "setwndsize_x", 640, get_ini_file()); int y = GetPrivateProfileInt("REAPER", "setwndsize_y", 480, get_ini_file()); HWND hwnd = GetMainHwnd(); SetWindowPos(hwnd, NULL, 0, 0, x, y, SWP_NOMOVE | SWP_NOZORDER); }
Perl
Python
See Also
window: GetTooltipWindow, TrackList_AdjustWindows, DockWindowActivate, DockWindowAdd, DockWindowRemove,
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetMainHwnd
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetMainHwnd