Click to See Complete Forum and Search --> : Program's Problem "How to Locate the position on the map"
jacky_beginner
September 2nd, 2004, 12:57 PM
Dear All,
I'm doing a project about the map. I would like to ask how (say methods and tools)to locate positions on the map ( the map can be jpg, bmp, etc). Thank you very much!
Yves M
September 2nd, 2004, 01:07 PM
[ moved post to more appropriate forum ]
Yves M
September 2nd, 2004, 01:08 PM
Can you describe your problem a bit more clearly please? What is "map" and what is "a position"?
jacky_beginner
September 2nd, 2004, 01:15 PM
Thank you very much!
For example I have a map in jpg or bmp formate. When I click on it then it can show a red cross in where I just clicked!
Yves M
September 2nd, 2004, 02:18 PM
Well, you should load the map into a memory HDC, paint it on the screen and then capture WM_LBUTTONDOWN and paint the red cross with MoveToEx and LineTo. If you are programming in C++ that is. It's probably a good idea to check some example source code on the main Codeguru site to learn how to load and display a JPG or a BMP.
jacky_beginner
September 3rd, 2004, 02:12 AM
Thank You.
How about if I want to develop it in the pocket PC use VS.Net as a development tool, how can I work with that? Moreover, how can I locate the position I have just clicked? Could you kindly give me a detail explaination? Thank you very much!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.