windows_programming_notes.nbk: Home | Index | Next Page: Listview control notifications | Previous Page: listview - how to add data


 listview - how to create

Create like this:

    my_handle = CreateWindowEx(
            WS_EX_CLIENTEDGE,
            WC_LISTVIEW,
            NULL,
            WS_CHILD | LVS_REPORT | styles,
            CW_USEDEFAULT,
            0,
            CW_USEDEFAULT,
            0,
            parent,     // handle to parent or owner window
            NULL,       // handle to menu or child-window identifier
            hinst,      // handle to application instance
            this);      // pointer to window-creation data

Extended listview styles can be set like this:

    ListView_SetExtendedListViewStyleEx(my_handle, exstyles, exstyles);

windows_programming_notes.nbk: Home | Index | Next Page: Listview control notifications | Previous Page: listview - how to add data


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time