OldSchoolHack

Register / Login English

OldSchoolHack GUI - endlich release

icon Thread: OldSchoolHack GUI - endlich release

Join Date: Aug 2007

Posts: 8646

User-Rating:

199 positive
33 negative
updaten in die andere Richtung



hier eine Beispielform wie einfach sich eine Form erstellen lässt:
CPP Code:
  1. class MainForm : public Form
  2. {
  3. private:
  4. LinkLabel *linkLabel;
  5.  
  6. void InitializeComponent()
  7. {
  8. this->SetText("OldSchoolHack GUI by KN4CK3R");
  9. this->SetSize(Drawing::Size(218, 289));
  10.  
  11. linkLabel = new LinkLabel();
  12. linkLabel->SetName("linkLabel");
  13. linkLabel->SetLocation(Drawing::Point(3, 9));
  14. linkLabel->SetText("visit www.oldschoolhack.de");
  15. linkLabel->GetClickEvent() += ClickEventHandler(std::bind(&MainForm::linkLabel_Click, this, std::placeholders::_1));
  16. this->AddControl(linkLabel);
  17. }
  18.  
  19. public:
  20. MainForm() : Form()
  21. {
  22. InitializeComponent();
  23. }
  24.  
  25. void linkLabel_Click(Control *control)
  26. {
  27. ShellExecute(0, "open", "www.oldschoolhack.de", NULL, NULL, SW_SHOWNORMAL);
  28. }
  29. };

greetz KN4CK3R

__________________

Hallo