CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Jul 2006
    Posts
    52

    little gliche in complex mouse tracking program

    Hi ,

    Some time ago i made this little program that paints all .NET colors
    on a form. It elegantly figures how many boxes can fit on to the
    client and then paints them accordingly.It also figures the right text
    color.


    I've added mouse tracking to it already. If can figure which box the
    mouse is on , and if you *click* a box , it hight lights. Now , this
    works like a treat if you've *maximized* the window. If you restore or
    resize the wnd and scroll, everything gets muddled up , it really
    turns into a mess.
    Since it's set to resize redraw , minimze , then
    restore the window and it nicely repaints everything. So , could
    someone help me fix that!??
    Also , if there is a better way of doing anything somewhere , plz tell
    me.

    Source:http://gidsfiles.googlepages.com/FrmColors.cs
    -i've tried adding comments on each line , plz tell me if something is
    still not clear.

    I'm guessing this is possible because i'm thinking listviews in
    LargeView are pretty much the same thing. And listviews can scroll
    safely without getting mucked up.

    Thanks so much

    (i'm new to drawing btw , i've just started GDI+ and i have'nt done
    GDI or something earlier)

    Gideon
    Last edited by giddy_guitarist; May 11th, 2007 at 09:47 AM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured