Description: VC++ coordinate conversion process between the screen coordinates and window coordinates of the conversion, there are two examples of different methods to achieve the effect is the same, you can put the screen coordinates into window coordinates.
To Search:
File list (Check if you may need any files):
在屏幕坐标和窗口坐标之间转换\在屏幕坐标和窗口坐标之间转换1\MainFrm.cpp
............................\.............................\MainFrm.h
............................\.............................\Mouse.aps
............................\.............................\Mouse.clw
............................\.............................\Mouse.cpp
............................\.............................\Mouse.dsp
............................\.............................\Mouse.dsw
............................\.............................\Mouse.h
............................\.............................\Mouse.rc
............................\.............................\MouseDoc.cpp
............................\.............................\MouseDoc.h
............................\.............................\MouseView.cpp
............................\.............................\MouseView.h
............................\.............................\res\Mouse.ico
............................\.............................\...\Mouse.rc2
............................\.............................\...\MouseDoc.ico
............................\.............................\...\Toolbar.bmp
............................\.............................\Resource.h
............................\.............................\StdAfx.cpp
............................\.............................\StdAfx.h
............................\............................2\MainFrm.cpp
............................\.............................\MainFrm.h
............................\.............................\Mouse.aps
............................\.............................\Mouse.clw
............................\.............................\Mouse.cpp
............................\.............................\Mouse.dsp
............................\.............................\Mouse.dsw
............................\.............................\Mouse.h
............................\.............................\Mouse.rc
............................\.............................\MouseDoc.cpp
............................\.............................\MouseDoc.h
............................\.............................\MouseView.cpp
............................\.............................\MouseView.h
............................\.............................\res\Mouse.ico
............................\.............................\...\Mouse.rc2
............................\.............................\...\MouseDoc.ico
............................\.............................\...\Toolbar.bmp
............................\.............................\Resource.h
............................\.............................\StdAfx.cpp
............................\.............................\StdAfx.h
............................\............................1\res
............................\............................2\res
............................\在屏幕坐标和窗口坐标之间转换1
............................\在屏幕坐标和窗口坐标之间转换2
在屏幕坐标和窗口坐标之间转换