void CMy123View::OnMouseDownDatagrid1(short Button, short Shift, long X, long Y)
{
// TODO: Add your control notification handler code here
}
如题,这几个参数如何利用,希望用MessageBox()给出选中的是哪一行的编号。或者以下vb代码如何转换成vc
Private Sub DataGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DataGrid1.Row = DataGrid1.RowContaining(Y)MsgBox ("你选种的记录号为:" & DataGrid1.Columns(0).Text)End Sub
{
// TODO: Add your control notification handler code here
}
如题,这几个参数如何利用,希望用MessageBox()给出选中的是哪一行的编号。或者以下vb代码如何转换成vc
Private Sub DataGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DataGrid1.Row = DataGrid1.RowContaining(Y)MsgBox ("你选种的记录号为:" & DataGrid1.Columns(0).Text)End Sub
解决方案 »
- SendMessage(hwnd,WM_QUIT,0,0); 为啥不好使
- VC++6.0 MFC winzard 报错
- 问一个超级菜鸟问题
- 急急急, ACCESS中没有与SQL SERVER的NEWID()相同功能的函数啊,ONLINE!
- 使用 ActiveSkin 控件,ListCtrl和ComboBox的问题
- 请问vc中窗体的概念是否和vb一样?还有主窗口句柄是否一个工程文件只能有一个?还是每个窗体有一个?
- 关于ftp传送数据mode的问题
- 用INT中断时,要不要保存堆栈?
- 求助:vc和matlab混合编程
- .net是什么?
- vc++制作active基础问题
- 求《Visual C++/MATLAB 图像处理与识别实用案例精选》电子书
AfxMessageBox(_T("你选种的记录号为:")+m_DataGrid.GetText());