查看单个帖子
旧 2009-05-04, 06:55 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】cursor funktion did not work with mfc

cursor funktion did not work with mfc?
cursor funktion did not work with mfc?
cursor funktion did not work with mfc?
i use the "dgnmfc" example source code and tuned it up with code from "dgnview" to zoom the view.
....
case wm_mousemove:
if(ldown)
{
hscrndraw->cursor(dgn_cursor_win,xfirst,yfirst,xnow,ynow); // clear old
xnow = x; ynow = y;
hscrndraw->cursor(dgn_cursor_win,xfirst,yfirst,xnow,ynow); // draw new
but the cursor funktion did not work.
there is no cross or box on the screen like it is in the "dgnview".
maybe it debends on the *.lib file we are using.
we use the dgntkmtd.lib. and the *mtd.lib libs.
in "dgnview" it works fine.
is there an example with cursor and mfc?
-jens
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)