View Single Post
Old 06-26-2018, 05:16 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,189
Default What do SetFocus and SetForegroundWindow return?

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
);
juliansader is online now   Reply With Quote