see my windows procedure:
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
bool blnMouseEnter=false;
switch(msg)
{
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_KEYUP:
if (wParam ==VK_ESCAPE)
DestroyWindow(hwnd);
else
{
char strDataToSend[32];
sprintf(strDataToSend, "%c", wParam);
MessageBox(NULL,strDataToSend, "keyselected",MB_OK);
}
break;
case WM_MOUSEMOVE:
SetWindowText(hwnd,"hi");
break;
case WM_MOUSELEAVE://is ignored :(
SetWindowText(hwnd,"bye");
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hwnd, msg, wParam, lParam);
}
return 0;
}
i'm trying testing the Mouse Enter and Mouse Leave, but the mouse leave isn't activated and the Mouse Move isn't activated with window border :(
what isn't right?