add: float wmin,wmax,hmin,hmax;  GetSizeLimits(&wmin,&wmax,&hmin,&hmax); wmin=510; hmin=100; SetSizeLimits(wmin,wmax,hmin,hmax);
context: CDButtonWindow::CDButtonWindow(void) : BWindow(BRect (100, 100, 610, 400), "CD Player", B_TITLED_WINDOW, 0){}