win32 api c++ listview

Hi all!
I am new in this.
I use mingw c++ compiler.
I have a problem with ListView

I created a listview
1
2
3
4
5
6
7
8
9
10
11
12
hListView = CreateWindow(WC_LISTVIEW, NULL,
                WS_CHILD | WS_VISIBLE | LVS_REPORT,
                10, 10, 500, 500,
                hwnd,(HMENU) 500,
                GetModuleHandle(NULL),
                NULL);
    SendMessage(hListView, WM_SETFONT, (WPARAM) font, TRUE);

    ListView_SetExtendedListViewStyle(hListView, LVS_EX_CHECKBOXES |  LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP | LVS_EX_GRIDLINES | LVS_EX_SUBITEMIMAGES);

    lvc.mask = LVCF_TEXT | LVCF_SUBITEM | LVCF_WIDTH  | LVCF_FMT;
    lvc.fmt  = LVCFMT_LEFT;


After that I will with data. So every row first column is a checkbox.
And I would like to get any notification if the checkbox is check or unchecked.
for example: If the second row's checkbox state has been changed, show me a messagebox, or something like this..
Thanks.
Topic archived. No new replies allowed.