我在基于对话框的程序中,添加了改变鼠标cursor的程序,我是想鼠标cursor在DIALOG外也能改变?
但是改变不了,程序如下:
void CBlueChatDlg::OnDataReceived (void *p_data, UINT16 len)
{
_beginthread(ThreadDll,0,NULL);
}
void ThreadDll(PVOID pvoid)
{
LoadCustom();
}
void LoadCustom()
{
HCURSOR hcursor=LoadCursor(hInst,MAKEINTRESOURCE(IDC_CROSS));
SetCursor(hcursor);
}