guixutil.h

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 73 行

H
73
字号
/****************************************************************************
*
*                            Open Watcom Project
*
*    Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
*  ========================================================================
*
*    This file contains Original Code and/or Modifications of Original
*    Code as defined in and that are subject to the Sybase Open Watcom
*    Public License version 1.0 (the 'License'). You may not use this file
*    except in compliance with the License. BY USING THIS FILE YOU AGREE TO
*    ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
*    provided with the Original Code and Modifications, and is also
*    available at www.sybase.com/developer/opensource.
*
*    The Original Code and all software distributed under the License are
*    distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
*    EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
*    ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
*    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
*    NON-INFRINGEMENT. Please see the License for the specific language
*    governing rights and limitations under the License.
*
*  ========================================================================
*
* Description:  WHEN YOU FIGURE OUT WHAT THIS FILE DOES, PLEASE
*               DESCRIBE IT HERE!
*
****************************************************************************/


#ifndef _GUIXUTIL_H_
#define _GUIXUTIL_H_
extern bool GUIIsOpen( gui_window * );
extern bool GUISetupStruct( gui_window *wnd, gui_create_info *, gui_coord *,
                             gui_coord *, HWND parent, HMENU * );
extern void GUICalcLocation( gui_rect *, gui_coord *, gui_coord *,
                             HWND parent );
extern void GUIError( char * );
extern bool GUIScrollOn( gui_window * wnd, int bar );
extern void GUISetRowCol( gui_window * wnd, gui_coord * size );
extern void GUIInvalidateResize( gui_window *wnd );
extern WPI_MRESULT GUISendMessage( HWND hwnd, WPI_MSG msg, WPI_PARAM1 wparam,
                                   WPI_PARAM2 lparam );
extern WPI_MRESULT GUISendDlgItemMessage( HWND hwnd, int control, WPI_MSG msg,
                                          WPI_PARAM1 wparam, WPI_PARAM2 lparam );
extern void GUIMakeRelative( gui_window *wnd, WPI_POINT *pt, gui_point *point );
extern HWND GUIGetScrollHWND( gui_window *wnd );
extern int GUIGetScrollPos( gui_window *wnd, int bar );
extern int GUIGetScrollRange( gui_window *wnd, int bar );
extern void GUISetScrollPos( gui_window *wnd, int bar, int new, bool redraw );
extern void GUISetScrollRange( gui_window *wnd, int bar, int min, int max, bool redraw );
extern void GUISetRangePos( gui_window *wnd, int bar );
extern void GUIRedrawScroll( gui_window *wnd, int bar, bool redraw_now );
extern HWND GUIGetParentFrameHWND( gui_window *wnd );
extern HWND GUIGetParentHWND( gui_window *wnd );
extern gui_window *GUIGetWindow( HWND hwnd );
extern HWND GUIGetTopParentHWND( HWND hwnd );
extern gui_window *GUIGetTopGUIWindow( HWND hwnd );
extern bool GUIBringNewToFront( gui_window *prev );
extern WPI_FONT GUIGetSystemFont( void );
extern gui_window *GUIFindFirstChild( gui_window *parent );
extern void GUIDestroyAllChildren( gui_window *parent );
extern void GUIDestroyAllPopupsWithNoParent( void );
extern bool GUIParentHasFlags( gui_window *wnd, gui_flags flags );
extern bool GUIIsRectInUpdateRect( gui_window *wnd, WPI_RECT *rect );
extern bool GUIIsParentADialog( gui_window *wnd );
extern void GUIMaximizeZoomedChildren( gui_window *wnd );
extern gui_window *GUIFindWindowFromHWND( HWND hwnd );
extern bool GUIIsGUIChild( HWND hwnd );
#endif // _GUIXUTIL_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?