i'm trying call the WM_DRAWITEM message from WM_KEYUP message without sucess :(
bool KeyPressed(int a)
{
if(GetAsyncKeyState(a))
{
return true;
}
else
{
return false;
}
}
//in WM_KEYUP message
if(KeyPressed(VK_MENU)==true) SendMessage(hButton, WM_DRAWITEM,NULL,NULL);
what i'm doing wrong with SendMessage?