Jason Watson
May 5th, 1999, 02:24 AM
I have created a few mouse cursors. Now how do I change the cursor to one of these cursor in a dialog box. I want to change the cursor depending on what the user is doing..
Thanks
Centurion Software Australia
Karl
May 5th, 1999, 03:39 AM
Have you tried to implement a response to WM_SETCURSOR message ? For example
BOOL CMyDialog::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if(Condition){
::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_CROSS));
}else{
::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
}
}
HTH.
K.
Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.