Re: ListView and LVS_EX_CHECKBOX question
- From: "Schemer" <jumper@xxxxxxxxxxxxx>
- Date: Thu, 11 Jan 2007 13:06:23 -0500
If I create a ListView control (common controls 4.70) and add these styles
ListView_SetExtendedListViewStyle(hWnd, LVS_EX_CHECKBOXES |
LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_NOSORTHEADER);
Another problem: The right side of the checkbox is missing, or obscured.
// Create the first column
ZeroMemory(&columnInfo, sizeof(LVCOLUMN));
columnInfo.mask = LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
columnInfo.iSubItem = 0;
columnInfo.pszText = "Import";
columnInfo.cx = 50;
ListView_InsertColumn(hWnd, columnInfo.iSubItem, &columnInfo);
// Add an item
ZeroMemory(&lvI, sizeof(LVITEM));
lvI.mask = LVIF_TEXT;
lvI.iItem = cntr;
lvI.lParam = 1;
lvI.pszText = "";
ListView_InsertItem(hWnd, &lvI);
ListView_SetCheckState(hWnd, 0, FALSE);
// Text for first item.
lvI.iSubItem = 1;
lvI.pszText = schemaName;
ListView_SetItem(hWnd, &lvI);
The column name displays properly, but the right edge of the check box looks
like it is cut off.
Thanks for any advice.
.
- Follow-Ups:
- Re: ListView and LVS_EX_CHECKBOX question
- From: "Jeffrey Tan[MSFT]"
- Re: ListView and LVS_EX_CHECKBOX question
- References:
- ListView and LVS_EX_CHECKBOX question
- From: Schemer
- ListView and LVS_EX_CHECKBOX question
- Prev by Date: ListView and LVS_EX_CHECKBOX question
- Next by Date: Re: ListView and LVS_EX_CHECKBOX question
- Previous by thread: ListView and LVS_EX_CHECKBOX question
- Next by thread: Re: ListView and LVS_EX_CHECKBOX question
- Index(es):
Relevant Pages
|