/****************************************************************************1* Copyright (c) 1998 Free Software Foundation, Inc. *2* *3* Permission is hereby granted, free of charge, to any person obtaining a *4* copy of this software and associated documentation files (the *5* "Software"), to deal in the Software without restriction, including *6* without limitation the rights to use, copy, modify, merge, publish, *7* distribute, distribute with modifications, sublicense, and/or sell *8* copies of the Software, and to permit persons to whom the Software is *9* furnished to do so, subject to the following conditions: *10* *11* The above copyright notice and this permission notice shall be included *12* in all copies or substantial portions of the Software. *13* *14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *15* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *16* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *17* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *18* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *19* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *20* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *21* *22* Except as contained in this notice, the name(s) of the above copyright *23* holders shall not be used in advertising or otherwise to promote the *24* sale, use or other dealings in this Software without prior written *25* authorization. *26****************************************************************************/2728/****************************************************************************29* Author: Juergen Pfeifer <[email protected]> 1995,1997 *30****************************************************************************/3132#include "form.priv.h"3334MODULE_ID("$Id$")3536/*---------------------------------------------------------------------------37| Facility : libnform38| Function : int set_form_sub(FORM *form, WINDOW *win)39|40| Description : Set the subwindow of the form to win.41|42| Return Values : E_OK - success43| E_POSTED - form is posted44+--------------------------------------------------------------------------*/45int set_form_sub(FORM * form, WINDOW * win)46{47if (form && (form->status & _POSTED))48RETURN(E_POSTED);4950Normalize_Form( form )->sub = win;51RETURN(E_OK);52}5354/*---------------------------------------------------------------------------55| Facility : libnform56| Function : WINDOW *form_sub(const FORM *)57|58| Description : Retrieve the window of the form.59|60| Return Values : The pointer to the Subwindow.61+--------------------------------------------------------------------------*/62WINDOW *form_sub(const FORM * form)63{64const FORM* f = Normalize_Form( form );65return Get_Form_Window(f);66}6768/* frm_sub.c ends here */697071