摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &Key) { if ((Key == 13)&&(Editing)) //K...
阅读全文
摘要:(1)在Frame框架窗口中增加 TApplicationEvent 对象 (2)响应 TApplicationEvent 的 Message 消息 (3)编写 WM_PAINT 消息的代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->void ...
阅读全文
摘要:列表头实际上是一个SysHeader32控件,如果想改变它的颜色,唯一的办法就是自己画!那如何自己画呢? 1、首先,那个SysHeader32的每一个Item都必须具有HDF_OWNERDRAW属性。 2、当Item具有HDF_OWNERDRAW时,Windows在画它们之前将向SysHeader32的Owner(也就是TListView)发送WM_DRAWITEM消...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->TTabSheet* tab = new TTabSheet(this);//创建TTabSheet对象 tab->PageControl = this->MainPageControl;//设置Page...
阅读全文
摘要:使用 C++ Builder 6.0 提供的 TPicture控件来操作JPG格式的图片 使用方法: (1)引入jpeg头文件 #include Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> TPicture* picBtn; p...
阅读全文
摘要:首先在FormCreate时调用DragAcceptFiles(this,true)注册你的程序,使得你的程序可以接受文件的DragDrop。然后处理WM_DROPFILES消息,获得DropDrag的消息,调用如下函数获得相关的参数:: UINT DragQueryFile( HDROP hDrop, UINT iFile, LPTSTR lpszFile, UI...
阅读全文
摘要:TListItem *Item = ListView1->Selected; while (Item){ ListBox1->Items->Add(Item->Caption); Item = ListView1->GetNextItem(Item, sdAll, TItemS...
阅读全文
摘要://--------------------------------------------------------------------------- void __fastcall TForm1::ListView1DragDrop(TObject *Sender, TObject *Source, int X, ...
阅读全文
摘要:(1)将OwnerDraw属性设为 true (2)编写OnDrawItem事件代码 (推荐使用ListView1CustomDrawItem事件来实现自绘) Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* 自绘 */ void __fa...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include "VCLUnZip.hpp" #include "kpZipObj.hpp" #pragma hdrstop //------------------------...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->TListItem* s = ListView1->Selected; s->EditCaption();
阅读全文
摘要:.h文件 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->class PACKAGE ttrackBar11 : public TTrackBar { private: TCanvas *m_pCanvas; protected: vo...
阅读全文
摘要:.h文件 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include "oleidl.h" #include "controls.hpp" //---------------------------------------------------...
阅读全文
摘要:ListView1->Selected->SubItems->Strings(4)吧 ,Listview 从0开始算起 第一列=ListView1->Items->Item[0]->Caption; 第五列=ListView1->Items->Item[0]->SubItems->Strings[4];
阅读全文