虚屏 (Win98关机时的网格,但不能锁定)

void __fastcall TForm1::Button1Click(TObject *Sender)
{
    unsigned short ary[8]={0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA};
    HBITMAP hbm=CreateBitmap(8,8,1,1,ary);
    HBRUSH hbs=CreatePatternBrush(hbm);
    HDC hdc=GetDC(NULL);
    SelectObject(hdc,hbs);
    PatBlt(hdc,0,0,Screen->Width,Screen->Height,0xA000C9);
    DeleteObject(hbs);
    DeleteObject(hbm);
    ReleaseDC(NULL,hdc);
}

//恢復
InvalidateRect(NULL,NULL,TRUE);

阅读更多
版权声明:原创文章转载时请附上原文链接 https://blog.csdn.net/aniven/article/details/556323
文章标签: 网格 null button c
个人分类: C++/BCB开发
上一篇屏蔽Ctrl+Alt+Del热启动键
下一篇抓取全屏并保存 (附:在图片上画方格)
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