moptions.c
来自「CD_《Palm OS编程实践》」· C语言 代码 · 共 49 行
C
49 行
//////////////////////////////////////////////////////////////////////////////
// moptions.c
// Code for the "options" menu.
// Copyright (c) 1999, Robert Mykland. All rights reserved.
//////////////////////////////////////////////////////////////////////////////
//////////////
// Includes //
//////////////
#include "app.h" // The definitions for this application
///////////////////////
// Global Prototypes //
///////////////////////
Boolean optionsMenuEventHandler( EventPtr spEvent );
//////////////////////
// Global Functions //
//////////////////////
//----------------------------------------------------------------------------
Boolean optionsMenuEventHandler(
//----------------------------------------------------------------------------
// Handles events for this form.
// Returns true if it fully handled the event.
//----------------------------------------------------------------------------
EventPtr spEvent )
//----------------------------------------------------------------------------
{
switch( spEvent->data.menu.itemID )
{
// The about menu item was selected
case OptionsAbout:
FrmPopupForm( AboutForm );
return( true );
// The prefs menu item was selected
case OptionsPreferences:
FrmPopupForm( PrefsForm );
return( true );
}
// We're done
return( false );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?