COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 06-26-2018, 05:16 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,192
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
Old 06-26-2018, 01:45 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,309
Default

They both return void (the comment is wrong). The SWELL functions don't always match their Windows counterpart.
cfillion is online now   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 01:21 PM.


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