本文整理汇总了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 );
}
示例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);
}
示例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();
}
示例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);
}
}
示例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;
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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 );
}
}
}
}
示例10: Deselect
void LowGrav::StopShooting()
{
if (active) {
Deselect();
} else {
Weapon::StopShooting();
}
}
示例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();
}
}
示例12: Deselect
void SingleLineWXMEdit::OnWXMEditKillFocus()
{
if (!IsSelected())
return;
Deselect();
SetRepaintAll(true);
Refresh();
}
示例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;
}
示例14: Deselect
void SDC::SetObjects(HDC gc, HBITMAP bmp) {
Deselect();
m_gc = gc;
m_mswbmp = bmp;
SelectObject(m_gc, GetStockObject(NULL_BRUSH));
Select();
}
示例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 );
}