且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

释放轨迹栏控件的问题

更新时间:2023-12-06 14:39:46

您可以调用ReleaseCapture释放它.检查链接以获取更多信息:

http://msdn.microsoft.com/en-us/library/ms646261%28v = VS.85%29.aspx [ ^ ]

旁注,如果没有这种使用winapi的直接交互,可能有更好的方法来做您想要的事情.也许改用change事件怎么样?

祝你好运!
You could call ReleaseCapture to release it. Check the link for more info:

http://msdn.microsoft.com/en-us/library/ms646261%28v=VS.85%29.aspx[^]

As sidenote, there is probably a better way of doing what you want without these kind of direct interactions using winapi. How about maybe using the change event instead?

Good luck!


只是为了让你知道,这就是我的解决方法...

just to let you know, here''s how I got around it...

if(bool_motor1_stall == FALSE)
        {
            Motor1_lbl->Text = "Motor One: OK";
            this->trackBar2->Scroll += gcnew System::EventHandler(this, &Form1::trackBar2_Scroll);
        }

        else
            {
            Motor1_lbl->Text = "Motor One: Stalled";
            textBox5->Text = Convert::ToString(q);
            trackBar2->Value = q;
            }