中级会员
- 积分
- 478
- 金钱
- 478
- 注册时间
- 2015-7-11
- 在线时间
- 145 小时
|
发表于 2016-3-29 22:03:02
|
显示全部楼层
[mw_shl_code=applescript,true] hItem = WM_GetDialogItem(pMsg->hWin, ID_LISTVIEW_0);
hHeader = LISTVIEW_GetHeader(hItem);
HEADER_SetFont(hHeader, &GUI_FontHZ16);
HEADER_SetBkColor(hHeader, 0x00A0A0A0);
HEADER_SetDragLimit(hHeader, 0);
WIDGET_SetEffect(hHeader, &WIDGET_Effect_None);
hScrollbar = SCROLLBAR_CreateAttached(hItem, SCROLLBAR_CF_VERTICAL);
SCROLLBAR_SetWidth(hScrollbar,20);
SCROLLBAR_SetColor(hScrollbar, SCROLLBAR_CI_THUMB, GUI_BLACK);//缩略图0x00A0A0A0
SCROLLBAR_SetColor(hScrollbar, SCROLLBAR_CI_SHAFT, GUI_WHITE); //轴
SCROLLBAR_SetColor(hScrollbar, SCROLLBAR_CI_ARROW, GUI_GRAY); //箭头
WIDGET_SetEffect(hScrollbar, &WIDGET_Effect_None); [/mw_shl_code]
可以自己创建滚动条添加到listview |
|