C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_wsetfocus
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _wsetfocus function makes a QuickWin window the active window
     (sets the program's focus to the window). This routine is used
     only in QuickWin programs; it is not part of the Windows API. For
     full details about QuickWin, see Chapter 8 of the Programming
     Techniques manual.
 
     If the application has focus, the window gets focus. If not, the
     window will get the focus when the application gets focus.
 
     If the program has other child windows, the focused window moves
     in front of them and is highlighted. This does not automatically
     direct I/O to the window. All I/O calls specify which window they
     are directed to by passing a stream pointer or file handle as an
     argument.
 
     Return Value
 
     If successful, _wsetfocus returns 0. A return value of -1
     indicates that the focus failed to change.
                                    -♦-