Bonjour a tous,

voila quand je passe sur un handle je souhaiterai changer le cursor donc je le charge avec :
LoadCursor(0, IDC_SIZENWSE);

et je le set quand je passe sur mon bouton avec la fonction suivante (dans WM_SETCURSOR) :
if ((HWND)wParam == m_HWND["resize"])
{
SetCursor(m_cursor["resize"])
}

et le cursor apparait mais disparait instantanément alors que je suis toujours sur mon handle (button).

voila mon style principal :

wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_INTERFACE2));
wcex.hCursor = LoadCursor(NULL, IDC_ARROW); // je peux mettre zero ca change rien au comportement.
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = MAKEINTRESOURCE(IDC_INTERFACE2);
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));

et voila comment je creer mon boutton
m_HWND["resize"] = CreateWindow("BUTTON", "resize", WS_CHILD | WS_VISIBLE | BS_OWNERDRAW,
W_WIDTH - WBUT_RESIZE - BORDER, W_HEIGHT - HBUT_RESIZE, WBUT_RESIZE, HBUT_RESIZE,
hWnd, (HMENU)IDB_RESIZE, hInst, NULL);



Merci d'avance