本文整理汇总了C++中Panel::FindPartName方法的典型用法代码示例。如果您正苦于以下问题:C++ Panel::FindPartName方法的具体用法?C++ Panel::FindPartName怎么用?C++ Panel::FindPartName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Panel
的用法示例。
在下文中一共展示了Panel::FindPartName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ProcessName
void Search::ProcessName(const string& Src) const
{
auto Buffer = unquote(m_FindEdit->GetString() + Src);
for (; !Buffer.empty() && !m_Owner->FindPartName(Buffer, FALSE, 1); Buffer.pop_back())
;
if (!Buffer.empty())
{
m_FindEdit->SetString(Buffer);
m_FindEdit->Show();
}
}
示例2: ProcessKey
bool Search::ProcessKey(const Manager::Key& Key)
{
auto LocalKey = Key;
// для вставки воспользуемся макродвижком...
if (LocalKey()==KEY_CTRLV || LocalKey()==KEY_RCTRLV || LocalKey()==KEY_SHIFTINS || LocalKey()==KEY_SHIFTNUMPAD0)
{
string ClipText;
if (GetClipboardText(ClipText))
{
if (!ClipText.empty())
{
ProcessName(ClipText);
ShowBorder();
}
}
return true;
}
else if (LocalKey() == KEY_OP_XLAT)
{
m_FindEdit->Xlat();
const auto strTempName = m_FindEdit->GetString();
m_FindEdit->ClearString();
ProcessName(strTempName);
Redraw();
return true;
}
else if (LocalKey() == KEY_OP_PLAINTEXT)
{
m_FindEdit->ProcessKey(LocalKey);
const auto strTempName = m_FindEdit->GetString();
m_FindEdit->ClearString();
ProcessName(strTempName);
Redraw();
return true;
}
else
LocalKey=_CorrectFastFindKbdLayout(Key.Event(),LocalKey());
if (LocalKey()==KEY_ESC || LocalKey()==KEY_F10)
{
m_KeyToProcess=KEY_NONE;
Close();
return true;
}
// // _SVS(if (!FirstKey) SysLog(L"Panel::FastFind Key=%s %s",_FARKEY_ToName(Key),_INPUT_RECORD_Dump(&rec)));
if (LocalKey()>=KEY_ALT_BASE+0x01 && LocalKey()<=KEY_ALT_BASE+65535)
LocalKey=lower(static_cast<WCHAR>(LocalKey()-KEY_ALT_BASE));
else if (LocalKey()>=KEY_RALT_BASE+0x01 && LocalKey()<=KEY_RALT_BASE+65535)
LocalKey=lower(static_cast<WCHAR>(LocalKey()-KEY_RALT_BASE));
if (LocalKey()>=KEY_ALTSHIFT_BASE+0x01 && LocalKey()<=KEY_ALTSHIFT_BASE+65535)
LocalKey=lower(static_cast<WCHAR>(LocalKey()-KEY_ALTSHIFT_BASE));
else if (LocalKey()>=KEY_RALTSHIFT_BASE+0x01 && LocalKey()<=KEY_RALTSHIFT_BASE+65535)
LocalKey=lower(static_cast<WCHAR>(LocalKey()-KEY_RALTSHIFT_BASE));
if (LocalKey()==KEY_MULTIPLY)
LocalKey=L'*';
switch (LocalKey())
{
case KEY_F1:
{
Hide();
{
Help::create(L"FastFind"sv);
}
Show();
break;
}
case KEY_CTRLNUMENTER: case KEY_RCTRLNUMENTER:
case KEY_CTRLENTER: case KEY_RCTRLENTER:
m_Owner->FindPartName(m_FindEdit->GetString(), TRUE, 1);
Redraw();
break;
case KEY_CTRLSHIFTNUMENTER: case KEY_RCTRLSHIFTNUMENTER:
case KEY_CTRLSHIFTENTER: case KEY_RCTRLSHIFTENTER:
m_Owner->FindPartName(m_FindEdit->GetString(), TRUE, -1);
Redraw();
break;
case KEY_NONE:
case KEY_IDLE:
break;
default:
if ((LocalKey()<32 || LocalKey()>=65536) && LocalKey()!=KEY_BS && LocalKey()!=KEY_CTRLY && LocalKey()!=KEY_RCTRLY &&
LocalKey()!=KEY_CTRLBS && LocalKey()!=KEY_RCTRLBS && !IsModifKey(LocalKey()) &&
!(LocalKey()==KEY_CTRLINS||LocalKey()==KEY_CTRLNUMPAD0) && // KEY_RCTRLINS/NUMPAD0 passed to panels
!(LocalKey()==KEY_SHIFTINS||LocalKey()==KEY_SHIFTNUMPAD0) &&
!((LocalKey() == KEY_KILLFOCUS || LocalKey() == KEY_GOTFOCUS) && IsWindowsVistaOrGreater()) // Mantis #2903
)
{
m_KeyToProcess=LocalKey;
Close();
return true;
}
auto strLastName = m_FindEdit->GetString();
if (m_FindEdit->ProcessKey(LocalKey))
//.........这里部分代码省略.........