DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    miqamar miqamar Guest

    need help please


    Hi

    I'm scrolling my dialog with controls and repositioning the scrollbar and
    my window,(I'm only scrolling part of the dialog) but when I scroll back
    it puts white boxes on my dialog. I used ValidateRect(NULL) but it still
    isn't doing anything. What am I doing wrong here. Please




  2. #2
    Klaus H. Probst Guest

    Re: need help please

    Did you try InvalidateRect()?


    --
    .. . . . . . . . . . . . . . . . . . . . . .
    Please post/reply to the
    newsgroup(s)

    Klaus H. Probst, MVP
    http://www.vbbox.com/
    http://www.mvps.org/ccrp/


    <miqamar miqamar> wrote in message news:38da5e8d$1@news.devx.com...
    >
    > Hi
    >
    > I'm scrolling my dialog with controls and repositioning the scrollbar and
    > my window,(I'm only scrolling part of the dialog) but when I scroll back
    > it puts white boxes on my dialog. I used ValidateRect(NULL) but it still
    > isn't doing anything. What am I doing wrong here. Please
    >
    >
    >




  3. #3
    qamar Guest

    Re: need help please




    "Klaus H. Probst" <kprobst@vbbox.com> wrote:
    >Did you try InvalidateRect()?
    >
    >



    I did and it doesn't even scroll the window. This is what I've.

    case SB_PAGEUP:
    SetScrollPos(SB_VERT, GetScrollPos(SB_VERT) - ScrollInfo.nPage);
    UpdateWindow();
    ScrollWindow(0, ScrollInfo.nPage, rt, rcClient);
    InvalidateRect(NULL);
    break;

    case SB_PAGEDOWN:
    if(GetScrollPos(SB_VERT) != 75)
    {
    SetScrollPos(SB_VERT, GetScrollPos(SB_VERT) + ScrollInfo.nPage);
    UpdateWindow();
    ScrollWindow(0, -int(ScrollInfo.nPage), rt, rcClient);
    InvalidateRect(NULL);

    }
    break;


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links