-
March 19th, 2002, 01:42 PM
#1
No scrollbar for Listbox using WinAPI
Can someone please help me out. The scrollbars are missing when I create a listbox using either CreateWindow or CreateWindowEx.
Here is my code below..
hSiteList = CreateWindow("listbox",NULL,WS_CHILD | WS_VISIBLE | WS_BORDER | LBS_HASSTRINGS | LBS_STANDARD| WS_HSCROLL | WS_VSCROLL, 320, 85, 130, 125, hwnd, (HMENU)IDC_SITELIST, hInst, NULL);
OR
hSiteList = CreateWindowEx(NULL,"LISTBOX", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | WS_HSCROLL | WS_VSCROLL | LBS_STANDARD, 320, 85, 130, 125, hwnd, (HMENU)IDC_SITELIST, hInst,NULL);
Thanks!
-
March 19th, 2002, 01:47 PM
#2
Re: No scrollbar for Listbox using WinAPI
I am not sure about the vertical scroll bars, but for the horizontal
scroll bars I think you need to look at the LB_SETHORIZONTALEXTENT
message.
-
September 20th, 2013, 08:32 AM
#3
Re: No scrollbar for Listbox using WinAPI
u should add more numbers of items in the list box then u could see the scroll bars
-
September 20th, 2013, 08:33 AM
#4
Re: No scrollbar for Listbox using WinAPI
u should add more numbers of items in the list box then u could see the scroll bars automatically
-
September 20th, 2013, 09:04 AM
#5
Re: No scrollbar for Listbox using WinAPI
The OP has probably solved this within the past 11-1/2 years!
Be sure to rate those who help!
-------------------------------------------------------------
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|