본문 바로가기

[MFC Dialog] OnKeyDown message afx_msg void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags ); nCharSpecifies the virtual key code of the given key. For a list of of standard virtual key codes, see Winuser.h nRepCntRepeat count (the number of times the keystroke is repeated as a result of the user holding down the key). nFlagsSpecifies the scan code, key-transition code, previous key state, and context code, as shown in the .. 더보기
[MFC Dialog] TreeCtrl에 더블클릭 이벤트 주기 ON_NOTIFY 다이얼로그(대화식 상자)에 이벤트를 주는 방법은 참 쉽다. (' ' 요런식.. 하지만 다르게 해보면 어떨까... 그래서 어떻게 하면 컨트롤에 이벤트를 줄 수 있을까.. 하면서 찾은것이 MESSAGE_MAP에 NOTIFY 메시지를 등록하는 것. ON_NOTIFY( wwNotifyCode, id, memberFxn) id가 바로 해당 controller wNotifyCodeThe code for the notification message to be handled, such as LVN_KEYDOWN. idThe child identifier of the control for which the notification is sent. memberFxnThe member function to be called .. 더보기
[MFC Dialog 메신져] TreeCtrl 탐색 이제서야 포스팅 할 생각을 하다니... 오늘 한 일 1. SERVER는 server에 접속한 client들의 상태를 기록한다. 2. server에 접속한 client의 수가 2이상일때(적어도 누군가의 친구가 있을때) 서버는 2번째 접속한 사용자와 기존 접속되어있는 사용자의 관계를 확인한다. 만약, 둘 사이가 친구라면 기존 접속한 client의 친구 목록에 후에 접속한 client의 id를 online으로 표시한다. 만약, 둘 사이가 친구가 아니라면 아무일도 일어나지 않는다. 그렇다면 TreeCtrl 을 탐색하는 기능이 필요하다(client의 사용자 명을 저장하지 않았다. 여기서 잠깐! - 사용자 명을 저장해놓는다면? 1) 사용자 명을 저장해놓는 변수가 있고, 그 변수를 treeCtrl와 연결해 놓고, u.. 더보기