| | |
help
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2005
Posts: 2
Reputation:
Solved Threads: 0
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.
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!
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!
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)
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:
no www
no nonsense
coming soon to a pc near you! :cool:
![]() |
Other Threads in the C++ Forum
- Previous Thread: ok guys,here is what i reached...c++
- Next Thread: visual studio c++ and linux?
Views: 1374 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






