阅读:1874回复:5
请问CMoRectangle类的Union函数怎么用啊?
请问在VC中CMoRectangle类的Union函数怎么用啊?特别是第二个参数应该怎么设啊?它的功能是不是将一个新的区域加入另一个区域中啊?
还请高人指教,小弟先行谢过! [此贴子已经被作者于2004-10-10 11:06:42编辑过]
|
|
1楼#
发布于:2004-10-10 09:35
<P><img src="images/post/smile/dvbbs/em15.gif" /></P><P>没人理</P>
|
|
2楼#
发布于:2004-10-10 16:40
<P>You can use it like this:</P><P><FONT color=#ff0000>CComVariant Extent(m_map.GetFullExtent().m_lpDispatch);</FONT></P><P><FONT color=#ff0000>TempPolygon = TempPolygon.Xor(TempPolygon2,Extent);</FONT></P><P>Xor is like Union.</P>
|
|
|
3楼#
发布于:2004-10-10 17:31
<P>多谢,但为什么我用CComVariant说未定义呢?怎么办?</P><P>初学者,没用过CComVariant</P>
|
|
4楼#
发布于:2004-10-11 12:07
<P>if you can't use CComVariant ,you can use COleVariant .</P><P>i think most of time both of them are ok.</P>
|
|
|
5楼#
发布于:2004-10-11 14:14
<P>我用Buffer函数时发现Buffer函数的第二个参数和Union函数的第二个参数好像是一样的,</P><P>我看了你发的帖子“<a href="http://www.gisempire.com/bbs/dispbbs.asp?boardID=39;ID=31144;page=1" target="_blank" ><FONT color=#000000>VC+MO to Create Buffer</FONT></A> ”</P><P>我直接把CComVariant变成COleVariant时就出错了,出错的代码我贴在你的帖子“<a href="http://www.gisempire.com/bbs/dispbbs.asp?boardID=39;ID=31144;page=1" target="_blank" ><FONT color=#000000>VC+MO to Create Buffer</FONT></A> ”里了。</P><P>还麻烦你看看,请多指教!</P>
|
|