MFC中如何设置一个按钮,按下以后在一定的区域显示一个位图

用Bitblt()这个函数实现的
2024-12-22 14:29:50
推荐回答(1个)
回答1:

{
typedef int (WINAPI ICEPUB_DISPBMP)(HWND hWnd,char *strBmpFilename,int x,int y);
ICEPUB_DISPBMP *icePub_dispBmp = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_dispBmp = (ICEPUB_DISPBMP *)GetProcAddress(hDLLDrv, "icePub_dispBmp");
}

if(icePub_dispBmp != NULL)
icePub_dispBmp(m_btnSend.m_hWnd,"b.bmp",0,0);

}