SDI应用程序中的Leftvie和Rightview [英] Leftvie and Rightview in SDI application
问题描述
大家好我跟我一起询问。
1.我有一个sdi windiows探索者类型的应用程序与分离窗口。 leftview是treeview,rightview是listview。我在leftview中打开一个txt文件,并将其显示为带有tokenizer功能的treeview。我在OnSelchanged()函数的帮助下在treeview中选择节点我可以在右视图中显示一些内容,即Listview端。现在我的要求是我必须将tokenizer的输出字符串从leftview传递到rightvie并在列表视图中显示。我不知道该怎么做你可以帮助我吗?
2.在右视图方面,即在Listview方面,当我双击单个单元格时它必须是可编辑的,并且编辑的单元格必须更改为某种背景颜色。
1。使用本地消息代码,例如:
#define NM_SELECT(WM_APP + 1)
并通过SendMessage
将其从一个视图发送到另一个视图。
2.您可以使用LVS_EDITLABELS
样式来自动编辑项目列,但我认为您必须设计自己的处理程序来编辑子项目。
Hi all i hvae 2 queries with me.
1. i have a sdi windiows explrer type aplication with splitter window. the leftview is treeview and rightview is listview. Im opening a txt file in leftview and displaying it as treeview with tokenizer function. And wen i select the nodes in treeview with the help of OnSelchanged() function i can display some contents in the rightview i.e Listview side. Now my requirment is i have to pass the output string of the tokenizer from leftview to rightvie and dispaly in the list view. I dont know how to do that can u please help me in this??
2. In the rightview side i.e in the Listview side when i double click ona single cell it must be editable and the edited cell must be changed to some background colour.
1. Use a local message code, something like:
#define NM_SELECT (WM_APP + 1)
and send it from one view to the other viaSendMessage
.
2. you can use theLVS_EDITLABELS
style to allow automatic editing of the item column, but I think you have to design your own handler for editing the subitems.
这篇关于SDI应用程序中的Leftvie和Rightview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!