CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2014
    Posts
    6

    javascript effect in vc++

    home page of http://paolapalaciosdesign.com/ has thumbnails and when you hovering them, you can see transparent thumbnail will show up on the same thumbnail. but this have done in javascript.
    What I want is, to do this in VC++ for a software. And in that software, that transparent thumbnail should be showed underneath the hovering thumbnail. Then all the other thumbnails(contents) which were below that thumbnail should automatically move to downside.
    Please anyone know how to do that?

  2. #2
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: javascript effect in vc++

    1) by writing a lot of code.
    2) per pixel Transparency is done either using GDI+ or by using the AlphaBlend() GDI function.

  3. #3

    Re: javascript effect in vc++

    By using Visual C++, you can use GDI+ or Direct2D to do this. But Direct2d need Windows 7 UP.
    Andy
    --------------------------------------------
    E-XD++ Visualization Kit at code-home.com

  4. #4
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: javascript effect in vc++

    A quick and easy solution would be using MouseMove() message handler to track hovering area and change respective image using memory dc and BitBlt and finally DrawText on desired location.

    Basically this method requires, different state images to be supplied.
    ◄◄ hypheni ►►

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: javascript effect in vc++

    Quote Originally Posted by hypheni View Post
    A quick and easy solution would be using MouseMove() message handler to track hovering area and change respective image using memory dc and BitBlt and finally DrawText on desired location.

    Basically this method requires, different state images to be supplied.
    Yep, if you view source on the website, you can see that they are doing exactly that, i.e using two different images.

  6. #6
    Join Date
    Mar 2014
    Posts
    6

    Re: javascript effect in vc++

    I assume it is too hard to do it in an application using C++. So I change the mind to do an alternative thing instead of what i explained to do in the post.
    Thanks for the all replies. Those helped to get some idea about this.

  7. #7
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: javascript effect in vc++

    Yes you need to have some grip on VC++ alnog with C++ to do this. And its quite possible to implement the same in desktop application.
    ◄◄ hypheni ►►

  8. #8
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: javascript effect in vc++

    Quote Originally Posted by jrmkr View Post
    I assume it is too hard to do it in an application using C++. So I change the mind to do an alternative thing instead.
    Well, seems you give up too easy. There's nothing hard in doing this using C++. Start with a single thumbnail and understand the principle. Later you can expand your solution.
    Best regards,
    Igor

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