If you haven't checked in N5, please ignore it. I'll resubmit it when I move all of the custom draw around.
--------------- static LRESULT LISTVIEW_GetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn) { INT nColumnWidth = 0; HDITEMW hdi;
TRACE("nColumn=%d\n", nColumn);
switch(infoPtr->dwStyle & LVS_TYPEMASK) { case LVS_LIST: nColumnWidth = infoPtr->nItemWidth; break; case LVS_REPORT: hdi.mask = HDI_WIDTH; if (Header_GetItemW(infoPtr->hwndHeader, nColumn, &hdi)) nColumnWidth = hdi.cxy; break; default: /* we don't have a 'column' in [SMALL]ICON mode */ } --------------
gcc3.2 tells me this is depreciated "label at end of compount statement". IOW, I presume it wants a "break;" after the "default:" label.
On October 12, 2002 08:10 pm, Greg Turner wrote:
gcc3.2 tells me this is depreciated "label at end of compount statement". IOW, I presume it wants a "break;" after the "default:" label.
Thanks, will fix.