/*
 * instance.c --
 *
 * Copyright (c) 1994 Software Research Associates, Inc.
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation for any purpose and without fee is hereby granted, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Software Research Associates not be
 * used in advertising or publicity pertaining to distribution of the
 * software without specific, written prior permission.  Software Research
 * Associates makes no representations about the suitability of this software
 * for any purpose.  It is provided "as is" without express or implied
 * warranty.
 */

#include "xlibInt.h" 

static HINSTANCE hAppInst;
static HWND hTBwnd;

void
SetAppInstance(HINSTANCE hInstance)
{
    hAppInst = hInstance;
}
	
HINSTANCE
GetAppInstance(void)
{
    return hAppInst;
}

/* Obsolete name, maintained for compatability */
void
SetTbWindow(HWND hwnd)
{
    hTBwnd = hwnd;
}

/* Obsolete name, maintained for compatability */
HWND
GetTbWindow(void)
{
    return hTBwnd;
}

void
SetPostWindow(HWND hwnd)
{
    hTBwnd = hwnd;
}

HWND
GetPostWindow(void)
{
    return hTBwnd;
}

void
DestroyPostWindow(void)
{
    DestroyWindow(hTBwnd);
}

