您的位置:控制工程论坛网论坛 » 自动化软件 » 使程序界面全屏显示

therun

therun   |   当前状态:离线

总积分:2246  2026年可用积分:0

注册时间: 2007-10-25

最后登录时间: 2008-08-06

空间 发短消息加为好友

使程序界面全屏显示

therun  发表于 2007/12/5 13:40:01      701 查看 0 回复  [上一主题]  [下一主题]

手机阅读

用这个可以获取显示器的属性,有大小的:
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);//设置窗口位置

1楼 0 0 回复