1、添加Button的背景图Bitmap:
首先将Button的own drew 属性设为true,然后在BOOL CMyDlg::OnInitDialog()加入代码:
((CBitmapButton *)GetDlgItem(IDC_min))->LoadBitmaps(IDB_BITMAP4);
((CBitmapButton *)GetDlgItem(IDC_BUTTON1))->LoadBitmaps(IDB_BITMAP1);
2、应用程序置于桌面最顶层
在BOOL CMyDlg::OnInitDialog()加入代码:
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
转载于:https://www.cnblogs.com/BaiYong/archive/2009/09/18/1569761.html