Home > Archive > Smartphone Developer Forum > April 2006 > Strange Scrollbar Issue on ListBox
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Strange Scrollbar Issue on ListBox
|
|
| jimh@netwasp.com 2006-04-21, 7:09 pm |
| My Listbox scrollbar is either only 1 pixel wide or is drawing too far
over to the right. Can I not have a scroll bar on a listbox on
SmartPhone? Here is the creation code:
// Create the history list
m_hWndList = ::CreateWindow(_T("LISTBOX"),
NULL,
WS_VISIBLE | WS_CHILD | WS_TABSTOP | WS_BORDER |
LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | LBS_SORT,
0,
0,
m_dwEditWidth,
SCALEY(DEFAULT_EDITHEIGHT)*2,
hWnd,
NULL,
m_hInstance,
(PVOID)this);
Anyone come across this problem or am I doing so obviously wrong I just
can't see it?
| |
|
| jimh@netwasp.com wrote:
> My Listbox scrollbar is either only 1 pixel wide or is drawing too far
> over to the right. Can I not have a scroll bar on a listbox on
> SmartPhone? Here is the creation code:
>
> // Create the history list
> m_hWndList = ::CreateWindow(_T("LISTBOX"),
> NULL,
> WS_VISIBLE | WS_CHILD | WS_TABSTOP | WS_BORDER |
> LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | LBS_SORT,
> 0,
> 0,
> m_dwEditWidth,
> SCALEY(DEFAULT_EDITHEIGHT)*2,
> hWnd,
> NULL,
> m_hInstance,
> (PVOID)this);
>
> Anyone come across this problem or am I doing so obviously wrong I just
> can't see it?
>
could try 'SysListView32' as the window class. i don't use
'LBS_DISABLENOSCROLL'.
riki
--
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
I believe that X is ten. I'm an existentialist.
|
|
|
|
|