正文

主窗體設(shè)計(jì)(27)

Visual C++項(xiàng)目開發(fā)案例全程實(shí)錄(第2版) 作者:明日科技


 

為各個(gè)按鈕添加進(jìn)行云臺控制的方法。代碼如下:

void CCaptureDlg::OnUp() //向上移動

{

MoveCapture(0);

}

void CCaptureDlg::OnReset() //停止移動

{

MoveCapture(12);

}

void CCaptureDlg::OnDown() //向下移動

{

MoveCapture(1);

}

void CCaptureDlg::OnLeft() //向左移動

{

MoveCapture(2);

}

void CCaptureDlg::OnRight() //向右移動

{

MoveCapture(3);

}

void CCaptureDlg::OnInFoci() //增加聚焦

{

MoveCapture(5);

}

void CCaptureDlg::OnReFoci() //減小聚焦

{

MoveCapture(4);

}

void CCaptureDlg::OnInLen() //對焦增

{

MoveCapture(7);

}

void CCaptureDlg::OnReLen() //對焦減

{

MoveCapture(6);

}

void CCaptureDlg::OnReAperture() //光圈減

{

MoveCapture(8);

}

void CCaptureDlg::OnInAperture() //光圈增

{

MoveCapture(9);

}

void CCaptureDlg::OnReBrush() //畫筆減

{

MoveCapture(10);

}

void CCaptureDlg::OnInBrush() //畫筆增

{

MoveCapture(11);

}


上一章目錄下一章

Copyright ? 讀書網(wǎng) ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號 鄂公網(wǎng)安備 42010302001612號