如题,半天没搞出来,郁闷!

解决方案 »

  1.   

    只要让checkbox不能编辑即可~,没找到相关属性,可有改变节点上面字的颜色,但是还是可以编辑的~~
      

  2.   

    #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);
    }
      

  3.   

    本身不能,你可以进行扩展listview,抛开原来的checkbox,向里面增加checkbox控件,然后控制控件的属性。
    ref:
    http://www.codeproject.com/cs/miscctrl/ListViewEmbeddedControls.asp
      

  4.   

    To:Knight94(愚翁) 谢谢~,试试看.