C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 08-21-2005, 11:35 AM   #1
Registered User
 
Join Date: Dec 2004
Posts: 103
CTreeCtrl horizontal scrollbar

hi does anybdoy know how to disable the horizontal scrollbar of the CTreeCtrl i have searched everywhere and didnt find an answer on msdn says:
"TVS_NOHSCROLL Version 5.80. Disables horizontal scrolling in the control. The control will not display any horizontal scroll bars."

but how to use the 5.80 version ? i really need this disabled please

edit: solved using ModifyStyle(0, 0x8000);
now the only problem i still have is when i create a modeless dialog window in double click event of the ctreectrl the ctreectrl gets focus after the dialog is showed how is that possible and is there a way to fix this ?
thanks

edit2:
solved using PostMessage(WM_SETFOCUS);
lol never knew theres a difference between SetForegroundWindow, SetFocus() and that

Last edited by eXistenZ; 08-21-2005 at 06:26 PM.
eXistenZ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
horizontal scrollbar in listbox umen242 Windows Programming 3 06-30-2009 08:40 AM
C win32 API - Scrollbar won't work Matt-Stevens Windows Programming 2 08-03-2006 09:05 PM
sending messages to a scrollbar stormbringer Windows Programming 1 05-16-2003 12:32 PM
Horizontal Scroll Bars with CListBox Malek Windows Programming 1 04-10-2003 09:58 PM
Listbox control with horizontal scrollbar Ward Windows Programming 1 02-06-2002 10:35 AM


All times are GMT -6. The time now is 04:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22