怎样把listview里指定的checkbox灰掉~? 如题,半天没搞出来,郁闷! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 只要让checkbox不能编辑即可~,没找到相关属性,可有改变节点上面字的颜色,但是还是可以编辑的~~ #include <stdio.h>#include <stdlib.h>#include <linux/ipc.h>#include <linux/msg.h>int main() { key_t message; int queue_id ; //建立消息队列 queue_id = msgget( message, IPC_CREAT | 0600); if (queue_id==-1) { perror("main: msgget"); exit(1); } //调用msgsnd和msgrcv的消息缓冲区 struct msgbuf { long mtype; char mtext[1]; }; //申请消息缓冲区 struct msgbuf *msg = (struct msgbuf*)malloc(sizeof(struct msgbuf)+100); //发送数据 msg->mtype = 1; sprintf(msg->mtext, "hello world"); int rc = msgsnd(queue_id, msg, strlen(msg->mtext)+1, 0); if (rc == -1) { perror("main: msgsnd"); exit(1); } //取得消息队列ID queue_id = msgget( message, 0); if (queue_id == -1) { perror("main: msgget"); exit(1); } return(queue_id);} 本身不能,你可以进行扩展listview,抛开原来的checkbox,向里面增加checkbox控件,然后控制控件的属性。ref:http://www.codeproject.com/cs/miscctrl/ListViewEmbeddedControls.asp To:Knight94(愚翁) 谢谢~,试试看. 无法将对象转换为自定义类型 关于LinkButton的问题 在XML序列化时,如何设置xsi:type ? 可以给应用程序域设置cultureInfo吗? C# 聊天系统 一口气问上3个问题,请指教 数据库应该如何建立呢 在c#中如何控制光盘驱动器门的开合? 如何在部件textbox里绑定Access数据库表里的一个字段? System.ArgumentOutOfRangeException Message=索引超出范围。必须为非负值并小于集合大小 怎样判断计算机进程中哪些是系统进程,哪些是用户进程? 是把基础理论都搞懂了再写代码呢还是仅知道个大概,边写边查帮助?哪个学习方式好?
#include <stdlib.h>
#include <linux/ipc.h>
#include <linux/msg.h>int main() {
key_t message;
int queue_id ;
//建立消息队列
queue_id = msgget( message, IPC_CREAT | 0600);
if (queue_id==-1) {
perror("main: msgget");
exit(1);
} //调用msgsnd和msgrcv的消息缓冲区 struct msgbuf { long mtype; char mtext[1]; }; //申请消息缓冲区 struct msgbuf *msg = (struct msgbuf*)malloc(sizeof(struct msgbuf)+100); //发送数据 msg->mtype = 1; sprintf(msg->mtext, "hello world"); int rc = msgsnd(queue_id, msg, strlen(msg->mtext)+1, 0); if (rc == -1) { perror("main: msgsnd"); exit(1); } //取得消息队列ID queue_id = msgget( message, 0); if (queue_id == -1) { perror("main: msgget"); exit(1);
}
return(queue_id);
}
ref:
http://www.codeproject.com/cs/miscctrl/ListViewEmbeddedControls.asp