How to create ListView with _always_visible_vertical_scroll_bar_ ?
-
Hi, I need my CListView derived class to have its horizontal scroll bar always visible (sometimes, of course, disabled). I tried following code: BOOL CFileView1::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) { __DWORD newStyle = dwStyle | WS_VSCROLL; __return CWnd::Create(lpszClassName, lpszWindowName, newStyle, rect, pParentWnd, nID, pContext); } but with no effect... Will somebody help me? Standa.
-
Hi, I need my CListView derived class to have its horizontal scroll bar always visible (sometimes, of course, disabled). I tried following code: BOOL CFileView1::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) { __DWORD newStyle = dwStyle | WS_VSCROLL; __return CWnd::Create(lpszClassName, lpszWindowName, newStyle, rect, pParentWnd, nID, pContext); } but with no effect... Will somebody help me? Standa.
Hi Standa, DWORD newStyle = dwStyle | WS_VSCROLL | LBS_DISABLENOSCROLL; return CWnd::Create(lpszClassName, lpszWindowName, newStyle, rect, pParentWnd, nID, pContext); May help you. Best of luck KVRN Kiran Kumar.