y esto que llevo yo
a C++/CLI
Código C++/CLI:
Ver originalusing namespace System;
using namespace System::Collections::Generic;
using namespace System::ComponentModel;
using namespace System::Drawing;
using namespace System::Diagnostics;
using namespace System::Windows::Forms;
using namespace System::Text;
namespace boz
{
ref class Toolbox : System::Windows::Forms::TreeView
{
ref class TBTreeNode : System::Windows::Forms::TreeNode
{
private: System::String^ mTooltipCaption;
private: bool mOnEdit;
private: bool mEnabled;
public: ToolTipCaption(String^)
{
return this->mTooltipCaption;
}
public: OnEdit(bool)
{
get(int){return this->mOnEdit;}
}
public: Enabled(bool)
{
get(int){return this->mEnabled;}
}
TBTreeNode()
{
this->mToolTipCaption = cli::array<String^ Empty>;
this->mOnEdit = false;
this->mOnEnabled = true;
}
~TBTreeNode()
{
}
}
private: const int TVS_NOTOOLTIPS = 0x80;
private: System::Drawing::Font^ mGroupHeaderFont;
private: System::Windows::Forms::ToolTip^ mToolTip;
private: System::Windows::Forms::TreeNode^ mPreviousNode;
private: System::Windows::Forms::TextBox^ mLabelEditBox;
protected override CreateParams : public System::Windows::Forms::CreateParams
{
get(int){CreateParams p = TBTreeNode->CreateParams;
p->Style = p->Style | TVS_NOTOOLTIPS;
return p;
}
}