Graphics-VTK
view release on metacpan or search on metacpan
Tk/pTk/mTk/vtkTcl/tkWinX.c view on Meta::CPAN
/*
* tkWinX.c --
*
* This file contains Windows emulation procedures for X routines.
*
* Copyright (c) 1995-1996 Sun Microsystems, Inc.
* Copyright (c) 1994 Software Research Associates, Inc.
* Copyright (c) 1998 by Scriptics Corporation.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* RCS: @(#) $Id: tkWinX.c,v 1.1 2002/04/05 03:05:51 A0182636 Exp $
*/
/* This portion of the tkWinX.c file from the Tk distribution is included in the PerlVTK distribution
because the function TkWinChildProc is not exported by perlTk
*/
#include "vtkTkport.h"
extern "C"{
#include "tkInt.h"
#include "tkWinInt.h"
}
#include "tkVMacro.h"
/*
* The zmouse.h file includes the definition for WM_MOUSEWHEEL.
*/
#ifndef __BORLANDC__
#include <zmouse.h>
#endif
#ifndef WM_MOUSEWHEEL
#define WM_MOUSEWHEEL (WM_MOUSELAST+1) // message that will be supported
// by the OS
#endif
/*
* Definitions of extern variables supplied by this file.
*/
/*
* Declarations of static variables used in this file.
*/
static HINSTANCE tkInstance = (HINSTANCE) NULL;
/* Global application instance handle. */
static TkDisplay *winDisplay; /* Display that represents Windows screen. */
static char winScreenName[] = ":0";
/* Default name of windows display. */
static WNDCLASS childClass; /* Window class for child windows. */
static int childClassInitialized = 0; /* Registered child class? */
/*
* Forward declarations of procedures used in this file.
*/
#ifdef __CYGWIN__
static void DisplayFileProc _ANSI_ARGS_((ClientData clientData,
int flags));
#endif
static void GenerateXEvent _ANSI_ARGS_((HWND hwnd, UINT message,
WPARAM wParam, LPARAM lParam));
static unsigned int GetState _ANSI_ARGS_((UINT message, WPARAM wParam,
LPARAM lParam));
static void GetTranslatedKey _ANSI_ARGS_((XKeyEvent *xkey));
/*
*----------------------------------------------------------------------
*
* Tk_GetHINSTANCE --
*
* Retrieves the global instance handle used by the Tk library.
*
* Results:
* Returns the global instance handle.
*
* Side effects:
* None.
*
*----------------------------------------------------------------------
( run in 2.467 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )