-
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!
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
|