Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 06-08-2018, 03:29 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default SWS and macOS compatibility: GetClientRect and other functions in windows.h

I noticed that some SWS functions (for example BR_GetMouseCursorContext) call "GetClientRect" and "WindowFromPoint", and I am curious to know how this works on a Mac.

Are GetClientRect and WindowFromPoint not Windows-specific functions?

(AFAIK they require User32.lib and are declared in windows.h.)
juliansader is offline   Reply With Quote
Old 06-08-2018, 03:51 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Cockos WDL's SWELL implements the win32 API partially for OS-X. You need to be careful what things you use from the win32 API to keep SWELL compatibility.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 06-08-2018, 09:35 AM   #3
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

SWELL provides macOS and Linux implementations of both GetClientRect and WindowFromPoint.
cfillion is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.