| | |
Visual C++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
0
#2 Mar 22nd, 2003
There's different ways to do this. How do you want to do it? You can do it quickly with dialog wizards or code it from scratch. This sounds like a class assignment. You have to be more specific.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
•
•
Join Date: May 2003
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by lyar1977
Using Dialog Box:
I want to draw a ball in a solid color and be able to move the ball around on the Dialog Box.
Override the OnPaint message handler for your dialog. Draw your ball in there using the device context pointer provided.
0
#4 May 18th, 2003
I think what it seems to me that he wants is to associate the moving object (the ball) with a keyboard or mouse control.
0
#5 May 19th, 2003
I've coded a simple program that lets the user control the position of a ball via the arrow keys.
http://www.abdn.ac.uk/~u02cll2/windo...movingball.jpg
The program can be downloaded here.
The source code can be viewed in HTML format here.
http://www.abdn.ac.uk/~u02cll2/windo...movingball.jpg
The program can be downloaded here.
The source code can be viewed in HTML format here.
0
#6 May 20th, 2003
You got too much time on your hands.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
![]() |
Similar Threads
- Playing .Wav/MIDI files in a Visual Basic Program (Visual Basic 4 / 5 / 6)
- TORONTO, CANADA: Exciting startup seeking Visual / Interaction Designer (Web Development Job Offers)
- Visual C++/ CLI Developer (Software Development Job Offers)
- TechNet TV - Visual Studio 2003 ....... (VB.NET)
- The Move.....Visual Basic 6, Visual Basic .NET ? (VB.NET)
- Visual C++ and Excel (C++)
- Visual Basic.net (VB.NET)
Other Threads in the C++ Forum
- Previous Thread: What Language is used in software like Adobe Photoshop?
- Next Thread: Help me please
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets







