Thread: CTreeCtrl horizontal scrollbar

  1. #1
    Registered User
    Join Date
    Dec 2004

    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 ?

    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. horizontal scrollbar in listbox
    By umen242 in forum Windows Programming
    Replies: 4
    Last Post: 09-17-2010, 01:20 AM
  2. C win32 API - Scrollbar won't work
    By Matt-Stevens in forum Windows Programming
    Replies: 2
    Last Post: 08-03-2006, 09:05 PM
  3. sending messages to a scrollbar
    By stormbringer in forum Windows Programming
    Replies: 1
    Last Post: 05-16-2003, 12:32 PM
  4. Horizontal Scroll Bars with CListBox
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2003, 09:58 PM
  5. Listbox control with horizontal scrollbar
    By Ward in forum Windows Programming
    Replies: 1
    Last Post: 02-06-2002, 10:35 AM