如何在基于CFormView的Ultimate Grid Control中启用编辑功能 [英] How to enable editing function in Ultimate Grid Control based on CFormView

查看:53
本文介绍了如何在基于CFormView的Ultimate Grid Control中启用编辑功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我已经建立了一个基于MultiDoc结构的项目,该视图派生自CFormView.我还将Ultimate Grid Control添加到几个视图中.但不幸的是,我无法将文本从一个单元格复制,剪切或粘贴到另一个单元格.只有在基于对话框的项目中,这些编辑功能才能起作用.

有谁知道如何在CFormView中启用复制,剪切和粘贴功能?谢谢.

hello,

I have made a project based on MultiDoc structure and the view is derived from CFormView. I also add the Ultimate Grid Control to several of the views. But unfortunately I can''t copy, cut, paste text from one cell to another. Only in dialog based project those editing functions can work.

Does any body know how to enable the copy, cut and paste functions in a CFormView? Thank you.

推荐答案

有点老了,但我只是遇到了这个问题.

我在OnKeyDown中添加了对StartEdit的调用,因此:

A bit old, but I just had this problem.

I added a call to StartEdit in OnKeyDown, thus:

void MyCug::OnKeyDown(UINT *vcKey,BOOL processed)
{
    UNREFERENCED_PARAMETER(*vcKey);
    UNREFERENCED_PARAMETER(processed);

    StartEdit( *vcKey);
//  GetScrollBarCtrl(SB_HORZ)->EnableScrollBar(ESB_DISABLE_BOTH);
}




我发现其他人在OnDClicked中添加了类似呼叫的类似解决方案
http://read.pudn.com/downloads96/sourcecode/windows/control/391046/Ultimate%20Grid/Demos/EditingDemo/MyCUG.cpp __.htm [




I found a similar solution by someone else who added a similar call in OnDClicked
http://read.pudn.com/downloads96/sourcecode/windows/control/391046/Ultimate%20Grid/Demos/EditingDemo/MyCUG.cpp__.htm[^]


这篇关于如何在基于CFormView的Ultimate Grid Control中启用编辑功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