buttons.c

来自「图像处理的压缩算法」· C语言 代码 · 共 47 行

C
47
字号
/*------------------------------------------------------------------------------*
 * File Name:				 													*
 * Creation: 																	*
 * Purpose: OriginC Source C file												*
 * Copyright (c) ABCD Corp.	2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010		*
 * All Rights Reserved															*
 * 																				*
 * Modification Log:															*
 *------------------------------------------------------------------------------*/
 
////////////////////////////////////////////////////////////////////////////////////
// Including the system header file Origin.h should be sufficient for most Origin
// applications and is recommended. Origin.h includes many of the most common system
// header files and is automatically pre-compiled when Origin runs the first time.
// Programs including Origin.h subsequently compile much more quickly as long as
// the size and number of other included header files is minimized. All NAG header
// files are now included in Origin.h and no longer need be separately included.
//
// Right-click on the line below and select 'Open "Origin.h"' to open the Origin.h
// system header file.
#include <Origin.h>
////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////
// Include your own header files here.
#include "ButtonDlg.h"		// Button dialog class header file

////////////////////////////////////////////////////////////////////////////////////
// Start your functions here.

static CButtonDlg dlgButtons;

BOOL Buttons()
{
	BOOL bRet;
	
	Window winDlg = dlgButtons.GetWindow();
	if(winDlg)
	{
		out_str("Dialog already open");
		return false;
	}
	
	// Launch modeless dialog
	bRet = dlgButtons.Create( GetWindow() );
	return bRet;
}

⌨️ 快捷键说明

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