当前位置: 首页>>代码示例>>C++>>正文


C++ Deselect函数代码示例

本文整理汇总了C++中Deselect函数的典型用法代码示例。如果您正苦于以下问题:C++ Deselect函数的具体用法?C++ Deselect怎么用?C++ Deselect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Deselect函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: InitActiveEdit

/* InitActiveEdit()
 * =====================================================================
 * Initializes the Active Device display to preset initial values.
 * the device to display is in xdevice.
 */
void
InitActiveEdit( void )
{
   /* Set a global index number for the device editor so that we
    * know which one is currently being displayed. Note that this is
    * for the active drivers.
    */   
   CurHotDriver = DNAME( xdevice );   
   NoExit( EDELETE );
   Disable( EDELETE );

   /* Display the device number in text form. */              
   sprintf( DeviceText, "%d", DDEV( xdevice ) );
   TedText( CURNUM ) = &DeviceText[0];

   /* Display the driver name in text form ( includes the .SYS ) */
   strcpy( DriverText, drivers[ DNAME( xdevice )] );
   TedText( CURNAME ) = &DriverText[0];

   /* Set the ROM/RES flags */
   Deselect( CURROM );
   Deselect( CURRES );
   
   if( DTYPE( xdevice ) == 'P' )	/* ROM driver - SCREEN.SYS */
        Select( CURROM );

   if( DTYPE( xdevice ) == 'R' )    /* Resident Driver */
   	Select( CURRES );
}
开发者ID:daemqn,项目名称:Atari_ST_Sources,代码行数:34,代码来源:EDIT.C

示例2: set_accelbox

/*
 * Set MA speed buttons
 */
void
set_accelbox( OBJECT *tree, int linear )
{
    Deselect(OFF);
    Deselect(SLOW);
    Deselect(FAST);

    if( linear < 0 )
	Select(OFF);
    else if( linear > 0 )
	Select(SLOW);
    else
	Select(FAST);
}
开发者ID:daemqn,项目名称:Atari_ST_Sources,代码行数:17,代码来源:MACPX.C

示例3: Deselect

//-----------------------------------------------------------------------------
// Purpose: 
// Input  : exp - 
//-----------------------------------------------------------------------------
void mxExpressionTray::Select( int exp, bool deselect /*=true*/ )
{
	int oldcell = m_nCurCell;

	if ( deselect )
	{
		Deselect();
	}

	m_nPrevCell = oldcell;
	m_nCurCell = exp;

	if ( m_nCurCell >= 0 )
	{
		CExpClass *active = expressions->GetActiveClass();
		if ( active )
		{
			CExpression *exp = active->GetExpression( m_nCurCell );
			if ( exp )
			{
				exp->SetSelected( true );
			}
		}
	}

	redraw();
}
开发者ID:DeadZoneLuna,项目名称:SourceEngine2007,代码行数:31,代码来源:mxexpressiontray.cpp

示例4: set_parkbox

void
set_parkbox( void )
{
    OBJECT *tree = rs_object;
extern int parktime;

    if( parktime < 0 ) {
	HideObj(PARKSECT);
    } else if( parktime > 0 ) {
	Select(PARK);
	ObState(PARKUP) =
	  ObState(PARKBOX) =
	  ObState(PARKSLID) =
	  ObState(PARKDOWN) = NORMAL;
	HideObj(PARKCOVR);
    } else {
	Deselect(PARK);
	ObState(PARKUP) =
	  ObState(PARKDOWN) =
	  ObState(PARKBOX) =
	  ObState(PARKSLID) =
	  ObState(PARKDOWN) = DISABLED;
	ShowObj(PARKCOVR);
    }
}
开发者ID:daemqn,项目名称:Atari_ST_Sources,代码行数:25,代码来源:MACCEL3.C

示例5: ItemAt

