I got an Idea to change the cursor to a resource cursor when the dialogue box is open or when the mouse is over it...Either one would be much apriciated...Code
I got an Idea to change the cursor to a resource cursor when the dialogue box is open or when the mouse is over it...Either one would be much apriciated...Code
For MS Dev Studio WIN32 API
int ChangeMouseCursor(HWND hWnd,int Cursor)
{
HCURSOR hCursor;
if(Cursor==ZOOM)
{
hCursor=LoadCursor(NULL,(IDC_SIZEALL));
SetClassLong(hWnd,GCL_HCURSOR,(long)hCursor);
SetCursor(hCursor);
return ZOOM;//#defined value is returned
}
else if(Cursor==CROSS)
IDC_SIZEALL is a standard cursor in MS dev Studio. Look up the help on LoadCursor
That code will work in any compiler, not must Visual C++.
// Gliptic
THANK YOU MUCH!