Re: ListView and LVS_EX_CHECKBOX question

Tech-Archive recommends: Fix windows errors by optimizing your registry




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.


.



Relevant Pages

  • RE: Combo box list help
    ... "Anyone who says he can see through women is missing a lot." ... Groucho Marx ... The first column is the issuerID and the second is the ... I'm not opposed to writing VBA for this, but am at a loss as how ...
    (microsoft.public.excel.misc)
  • RE: Combo box list help
    ... "Anyone who says he can see through women is missing a lot." ... Groucho Marx ... The first column is the issuerID and the second is the ... I'm not opposed to writing VBA for this, but am at a loss as how ...
    (microsoft.public.excel.misc)
  • RE: Excel to Word Mail Merge
    ... special’ tick the option to ‘Transpose’ that okay it. ... Save this new workbook as what ever you want (you can delete it after the ... want the lables to print down the first column then down the second column ... I think there is a code or a switch I'm missing on my form document at the ...
    (microsoft.public.word.mailmerge.fields)
  • RE: Excel to Word Mail Merge
    ... want the lables to print down the first column then down the second column ... good at first glance, but then I noticed that one label is missing at the end ... I think there is a code or a switch I'm missing on my form document at the ...
    (microsoft.public.word.mailmerge.fields)
  • Missing Sequential Numbers
    ... I have a spreadsheet which is basically a table of data, ... with the first column being a sequential number. ... provide a list of those missing. ... issue 2 - occassionally I get a duplicate, ...
    (microsoft.public.excel.programming)