help

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2005
Posts: 2
Reputation: dr.danno is an unknown quantity at this point 
Solved Threads: 0
dr.danno dr.danno is offline Offline
Newbie Poster

help

 
0
  #1
Feb 5th, 2005
I am looking for ideas for a program that I am trying to build. I need to have two pictures, one blurred and one clear. The blurred picture will cover the clear picture so it appears blurred. I need the mouse to appear as a sight glass so when the user moves the mouse over the blurred picture the clear version will appear in the sight glass. I am a college student trying to build this for a class. Any ideas? I have some knowledge of visual basic and html.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,135
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 946
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: help

 
0
  #2
Feb 5th, 2005
Would be rather simple in HTML, but since you posted this in C/C++ I assume you want to get an idea in those languages. Check the code snippet "Mouse-over (rollover) effect in a Windows GUI program" at:
http://www.daniweb.com/code/snippet88.html
You have to change the cursor in WinMain() and put the images on the label. It will take all the power of your brain to make this work!
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: help

 
0
  #3
Feb 5th, 2005
A basic idea would be

1) Blit the blurred picture
2) Define a rectangle around the mouse co-ords (clipped to the blurred pic too!)
3) Blit the clear portion in the rectangle

Win32 GDI should be an easy way to go on this one! (Look up the mouse messages, WM_PAINT message and the BitBlt function)
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum


Views: 1374 | Replies: 2
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC