Страница: 1 | 
		
		 
			   
			 
			 
			 
			 Страница: 1 | 
 
			
 
  
		
     
  
    
Вопрос: Горизонтальная прокрутка в ListBox
     
    
Добавлено: 20.07.04 20:18
     
      
  
				
			  
					 
			
				 
    
		
       
    
Автор вопроса:  
    
 CouchGrass
      
       
  
Приветик.
 
    
Подскажите, плиз, как добавить горизонтальную прокрутку в ListBox, которая автоматически бы добавлялась если элемент имеет длину, превышаюшую ширину listBoxa
				
		
		
					 
			
				 
  
		
     
  
    
Ответы
     
    
Всего ответов: 1
     
      
  
		
	  
			 
	
		 
    
       
    
Номер ответа: 1 
      
Автор ответа:
 sne
![]()
![]()
![]()
![]()
![]()
Разработчик Offline Client
ICQ: 233286456 
Вопросов: 34
Ответов: 5445
      
 Web-сайт:  
 Профиль |  | #1
      
Добавлено:  20.07.04 21:57
       
    
       
  
Поск в наличии, библиотека кодов тоже...
 
    
LB_SETHORIZONTALEXTENT
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. 
To send this message, call the SendMessage function with the following parameters. 
SendMessage( 
  
HWND) hWnd,              // handle to destination window 
  LB_SETHORIZONTALEXTENT,   // message to send
  
WPARAM) wParam,          // horizontal scroll width
  
LPARAM) lParam          // not used; must be zero
);