让标题栏闪烁 (C++ Builder)

来源(怡园)

From: http://yynets.best.163.com/cbuilder.htm

让标题栏闪烁 (C++ Builder)

void __fastcall TForm1::Button1Click(TObject *Sender) {
    // 激活定时器
    Timer1->Enabled = true;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender) {
    // 禁止定时器
    Timer1->Enabled = false;
    // 使窗体恢复原状
    FlashWindow(Handle, false);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Timer1Timer(TObject *Sender) {
    // 使窗体标题栏闪烁
    FlashWindow(Handle,True);
    Beep(); // 声音提示
}


Link: http://www.asm32.net/article_details.aspx?id=1919


浏览次数 346 发布时间 2006-08-25 07:43:20 从属分类 C/C++ 【评论】【 】【打印】【关闭
 
| www.asm32.net | 2006版 | 资料中心 | linux | asm/asm32 | C/C++ | VC++ | java | Python | 书签 | ASP.Net书签 | 京ICP备09029108号-1