[쥬니] 전환점

블로그 이미지
시작!
by eiliyuki
  • 8,746Total hit
  • 0Today hit
  • 2Yesterday hit

ON_NOTIFY(NM_CLICK, IDC_LIST_START_ITEM, &CQuestToolView::OnNMClickListStartItem)


void CQuestToolView::OnNMClickListStartItem(NMHDR *pNMHDR, LRESULT *pResult)

{

LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);

// TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다.


int rc = 0;

NM_LISTVIEW *pNMListView = (NM_LISTVIEW*)pNMHDR;


// checkbox HitTest

LVHITTESTINFO oInfo;

oInfo.pt = pNMListView->ptAction;

m_LT_StartItem.HitTest(&oInfo);


// checkbox icon click

if(oInfo.flags == LVHT_ONITEMSTATEICON)

{

SetModify(true);

}


*pResult = 0;

}

    

        void CxListView::OnNMClickShelllist(NMHDR *pNMHDR, LRESULT *pResult)
        {    
                int rc = 0;
                 NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;

                 // Checkbox HitTest
                 LVHITTESTINFO oInfo ;
                 oInfo.pt = pNMListView->ptAction ;
                 m_listCtl.HitTest(&oInfo) ;

                /// Check Box Icon Click
                 if( oInfo.flags == LVHT_ONITEMSTATEICON ) 
                {
                     rc = 1; // 무시하고 싶으면 셋팅                      
                }

                pResult = rc;
        }

TRACKBACK 0 AND COMMENT 0

ARTICLE CATEGORY

분류 전체보기 (14)
쥬니 이야기 (7)
게임 프로그래밍 (7)

RECENT TRACKBACK

CALENDAR

«   2018/08   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

ARCHIVE