Scrolling in win32 window
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Scrolling in win32 window

  1. #1
    Join Date
    Mar 2012
    Posts
    1

    Question Scrolling in win32 window

    Hey guys. i am trying to implement a custom tab control in my win32 application. My requirement is to keep the width of the tab item constant, and if number of tab items exceeds the display window width, i slide the tabs out of the window (and hence out of the view) to make space in the window for this new tab. If the user wishes to access the previous tabs, a simple click on the first visible tab in that window will slide the pushed-out tabs into focus.

    Now i am trying to implement this functionality with the help of a scroll bar control. My problem: I cant actually show a scroll bar or buttons for scrolling. All the above mentioned scrolling needs to be done through simple mouse clicks on the tab item. Is there anyway i can implement the scrolling and have some kind of invisible scroll bars? I have searched allot and still haven't found a satisfactory answer to this question. I am also exploring the option of manually changing the viewport of windows through SetViewportExtEx() and displaying the out-of-bounds tab items.

    I am a newbie at this kind of programming, so please bear with me. Any kind of pointer or suggestion in this matter would be highly helpful.

  2. #2
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,026

    Re: Scrolling in win32 window

    Have a look at Scroll Bar Reference.
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center