用这个可以获取显示器的属性,有大小的:
int height,width,monitor;
GetMonitorFromPanel (panel, &monitor);//获得显示器ID
GetMonitorAttribute (monitor, ATTR_HEIGHT, &height);//得到高度
GetMonitorAttribute (monitor, ATTR_WIDTH, &width);//得到宽度
SetPanelSize (panel, height,width);//设置窗口高宽度
SetPanelPos (panel, 0, 0);//设置窗口位置