|
// *********************************************************
// ポップアップメニュー項目以外の削除
// 戻り値 : 無し
// *********************************************************
void LboxMenu::ResetItem( LPTSTR lpTarget )
{
LboxMenu::SetSubMenu( lpTarget );
if ( IsMenu( LboxMenu::hCurMenu ) ) {
int nCount,i;
nCount = LboxMenu::Count();
for( i = 0; i < nCount; i++ ) {
if ( GetSubMenu( LboxMenu::hCurMenu, i ) == NULL ) {
RemoveMenu( LboxMenu::hCurMenu, i, MF_BYPOSITION );
i--;
nCount--;
}
}
}
}
| |