chekbox

how can i determinete when the check box in listview is checked or when the checkbox is get the focus and chenge on evey check in MFC


Answer this question

chekbox

  • Sohrab

    There are events for all of these which you can catch and then run your own code.

    I believe WM_FOCUS is the event when a control gets the focus ( this is relying on old memories, don't quote me ), and I'm pretty sure there's a SetCheck method on the control you could call to check it when it gets the focus.



  • Angz

    For Win32 UI issues, please use the MSDN discussion groups. Here is the correct newsgroup for your issue: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ui&lang=en&cr=US


  • normschaef

    Thx for yuor reply , but the CListView don't have a getfocus for the check box , you can get all the itme with getcheck but i don't know how to get it when is checked

  • jschroedl

    Get the notification LVN_ITEMCHANGED or LVN_ITEMCHANGING

  • chekbox