CTreeCtrl horizontal scrollbar

This is a discussion on CTreeCtrl horizontal scrollbar within the C++ Programming forums, part of the General Programming Boards category; hi does anybdoy know how to disable the horizontal scrollbar of the CTreeCtrl i have searched everywhere and didnt find ...

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

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