Skip to content

Commit

Permalink
逻辑完善
Browse files Browse the repository at this point in the history
IOCTL页
code编辑框逻辑完善。
  • Loading branch information
Hell committed Apr 19, 2018
1 parent ad7b575 commit 2632bee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 驱动工具/IoctlEdtControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,20 +476,22 @@ void CIoctlEdtControl::UpdateIoctlInfo(const IOCTL_INFO & ioctlInfo)
{
if (ioctlInfo.ulData == 0)
{
m_pEdtMnemonic->SetLabelText(wxT(""));
m_pEdtDevType->SetLabelText(wxT(""));
m_pEdtFunction->SetLabelText(wxT(""));
m_pEdtMethod->SetLabelText(wxT(""));
m_pEdtAccess->SetLabelText(wxT(""));
m_pEdtLayout->SetLabelText(wxT(""));
m_pEdtCode->SetInsertionPoint(-1);
//m_pEdtCode->SetInsertionPoint(-1);
m_pEdtLayout->SetLabelText(wxT("00000000000000000000000000000000"));
break;;
}

wxString strTemp;
strTemp = wxString::Format(wxT("%08X"), ioctlInfo.ulData);
long lastInsertPos = m_pEdtCode->GetInsertionPoint();
m_pEdtCode->SetLabelText(strTemp);
m_pEdtCode->SetInsertionPoint(-1);
m_pEdtCode->SetInsertionPoint(lastInsertPos);

//DeviceType
auto p1 = m_mapDeviceType.find(ioctlInfo.Info.DeviceType);
Expand Down

0 comments on commit 2632bee

Please # to comment.