BListItem*
BListView::RemoveItem(int32 index)
{
	BListItem* item = ItemAt(index);
	if (item == NULL)
		return NULL;

	if (item->IsSelected())
		Deselect(index);

	if (!fList.RemoveItem(item))
		return NULL;

	if (fFirstSelected != -1 && index < fFirstSelected)
		fFirstSelected--;

	if (fLastSelected != -1 && index < fLastSelected)
		fLastSelected--;

	if (fAnchorIndex != -1 && index < fAnchorIndex)
		fAnchorIndex--;

	_RecalcItemTops(index);

	_InvalidateFrom(index);
	_FixupScrollBar();

	return item;
}
开发者ID:RAZVOR,项目名称:haiku,代码行数:29,代码来源:ListView.cpp

示例6: set_accelbox

void
set_accelbox( int linear )
{
    OBJECT *tree = rs_object;

    Deselect(ACCOFF);
    Deselect(ACCSLOW);
    Deselect(ACCFAST);

    if( linear < 0 )
	Select(ACCOFF);
    else if( linear > 0 )
	Select(ACCSLOW);
    else
	Select(ACCFAST);
}
开发者ID:daemqn,项目名称:Atari_ST_Sources,代码行数:16,代码来源:MACCEL3.C

示例7: set_screenbox

void
set_screenbox( int enabled )
{
    OBJECT *tree = rs_object;

    if( !ma_info->stacy )
    	HideObj(STACOPTS);
    else
    	ShowObj(STACOPTS);

    if( enabled ) {
	Select(SCREEN);
	ObFlags(SWITCH) = ObFlags(LITE) = TOUCHEXIT;
	ObState(SWITCH) =
	  ObState(LITE) =
	  ObState(SAVEUP) =
	  ObState(SAVEBOX) =
	  ObState(SAVESLID) =
	  ObState(SAVEDOWN) =
	  ObState(MODEM) = NORMAL;
	HideObj(SAVECOVR);
    } else {
	Deselect(SCREEN);
	ObFlags(SWITCH) = ObFlags(LITE) = NONE;
	ObState(SWITCH) =
	  ObState(LITE) =
	  ObState(SAVEUP) =
	  ObState(SAVEBOX) =
	  ObState(SAVESLID) =
	  ObState(SAVEDOWN) =
	  ObState(MODEM) = DISABLED;
	ShowObj(SAVECOVR);
    }

}
开发者ID:daemqn,项目名称:Atari_ST_Sources,代码行数:35,代码来源:MACCEL3.C

示例8: set_screenbox

/*
 * Set up buttons and covers in screensave box.
 */
void
set_screenbox( OBJECT *tree, int enabled )
{
    if( !ma_info->stacy )
    	HideObj(STACBOX);
    else
    	ShowObj(STACBOX);

    if( enabled ) {
	Select(SCRN);
	ObFlags(STACSCRN) = ObFlags(STACLITE) = TOUCHEXIT;
	ObState(STACSCRN) =
	  ObState(STACLITE) =
	  ObState(SCRNUP) =
	  ObState(SCRNBACK) =
	  ObState(SCRNTHUM) =
	  ObState(SCRNDN) =
	  ObState(PHONE) = NORMAL;
	HideObj(SCRNCOVR);
    } else {
	Deselect(SCRN);
	ObFlags(STACSCRN) = ObFlags(STACLITE) = NONE;
	ObState(STACSCRN) =
	  ObState(STACLITE) =
	  ObState(SCRNUP) =
	  ObState(SCRNBACK) =
	  ObState(SCRNTHUM) =
	  ObState(SCRNDN) =
	  ObState(PHONE) = DISABLED;
	ShowObj(SCRNCOVR);
    }

}
开发者ID:daemqn,项目名称:Atari_ST_Sources,代码行数:36,代码来源:MACPX.C

示例9: Assign_Slit

/* Assign_Slit()
 *==========================================================================
 *  Assigns the 6 slits visible an FNODE, where possible.
 * IN: FNODE *ptr:	Start assigning with this node
 *     FNODE *array[]:	A 5 slit pointer array.
 */
