Problem with parameter NULL in function of SDK (C#)

ApliesAplies Global Mapper UserPosts: 35Trusted User
edited March 2013 in SDK
Hello,

I don't know how give a NULL parameter for GM_Rectangle_t in the function "GM_DrawLayerList".
I tried lots of solutions and i read lots of posts on this forum but I have not been able to do it.
How do you declare a GM_Rectangle_t with a value NULL in C#?

Thanks in advance.

Comments

  • BMGJustinBMGJustin Global Mapper User Posts: 1
    edited March 2013
    Hello,
    If you want to pass it in as NULL you would need to declare it as an IntPtr rather than a GM_Rectangle_t. There isn't much point in passing it in as NULL though. If you pass it as NULL it would just draw everything that is loaded. You need it non-NULL to provide it a rectangle for any sort of zooming or panning.
  • ApliesAplies Global Mapper User Posts: 35Trusted User
    edited March 2013
    Hello,
    Thank you for your answer.
Sign In or Register to comment.