 |
|
 |
if i use a bmp/jpg/ico to put backyad,and buttonST for tooltip,is it the same effect ?
anyway ,thacks for the job! and how to add a point or a station for dynamic?
|
|
|
|
 |
|
 |
thanks。
|
|
|
|
 |
|
 |
Thank u very much. Perfectly , It helps me very much.
|
|
|
|
 |
|
 |
The CMapPin object will consume a lot of memory because it is a class that inherited from CWnd. Last year I ever created a project "eMap" that uses a class CMonitorElement, it is similar to CMapPin. I need to create many CMonitorElement-object in a view, the used too many memory!
|
|
|
|
 |
|
 |
The only memory CWnd uses is very minimal since all it contains is a 4 byte handle (the m_hWnd member variable) on 32bit windows. Other issues which may decide against its' use is because it is an MFC class. If you are really worried about the working set of your application, then you might want to look at the WTL framework. Also remember each map pin contains a icon resource. Again if you were worried about this you could devise a scheme to share icon resources between instances.
|
|
|
|
 |
|
 |
Yes, I think I need to optimize my code.
|
|
|
|
 |
|
 |
I download demo project and extract file. When I start program first it ask me for covert version. I accept but it show error when compiling .. it show
LINK : fatal error LNK1104: cannot open file "mfc42u.lib"
Error executing link.exe.
How Can I do?
|
|
|
|
 |
|
 |
As mentioned in another thread for this code: You are trying to build the Win32 Unicode Debug build. To resolve this "problem", right mouse click on any toolbar and check the "Build" item. Then in the "Build" toolbar select "Win32 Debug", Then do a rebuild. This will fix the "problem". Otherwise you need to do a custom install of VC 6 to get the MFC Unicode Libraries installed.
|
|
|
|
 |
|
 |
thank for you
I have use the method you offered
what I want to ask is that the differnce win32 unicode debug and Win32 Debug
wzh
|
|
|
|
 |
|
 |
There are many good articles on the MSDN, CodeProject and the Internet in general on Unicode development. I would suggest you do the research yourself to gain a better understanding on what it is and what advantages it can bring
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I try to implement the cut option from popmenu in CMapPin
ON_COMMAND(ID_EDIT_CUT, OnEditCut)
void CMapPin::OnEditCut()
{
DestroyWindow();
}
This didn't work (menu is always disable ... and CMapPin don't receive the message I think)
Can you Help me?
|
|
|
|
 |
|
 |
Very useful I think your code.
And you are considered to have much experience in GIS programming, so would you give some sample code for GIS basic handling functions inlcude mapping, zooming, scaling and projection, datum conversion?
Thanks in advance.
|
|
|
|
 |
|
 |
Dear Gurus,
i am a new bie for GIS programming. if you provide me the sample code, means then its very useful for me.
thanks,
Rajesh. S
|
|
|
|
 |
|
 |
Sorry but the only other code is this area which I have produced is 2 GPS SDK's for Windows. You can check them out on my web site at www.naughter.com
|
|
|
|
 |
|
 |
if Create with WS_THICKFRAME,it not work,can you let it to resize with mousemove
|
|
|
|
 |
|
 |
Try to replace OnMouseMove function by the following implementation:
void CSelectWnd::OnMouseMove(UINT nFlags, CPoint point)
{
if (m_bCaptured)
{
CRect rect;
GetWindowRect(&rect);
CWnd* pParent = this->GetParent();
pParent->ScreenToClient(rect);
//Only move the pin if it is inside the client rect of the parent window
CRect clientRect;
pParent->GetClientRect(&clientRect);
rect.OffsetRect(point.x-m_nDragOffset.x, point.y-m_nDragOffset.y);
if (rect.left >= clientRect.left && rect.top >= clientRect.top &&
rect.right < clientRect.right && rect.bottom < clientRect.bottom)
{
MoveWindow(rect);
CWnd::OnMouseMove(nFlags, point); //Let the parent do its thing
}
}
else
CWnd::OnMouseMove(nFlags, point); //Let the parent do its thing
}
Hope that helps,
Carlos
|
|
|
|
 |
|
 |
It should be CMapPin::OnMouseMove(...)
instead of CSelectWnd::OnMouseMove(...)
|
|
|
|
 |
|
 |
Can not be Executive. windows 98, 2000
"MFC Runtime Module error"
--This application or DLL. Can not be loaded on window 95
or on windows 3.1--
|
|
|
|
 |
|
 |
You are running the Win32 Unicode Debug or Uncidoe Release build. On Windows 9x, you can only use Ascii builds. To resolve this "problem", right mouse click on any toolbar and check the "Build" item. Then in the "Build" toolbar select "Win32 Debug", Then do a rebuild. This will fix the "problem"
|
|
|
|
 |
|
 |
This code is very cool and useful.
Thank you!
|
|
|
|
 |