void
Assign_Slit( HDEVICE_PTR ptr, HDEVICE_PTR array[] )
{
    int i;
    HDEVICE_PTR curptr;
    
    curptr = ptr;
    for( i = 0; i < MAX_SLITS; i++ )
    {
        array[ i ] = NULL;
        Deselect( First_Obj + i );
        TedText( First_Obj + i ) = fblank;

        if( curptr )
        {
            if( HNAME( curptr ) != -1 )
            {
              array[i] = curptr;
              TedText( First_Obj + i ) = cdrivers[ HNAME( curptr )];
               
	      if( HFLAG( curptr ) )
            	  Select( First_Obj + i );
              curptr = HNEXT( curptr );	
            }  
        }  
    }
}
开发者ID:daemqn,项目名称:Atari_ST_Sources,代码行数:33,代码来源:MOVER.C

示例10: Deselect

void LowGrav::StopShooting()
{
  if (active) {
    Deselect();
  } else {
    Weapon::StopShooting();
  }
}
开发者ID:Arnaud474,项目名称:Warmux,代码行数:8,代码来源:lowgrav.cpp

示例11: wxLogDebugFunc

void PlaybackTab<PlaybackTraits>::OnSelect( wxListEvent& event )
{
	wxLogDebugFunc( _T( "" ) );
	if ( event.GetIndex() == -1 ) {
		Deselect();
	}
	else
	{
		try
		{
			m_watch_btn->Enable( true );
			m_delete_btn->Enable( true );
			int index = event.GetIndex();
			m_replay_listctrl->SetSelectedIndex( index );

			//this might seem a bit backwards, but it's currently the only way that doesn't involve casting away constness
			int m_sel_replay_id = m_replay_listctrl->GetDataFromIndex( index )->id;
			PlaybackType& rep = playbacklist<ListType>().GetPlaybackById( m_sel_replay_id );


			wxLogMessage( _T( "Selected replay %d " ), m_sel_replay_id );

			m_players_text->SetLabel( _T( "" ) );
			m_map_text->SetLabel( rep.battle.GetHostMapName() );
			m_mod_text->SetLabel( rep.battle.GetHostModName() );
			m_minimap->SetBattle( &( rep.battle ) );
			m_minimap->UpdateMinimap();

			m_players->Clear();
			m_players->SetBattle( ( IBattle* )&rep.battle );
			for ( size_t i = 0; i < rep.battle.GetNumUsers(); ++i ) {
				try {
					User& usr = rep.battle.GetUser( i );
					m_players->AddUser( usr );
				}
				catch ( ... )
                {}
			}
		}
		catch ( ... ) {
			Deselect();
		}
		event.Skip();
	}
}
开发者ID:SpliFF,项目名称:springlobby,代码行数:45,代码来源:playbacktab.cpp

示例12: Deselect

void SingleLineWXMEdit::OnWXMEditKillFocus()
{
	if (!IsSelected())
		return;

	Deselect();
	SetRepaintAll(true);
	Refresh();
}
开发者ID:JamesWCCheng,项目名称:wxMEdit,代码行数:9,代码来源:single_line.cpp

示例13: Deselect

// NB: CloneNode() assumes that this always succeeds
NS_IMETHODIMP
nsXFormsRepeatElement::SetParent(nsIXFormsRepeatElement *aParent)
{
  mParent = aParent;
  // We're an inner repeat owned by a parent, let it control whether we are
  // selected or not.
  Deselect();
  return NS_OK;
}
开发者ID:binoc-software,项目名称:mozilla-cvs,代码行数:10,代码来源:nsXFormsRepeatElement.cpp

示例14: Deselect

void SDC::SetObjects(HDC gc, HBITMAP bmp) {
	Deselect();

	m_gc = gc;
	m_mswbmp = bmp;

	SelectObject(m_gc, GetStockObject(NULL_BRUSH));

	Select();
}
开发者ID:cyclefusion,项目名称:szarp,代码行数:10,代码来源:drawview.cpp

示例15: Deselect

void PlaybackTab<PlaybackTraits>::RemovePlayback( const int index )
{
	if ( index == -1 )
		return;

	if ( index == m_replay_listctrl->GetSelectedIndex() )
		Deselect();

	m_replay_listctrl->RemovePlayback( index );
}
开发者ID:SpliFF,项目名称:springlobby,代码行数:10,代码来源:playbacktab.cpp


注:本文中的Deselect函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。