Einzelnen Beitrag anzeigen

Kernel32.DLL
(Gast)

n/a Beiträge
 
#6

Re: ListBox Scrollleiste entfernen, geht das?

  Alt 30. Mär 2005, 14:46
Weil es LB_SETVERTICALEXTENT nicht gibt!

Das PSDK bietet dir das:

Aus dem PSDK Februar 2003:

lResult = SendMessage( // returns LRESULT in lResult
(HWND) hWndControl, // handle to destination control
(UINT) LB_SETHORIZONTALEXTENT, // message ID
(WPARAM) wParam, // = (WPARAM) () wParam;
(LPARAM) lParam // = (LPARAM) () lParam; );

Parameters:

wParam
Specifies the number of pixels by which the list box can be scrolled.
Microsoft® Windows® 95/Windows 98/Windows Millennium Edition (Windows Me) : The wParam parameter is limited to 16-bit values.

lParam
This parameter is not used.
Return Value


An application sends an LB_SETHORIZONTALEXTENT message to set the width, in pixels, by which a list box can be scrolled horizontally (the scrollable width). If the width of the list box is smaller than this value, the horizontal scroll bar horizontally scrolls items in the list box. If the width of the list box is equal to or greater than this value, the horizontal scroll bar is hidden.

Minimum operating systems: Windows 95, Windows NT 3.1


Nimm also LB_SETHORIZONTALEXTENT, müsste in der windows.pas deklariert sein, die Standardmäßig eingebunden ist.

mfg
Daniel
  Mit Zitat antworten Zitat