Created
August 28, 2010 05:20
-
-
Save mathfur/554763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// バルーン表示メモ | |
// 以下抜粋 | |
void InitializeComponent(void) | |
{ | |
// notifyIcon1 | |
this->notifyIcon1->BalloonTipIcon = System::Windows::Forms::ToolTipIcon::Warning; | |
this->notifyIcon1->BalloonTipText = L"ここが内容"; | |
this->notifyIcon1->BalloonTipTitle = L"タイトル"; | |
this->notifyIcon1->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"notifyIcon1.Icon"))); // ■アイコンがないとバルーンも表示されない | |
this->notifyIcon1->Text = L"notifyIcon1"; | |
this->notifyIcon1->Visible = true; | |
this->notifyIcon1->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::notifyIcon1_MouseDoubleClick); | |
// Form1 | |
this->ShowInTaskbar = false; // ■タスクバーにこのアプリを表示させない | |
} | |
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { | |
this->notifyIcon1->ShowBalloonTip(3000); | |
this->Visible = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment