swell-functions.h declare these as:
Code:
SWELL_API_DEFINE(void, SetFocus,(HWND hwnd)) // these take NSWindow/NSView, and return NSView *
SWELL_API_DEFINE(void, SetForegroundWindow,(HWND hwnd)) // these take NSWindow/NSView, and return NSView *
Do they return an NSview* pointer or void?
The standard Win32 API returns BOOL in the case of SetForegroundWindow, and an HWND in the case of SetFocus:
Code:
BOOL WINAPI SetForegroundWindow(
_In_ HWND hWnd
);
HWND WINAPI SetFocus(
_In_opt_ HWND hWnd
);