Changeset 32 in chevmsgr
- Timestamp:
- 12/07/15 18:32:33 (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/msgclnt.cpp
r31 r32 341 341 Protocol::Message message = messageQ.pop(ProtocolType::OPEN_SESSION); 342 342 343 std::string sessionID = message.get<std::string>(ProtocolType::SESSION_ID);344 sessionMap[concat] = sessionID;345 346 343 if (message.mObject.HasKey(ProtocolType::SESSION_KEY)) 347 344 { 345 std::string sessionID = message.get<std::string>(ProtocolType::SESSION_ID); 346 sessionMap[concat] = sessionID; 348 347 std::string encodedKey = message.get<std::string>(ProtocolType::SESSION_KEY); 349 348 cf::bin key = cf::codec::hex::getInstance()->decode(encodedKey); -
trunk/msvc14/ChevMsgrClient_MFC/ChevMsgrClient_MFCDlg.cpp
r31 r32 69 69 : CDialogEx(IDD_CHEVMSGRCLIENT_MFC_DIALOG, pParent) 70 70 , mCheckedSensitive(FALSE) 71 , mSearch(_T("")) 72 , mSearchIndex(0) 71 73 { 72 74 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); … … 80 82 DDX_Control(pDX, IDC_LIST_FRIENDS, mFriendListBox); 81 83 DDX_Check(pDX, IDC_CHECK_SENSITIVE, mCheckedSensitive); 84 DDX_Text(pDX, IDC_EDIT_SEARCH, mSearch); 82 85 } 83 86 … … 91 94 ON_LBN_SELCHANGE(IDC_LIST_FRIENDS, &CChevMsgrClient_MFCDlg::OnLbnSelchangeListFriends) 92 95 ON_WM_TIMER() 96 ON_BN_CLICKED(IDC_BTN_SEARCH, &CChevMsgrClient_MFCDlg::OnBnClickedBtnSearch) 93 97 END_MESSAGE_MAP() 94 98 … … 462 466 CDialogEx::OnTimer(nIDEvent); 463 467 } 468 469 void CChevMsgrClient_MFCDlg::OnBnClickedBtnSearch() 470 { 471 // TODO: ¿©±â¿¡ ÄÁÆ®·Ñ ¾Ë¸² 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. 472 UpdateData(TRUE); 473 CString search; 474 int test = mChatListBox.GetCount(); 475 476 if (mSearch == "") 477 return; 478 479 for (int iter = mSearchIndex; ; iter++) 480 { 481 if ((iter * 3) == mChatListBox.GetCount()) 482 { 483 mSearchIndex = -1; 484 break; 485 } 486 mChatListBox.GetText((iter * 3) + 1, search); 487 488 if (search.Find(mSearch, 0) != -1) 489 { 490 mChatListBox.SetCurSel((iter * 3) + 1); 491 mSearchIndex = iter; 492 break; 493 } 494 } 495 mSearchIndex++; 496 } -
trunk/msvc14/ChevMsgrClient_MFC/ChevMsgrClient_MFCDlg.h
r31 r32 57 57 afx_msg void OnLbnSelchangeListFriends(); 58 58 afx_msg void OnTimer(UINT_PTR nIDEvent); 59 afx_msg void OnBnClickedBtnSearch(); 60 CString mSearch; 61 int mSearchIndex; 59 62 }; -
trunk/msvc14/ChevMsgrClient_MFC/cnct2srv.ini
r26 r32 1 1 92.168.0.151 127.0.0.1 2 2 6051
Note:
See TracChangeset
for help on using the changeset viewer.