GetTickCout(LbuttonUp) - GetTickCount(LbuttonDown)

解决方案 »

  1.   

    在ClassWizard中,每个工具条按钮只有两个消息:COMMAND 和 UPDATE_COMMAND_UI, 请问我如何获得该按钮DOWN和UP的消息呢?
      

  2.   

    CWnd::GetCurrentMessage  
    static const MSG* PASCAL GetCurrentMessage( );Return ValueReturns a pointer to the MSG structure that contains the message the window is currently processing. Should only be called when in an OnMessage handler.MSG->time
      

  3.   

     当工具条上的按钮弹起来的时候才发出相应的按钮消息,用GetCurrentMessage获取的时间是弹起来的时间。请问按下去的时间怎么获得?
      

  4.   

    哦,我想错方向了!
    done!
      

  5.   

     不行,还是不行!
     从CToolBar派生的工具条只响应LeftButtonDown和LeftButtonUp两个消息,当发生这两个消息时并不知道是哪个按钮被按下去的。难道要根据鼠标指针来自行判断是哪个按钮吗?
     各位还请帮个忙指点一二,谢谢!