[1.CEGUI::EventArgs& args]
[Mouse Left&Right]
using namespace CEGUI;
const MouseEventArgs& evt = static_cast<const MouseEventArgs&>(args);
// 如果不是右键,返回
if(evt.button != RightBtn) return true;
[DragableWindow]
<Window Type="TaharezLook/StaticImage" Name="XingLi/DIKuang035" >
<Property Name="Font" Value="simsun" />
<Property Name="Image" Value="set:XiYouJie7 image:XL_DiKuang" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="UnifiedAreaRect" Value="{{0,247},{0,188},{0,281},{0,222}}" />
<Window Type="DragContainer" Name="XingLi/DIKuang035/Container" >
<Property Name="DragAlpha" Value="0.5" />
<Property Name="StickyMode" Value="False" />
<Property Name="DragThreshold" Value="8" />
<Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{0,34},{0,34}}" />
<Window Type="TaharezLook/StaticImage" Name="XingLi/DIKuang035/Container/WuPin" >
<Property Name="FrameEnabled" Value="False" />
<Property Name="UnifiedAreaRect" Value="{{0,1},{0,1},{0,33},{0,33}}" />
<Property Name="MousePassThroughEnabled" Value="True" />
</Window>
</Window>
</Window>
2 const WindowEventArgs& windowArgs = static_cast<const WindowEventArgs&>(event);
CEGUI::Window * wnd = windowArgs.window;