VC++ win32 API programming :how to change mouse cursor   
hi there i m trying to change the mouse cursor and write the code below but doesn't work.
It's seems IDC_CURSOR_WHITE should be put into a rc file.i tried n faild .at last  i came here seeking  your guide .Help!
 thanks.

 hWhiteCursor = ::LoadCursor(hInstance, (LPCTSTR)IDC_CURSOR_WHITE);

 hBlackCursor = ::LoadCursor(hInstance, (LPCTSTR)IDC_CURSOR_BLACK);



case WM_LBUTTONDOWN:
  if ((type = ++type % 2) == 0)
   SetCursor(hWhiteCursor);
  else 
   SetCursor(hBlackCursor);
  break;
 case WM_SETCURSOR
  return 0;




VC++ win32 API programming :how to change mouse cursor   
===

hi there i m trying to change the mouse cursor and write the code below but doesn't work.
It's seems IDC_CURSOR_WHITE should be put into a rc file.i tried n faild .at last  i came here seeking  your guide .Help!
 thanks.

 hWhiteCursor = ::LoadCursor(hInstance, (LPCTSTR)IDC_CURSOR_WHITE);

 hBlackCursor = ::LoadCursor(hInstance, (LPCTSTR)IDC_CURSOR_BLACK);



case WM_LBUTTONDOWN:
  if ((type = ++type % 2) == 0)
   SetCursor(hWhiteCursor);
  else 
   SetCursor(hBlackCursor);
  break;
 case WM_SETCURSOR
  return 0;



