What was wrond with the one I did for you?
What was wrond with the one I did for you?
How ironic, I spelt wrong wrong.
Hi Sam, nothing was wrong with it at all.. I'm trying to see if there's come kind of a mapped image control to take the code out of it.
Did you find a control fitting that description? I am looking for something like that as well. I get the impression that someone did this through code. Any tips (samples) on how this was approached?
I think these are the API calls you will need to accomplish this, however it will take a lot of time to define the boundaries of each country.
Code:Declare Function CreatePolygonRgn Lib "gdi32" Alias "CreatePolygonRgn" (lpPoint As POINTAPI, ByVal nCount As Long, ByVal nPolyFillMode As Long) As Long
Declare Function PtInRegion Lib "gdi32" Alias "PtInRegion" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long
Declare Function FillRgn Lib "gdi32" Alias "FillRgn" (ByVal hdc As Long, ByVal hRgn As Long, ByVal hBrush As Long) As Long