C# ListViewµÄÓйØÎÊÌâ¡£ - .NET¼¼Êõ / C#
1.ListViewÖÐÓÐÈô¸É¸öitem£¬²¢ÇÒcheckbox=true£»
2.ÎÒÏëʵÏÖ£ºµ±ÎÒÑ¡ÖÐitemÇ°ÃæµÄcheckboxµÄʱºò£¬Í¬Ê±Ò²ÈøÃitem±»selected£»
3.ÏÖÔÚÎÒÊÇÔÚlistView1_ItemCheckedʼþÖд¦Àí£º
C# code:
if (this.listView1.Items[0].Checked)
{
this.listView1.Items[0].Selected = true;
}
if (this.listView1.Items[1].Checked)
{
this.listView1.Items[1].Selected = true;
}
¡¡
ÓÃÉÏÃæµÄ´úÂë³öÏÖµÄÎÊÌâÊÇ£º±ÈÈçitem[4]±¾À´¾ÍÊÇcheckedµÄ£¬È»ºóÎÒÏÖÔÚʹitem[3].checked£¬¿ÉÊDz¢²»»áʹitem[3].selected£»
C# code:
if (this.listView1.Items[0].Checked)
{
this.listView1.Items[0].Selected = true;
}
else if (this.listView1.Items[1].Checked)
{
this.listView1.Items[1].Selected = true;
}
¡¡
È»ºó»»³ÉÉÏÃæ´úÂëµÄÎÊÌ⣺±ÈÈçitem[4]±¾À´¾ÍÊÇcheckedµÄ£¬È»ºóÎÒÏÖÔÚʹitem[5].checked£¬¿ÉÊDz¢²»»áʹitem[5].selected£»
²»ÖªµÀÄãµÄ¸ü±¾Ä¿µÄʱʲô ûÓжÁ¶®ÄãµÄÁôÑÔ.......
ѧϰ...
2.ÎÒÏëʵÏÖ£ºµ±ÎÒÑ¡ÖÐitemÇ°ÃæµÄcheckboxµÄʱºò£¬Í¬Ê±Ò²ÈøÃitem±»selected£»
ÊDz»ÊÇÒª°ÑMultSelect ÊôÐÔÉèΪTRUE °¡
Â¥Ö÷£¬Èç¹ûÄãÏëÔÚListViewËùÑ¡Ïî¸Ä±äʱ£¬½øÐÐһЩ²Ù×
Ïà¹ØÎÊ´ð£º
ÇëÎÊVFPÖÐÈçºÎµ÷ÓÃC/C++º¯Êý£¿
ÄãÒªµ÷ÓÃʲô¹¦Äܵĺ¯Êý£¿Òª¿´¿´VFPÖÐÓÐûÓжÔÓ¦µÄº¯Êý£¬Èç¹ûÓоÍÊ¡×ÅÔÙµ÷ÓÃÁË¡£Èç¹ûûÓУ¬¿ÉÒÔ½«C/C++º¯Êýд¸öDLL»òFLL£¬È»ºóÔÚVFPµ÷Óü´¿É¡£
Ê®¶¹Èý ÀÏʦ£¬Ôõô²ÅÄÜÐÞ¸Ä×Ô¼ºµÄ ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
¹«Ë¾¿ª·¢Ò»¸ö´¥ÃþÆÁ³ÌÐò£¬ÎÒ¸ºÔðµÄÒ»¿é£¬ÊµÏÖÕâÑùÒ»¸ö¹¦ÄÜ£¬µ±Êó±êµã»÷´°¿ÚÖÐͼƬ£¨Ò»ÕÅͼ·Ö³É¼¸²¿·Ö£©µÄÆäÖÐÒ»²¿·Öʱ£¬½«Õⲿ·ÖͼƬ½ØÈ¡³öÀ´£¬µ¯³öеĴ°¿Ú£¬½«½ØÈ¡³öµÄͼƬÏÔʾ³öÀ´¡£ÎÒʹÓÃRectangeÀà¿ØÖÆÁË·µ»Ø£¬ ......