Above code doesn't resize the button even when the handle isn't NULL.PHP Code:bool CGButton::Size(int width, int height)
{
if (CGButton::Handle == NULL)
{
return false;
}
else
{
SendMessage(CGButton::Handle, WM_SIZE, (WPARAM)SIZE_RESTORED, (LPARAM)MAKELPARAM(45, 45));
CGButton::width = width;
CGButton::height = height;
return true;
}
}




Reply With Quote