| 站点地图 | 联系我
| www.asm32.net | 2006版 | 资料中心 | linux | asm/asm32 | C/C++ | VC++ | java | 书签 | ASP.Net书签 | 上善若水 厚德载物
 现在位置 :: 主页 >> 资料中心 >> ROOT / CODE / C/C++ /
 

隐藏任务栏 (C++ Builder)

来源(怡园)

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

隐藏任务栏 (C++ Builder)

void __fastcall TForm1::Button1Click(TObject *Sender) {
    HWND WndHandle;
    // 获取任务栏的窗口句柄
    WndHandle = FindWindow("Shell_TrayWnd", NULL);
    ShowWindow(WndHandle, SW_SHOW); // 显示任务栏
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender) {
    HWND WndHandle;
    WndHandle = FindWindow("Shell_TrayWnd", NULL);
    ShowWindow(WndHandle, SW_HIDE); // 隐藏任务栏
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender) {
    SetWindowLong(Application->Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
}


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


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