1998-10-20 01:39:29 +04:00
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// "$Id$"
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2018-02-09 17:39:42 +03:00
|
|
|
// Windows system header file for the Fast Light Tool Kit (FLTK).
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2018-02-01 00:17:17 +03:00
|
|
|
// Copyright 1998-2018 by Bill Spitzak and others.
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// This library is free software. Distribution and use rights are outlined in
|
|
|
|
// the file "COPYING" which should have been included with this file. If this
|
|
|
|
// file is missing or damaged, see the license at:
|
|
|
|
//
|
|
|
|
// http://www.fltk.org/COPYING.php
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2005-04-16 04:13:17 +04:00
|
|
|
// Please report all bugs and problems on the following page:
|
|
|
|
//
|
|
|
|
// http://www.fltk.org/str.php
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
1998-10-06 23:14:55 +04:00
|
|
|
|
2018-02-01 00:17:17 +03:00
|
|
|
// Do not directly include this file, instead use <FL/platform.H>. It will
|
2018-02-09 17:39:42 +03:00
|
|
|
// include this file if _WIN32 is defined. This is to encourage
|
1998-10-06 23:14:55 +04:00
|
|
|
// portability of even the system-specific code...
|
|
|
|
|
2008-09-18 23:09:34 +04:00
|
|
|
#ifndef FL_DOXYGEN
|
2018-02-01 01:34:48 +03:00
|
|
|
#ifndef FL_PLATFORM_H
|
2018-02-01 00:17:17 +03:00
|
|
|
# error "Never use <FL/win32.H> directly; include <FL/platform.H> instead."
|
2018-02-01 01:34:48 +03:00
|
|
|
#endif // !FL_PLATFORM_H
|
2002-06-07 19:06:32 +04:00
|
|
|
|
1998-10-06 23:14:55 +04:00
|
|
|
#include <windows.h>
|
2011-01-18 02:52:32 +03:00
|
|
|
typedef HWND Window;
|
|
|
|
|
|
|
|
// this part is included only when compiling the FLTK library or if requested explicitly
|
|
|
|
#if defined(FL_LIBRARY) || defined(FL_INTERNALS)
|
|
|
|
|
1998-11-05 19:04:53 +03:00
|
|
|
// In some of the distributions, the gcc header files are missing some stuff:
|
1998-10-06 23:14:55 +04:00
|
|
|
#ifndef LPMINMAXINFO
|
|
|
|
#define LPMINMAXINFO MINMAXINFO*
|
1998-11-05 19:04:53 +03:00
|
|
|
#endif
|
|
|
|
#ifndef VK_LWIN
|
1998-10-06 23:14:55 +04:00
|
|
|
#define VK_LWIN 0x5B
|
|
|
|
#define VK_RWIN 0x5C
|
|
|
|
#define VK_APPS 0x5D
|
|
|
|
#endif
|
|
|
|
|
2002-07-02 00:14:08 +04:00
|
|
|
extern FL_EXPORT UINT fl_wake_msg;
|
1999-02-17 01:00:04 +03:00
|
|
|
extern FL_EXPORT char fl_override_redirect; // hack into Fl_Window::make_xid()
|
|
|
|
extern FL_EXPORT int fl_background_pixel; // hack into Fl_Window::make_xid()
|
2011-01-18 02:52:32 +03:00
|
|
|
extern FL_EXPORT HPALETTE fl_palette; // non-zero only on 8-bit displays!
|
2016-08-09 17:11:42 +03:00
|
|
|
extern void fl_release_dc(HWND w, HDC dc);
|
2011-01-18 02:52:32 +03:00
|
|
|
extern FL_EXPORT void fl_save_dc( HWND w, HDC dc);
|
|
|
|
|
|
|
|
#endif // FL_LIBRARY || FL_INTERNALS
|
|
|
|
|
1998-10-06 23:14:55 +04:00
|
|
|
// most recent fl_color() or fl_rgbcolor() points at one of these:
|
1999-02-17 01:00:04 +03:00
|
|
|
extern FL_EXPORT struct Fl_XMap {
|
1998-10-06 23:14:55 +04:00
|
|
|
COLORREF rgb; // this should be the type the RGB() macro returns
|
|
|
|
HPEN pen; // pen, 0 if none created yet
|
|
|
|
int brush; // ref to solid brush, 0 if none created yet
|
2017-06-27 15:17:29 +03:00
|
|
|
int pwidth; // the width of the pen, if present
|
1998-10-06 23:14:55 +04:00
|
|
|
} *fl_current_xmap;
|
|
|
|
inline COLORREF fl_RGB() {return fl_current_xmap->rgb;}
|
|
|
|
inline HPEN fl_pen() {return fl_current_xmap->pen;}
|
1999-02-17 01:00:04 +03:00
|
|
|
FL_EXPORT HBRUSH fl_brush(); // allocates a brush if necessary
|
2005-09-13 03:03:34 +04:00
|
|
|
FL_EXPORT HBRUSH fl_brush_action(int); // now does the real work
|
1998-10-06 23:14:55 +04:00
|
|
|
|
1999-03-09 21:16:45 +03:00
|
|
|
extern FL_EXPORT HINSTANCE fl_display;
|
|
|
|
extern FL_EXPORT HDC fl_gc;
|
|
|
|
extern FL_EXPORT MSG fl_msg;
|
2011-01-18 02:52:32 +03:00
|
|
|
extern FL_EXPORT HDC fl_GetDC(Window);
|
|
|
|
extern FL_EXPORT HDC fl_makeDC(HBITMAP);
|
1998-10-06 23:14:55 +04:00
|
|
|
|
2008-09-18 23:09:34 +04:00
|
|
|
#endif // FL_DOXYGEN
|
2016-04-19 23:47:25 +03:00
|
|
|
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// End of "$Id$".
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|