音乐为我而生's Archiver

零度天泪 发表于 2008-2-16 11:55

希望能完善一下吸附到屏幕边缘

在吸附到屏幕下方的时候吸附到任务栏上为好,不要吸附到任务栏下面去

catplus 发表于 2008-2-16 13:08

尽力而为,因为每个机器的任务栏可能不一样高……

零度天泪 发表于 2008-2-16 14:31

[quote]原帖由 [i]catplus[/i] 于 2008-2-16 13:08 发表 [url=http://forum.podez.com/redirect.php?goto=findpost&pid=3147&ptid=737][img]http://forum.podez.com/images/common/back.gif[/img][/url]
尽力而为,因为每个机器的任务栏可能不一样高…… [/quote]
这个可以用户自己调节 只要吸附到任务栏就行
如任务栏窄自己把播放器往下拽一下就行
如果任务栏高的话 把播放器自动顶起来
谢谢

[[i] 本帖最后由 零度天泪 于 2008-2-16 14:32 编辑 [/i]]

baijd 发表于 2008-2-19 00:15

不错的功能呀,很期待

catplus 发表于 2008-2-19 00:20

尽力而为

FreHalame 发表于 2008-2-20 14:46

难道不是锁定任务栏的位置的么?
还是说任务栏的高度无法返回?

YunZen 发表于 2008-2-24 14:55

=3= 我见过个去得 系统任务栏矩形的API
可是不知道之不支持bblean的 m(--m)

catplus 发表于 2008-2-24 16:04

具体是什么样的API呢?

YunZen 发表于 2008-2-24 18:43

方法一:  
          TRect   rt;  
          SystemParametersInfo(SPI_GETWORKAREA,   0,   &rt,   0);  
          //任务栏在下面的高度  
          int   y   =   ::GetSystemMetrics(SM_CYSCREEN)-rt.Height();  
          //上面  
          y   =   rt.top;  
          //左  
          y   =   rt.left;  
          //右  
          y   =   ::GetSystemMetrics(SM_CXSCREEN)-rt.Width();  
  方法二:  
          HWND   hwnd   =   ::FindWindow("Shell_TrayWnd","");  
          RECT   rect;  
          ::GetWindowRect(hwnd,   &rect);  
   
          int   nHeight   =   rect.bottom   -   rect.top;

参考
http://topic.csdn.net/t/20021116/01/1181247.html

[[i] 本帖最后由 YunZen 于 2008-2-24 18:58 编辑 [/i]]

catplus 发表于 2008-2-24 19:18

非常感谢 :handshake

baijd 发表于 2008-2-25 02:26

[quote]原帖由 [i]catplus[/i] 于 2008-2-24 19:18 发表 [url=http://forum.podez.com/redirect.php?goto=findpost&pid=3317&ptid=737][img]http://forum.podez.com/images/common/back.gif[/img][/url]
非常感谢 :handshake [/quote]
解决了?

Leonid 发表于 2008-2-25 02:54

哈,这论坛真是藏龙卧虎啊

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.