当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·如何刷新编辑框里的数字    »显示摘要«
    摘要: 有个编辑框(idc_tex_x),m_texx 是它的float型变量,m_ctexx是它的cedit型变量. 我现在想当列表框选择发生变化时,编辑框显示不同的数字,如3.2,4.5等. 不能用updatedata(false);因为会影响到其他的控件 ,我只是想该编辑框实时地显示数字. 为什么执行 m_texx=3.2; m_ctexx.updatedata(false); 却不能在编辑......
 ·很簡單的問題,得分得好機會    »显示摘要«
    摘要: string savepath=configurationsettings.appsettings["filepath"]; if(file_id.postedfile!=null) { string file1_name=path.getfilename(file_id.postedfile.filename); string file1_type=file_id.......


PB6.5的几个问题

1.   怎样实现拖动一幅图片的时候,窗口也随着移动,但图片本身相对于窗口是不懂的?  
  2.   怎样播放mp3,wav?需要什么dll和怎么声明外部函数?  
  3.   移动鼠标到某个控件上的事件是:pbm_mousemove,   离开鼠标的事件是什么呢?

NO.1   作者: jdsnhan

一点一点帮你解答    
  播放声音   :  
  Function   boolean   sndPlaySoundA(string   SoundName,   uint   Flags   )   Library   "WINMM.DLL"  
  Function   uint   waveOutGetNumDevs()   Library   "WINMM.DLL"

NO.2   作者: polugen

1.   怎样实现拖动一幅图片的时候,窗口也随着移动,但图片本身相对于窗口是不懂的?  
  2.   怎样播放mp3,wav?需要什么dll和怎么声明外部函数?  
  3.   移动鼠标到某个控件上的事件是:pbm_mousemove,   离开鼠标的事件是什么呢?  
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  1。你可以利用图片移动的坐标,然后计算移动后窗口的位置,然后用MOVE函数,移动窗口  
  2。不用DLL,用ACTIVEX的媒体播放器  
  3。可以利用PBM_MOUSEOVER实现你的功能

NO.3   作者: incats

在图片上自定义事件.   (lbuttondown,   lbuttonup,   mousemove)  
  lbuttondown:  
        ib_capture   =   true  
        il_holdx   =   xpos  
        il_holdy   =   pos  
   
  lbuttonup:  
        ib_capture   =   false  
   
  mousemove:  
        if   not   ib_capture   then   return  
         
        parent.x   +=   xpos   -   il_holdx  
        parent.y   +=   ypos   -   il_holdy


    摘要: 怎样能够使得循环一秒循环一次? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE