PHP Code:
bool CGButton::Size(int widthint height)
    {
        if (
CGButton::Handle == NULL)
        {
            return 
false;
        }
        else
        {
            
SendMessage(CGButton::HandleWM_SIZE, (WPARAM)SIZE_RESTORED, (LPARAM)MAKELPARAM(4545));
            
CGButton::width width;
            
CGButton::height height;
            return 
true;
        }

Above code doesn't resize the button even when the handle isn't NULL.