用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
pomelowu的公告
<TBODY> <TR> <TD vAlign=center align=middle> <TABLE border=0> <TBODY> <TR> <TD align=left> <DIV align=center> <SCRIPT language=JavaScript> today=new Date(); function initArray(){ this.length=initArray.arguments.length for(var i=0;i<this.length;i++) this[i+1]=initArray.arguments[i] } var d=new initArray( "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); document.write( "<font color=##000000 style='font-size:9pt;font-family: 宋体'> ", today.getYear(),"年", today.getMonth()+1,"月", today.getDate(),"日 ", d[today.getDay()+1], "</font>" ); </SCRIPT> </DIV></TD></TR></TBODY></TABLE> <OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=235 width=200 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="5292"><PARAM NAME="_cy" VALUE="6218"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://blog.china-pub.com/uploadfile/20041028215251316.swf"><PARAM NAME="Src" VALUE="http://blog.china-pub.com/uploadfile/20041028215251316.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"> </OBJECT> <br>踩过脚印数:<script src="http://www.xcinfo.ha.cn/jsq/default.asp?User=pomelo&Length=6&x=15&y=20&Mode=002"></script><BR><p><HR color = #DCDCDC size = 1><b><font face ='future' size =3>My Favorites</font></b></p><BR> <script type="text/javascript"><!-- google_ad_client = "pub-1384735940691967"; google_ad_width = 235; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_channel =""; google_color_border = "DCDCDC"; google_color_bg = "FFFFFF"; google_color_link = "FF0000"; google_color_url = "0000FF"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><BR><HR color = #DCDCDC size = 1> <p><b><font face ='future' size =3>Weather Forecast</font></b></p> <iframe width=160 height=250 frameborder=0 scrolling=NO src="http://appnews.qq.com/cgi-bin/news_qq_search?city=%C9%CF%BA%A3"></iframe>
文章分类
友達のBLOGS
娘子的豆浆
孤鸿的流觞
小三的专栏(RSS)
小昭的……小昭
小昭的一念间
木须肉的试剂瓶
欢欢的技术生活激情
练习的WEB前端开发(RSS)
存档

原创  wxWidgets中wxSetCursorEvent響應的一點tip 收藏

wxSetCursorEvent是wx中對鼠標形狀設置的事件。windows下跟WM_SETCURSOR等同。
消息映射做好之后,一開始是如下的代碼。實測發現消息已響應,但是鼠標形狀設置失敗。

BEGIN_EVENT_TABLE( SomeWnd, wxWindow )
    EVT_SET_CURSOR( SomeWnd::OnSetCursor )
END_EVENT_TABLE()


void SomeWnd::OnSetCursor( wxSetCursorEvent & event )
{
    SetCursor(wxCursor(wxCURSOR_HAND));
}


調查發現,需要多一個語句就能搞定。

void SomeWnd::OnSetCursor( wxSetCursorEvent & event )
{
    SetCursor(wxCursor(wxCURSOR_HAND));
    event.Skip();
}

发表于 @ 2008年01月10日 11:03:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:VC2005的IntelliSense高CPU占用问题 | 新一篇:DirectDraw使用DirectDrawEnumerateEx?

  • 发表评论
  • 评论内容:
  •  
Copyright © pomelowu
Powered by CSDN Blog