|
-
Jul 11th, 2000, 05:05 AM
#1
Thread Starter
Addicted Member
if you drag icq to the sides of your screen it will snap to the side and make like the task bar so window borders touch it when the windows are maximized.. how does it do this?
-
Jul 11th, 2000, 08:13 AM
#2
Frenzied Member
You've Chosen a Hard one Here. You need to use the SHAppBarMessage API. There's a lot of stuff to do, I'll make you a class module to get it all working, just give me a few hours.
-
Jul 11th, 2000, 08:57 AM
#3
Lively Member
Try this class, called TAppbar. I've used it myself (though just in one app), and it works fine. Only problem I've found is that my app sometimes crash when running Pagemaker, but that might be some other problem.
http://www.geocities.com/SiliconVall...6/appbar14.zip
//Anders
-
Jul 11th, 2000, 10:15 AM
#4
Frenzied Member
I'm Doing Mine anyway, and It'll be much better.
-
Jul 11th, 2000, 10:56 AM
#5
Thread Starter
Addicted Member
thanks, anders, i'll check it out while sam works on his
-
Jul 11th, 2000, 10:49 PM
#6
New Member
i am also very interested in this code. I've used always on top and always on bottom however the look just isn't right... I've been scowering the web for how to resize the desktop similar to icq...
STEngineer
visit stengineer.com for all your Star Trek and LCARS Programming needs
-
Jul 11th, 2000, 11:08 PM
#7
Frenzied Member
Sorry Guys, It's Taking a bit Longer that Expected, I'll Get it Done Though.
-
Jul 12th, 2000, 04:13 PM
#8
New Member
ok, i've found some code which seems to work nicely for resizing the "workarea".....
'example (you could put this anywhere, i'm using it on form load)
Call ChangeWorkArea(0, Screen.Height / Screen.TwipsPerPixelY, 0, Screen.Width / Screen.TwipsPerPixelX)
'the rest here in a module
Public Const SPI_SetWorkArea = 47
Public Const SPI_GetWorkArea = 48
Public Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long
Public Type tCoord2D
left As Long
top As Long
right As Long
bottom As Long
End Type
Public Function ChangeWorkArea(top As Integer, bottom As Integer, left As Integer, right As Integer)
Dim Rect As tCoord2D
Rect.top = top
Rect.left = left
Rect.right = right
Rect.bottom = bottom
SystemParametersInfo SPI_SetWorkArea, 0, Rect, 0
End Function
STEngineer
visit stengineer.com for all your Star Trek and LCARS Programming needs
-
Jul 13th, 2000, 12:50 PM
#9
I'd really like to see this example as well- sounds very interesting. Anyway, keep it up sam
-
Aug 6th, 2000, 10:30 AM
#10
Thread Starter
Addicted Member
big bump...
how do i find out the 'work area' when i need it?
the code up there tells me how to change it but not how to retriev it.. and the zip link is dead
Generic vb 5
Private Sub WakeMyAssUp(  As Boolean)
If  Then  :  = False
End Sub
-
Aug 6th, 2000, 10:45 AM
#11
Lively Member
To download the zip use your right mouse button and click save file as... I did it that way and it worked!
-
Aug 6th, 2000, 10:48 AM
#12
Frenzied Member
Err Sorry Guys
The Desktop resizing kinda got burried under a huge in pile and then forgotten about, unfortunatley the in pile is still fairly sizable so I don't have time to finish it. If you want to know roughly what I was doing, I was making a control that was basicly a nice easy interface to all the suff you can do with the SHAppBarMessage API here is what microsoft say about that API
I'll try to get it finished if I have time
-
Aug 6th, 2000, 11:35 AM
#13
Thread Starter
Addicted Member
Generic vb 5
Private Sub WakeMyAssUp(  As Boolean)
If  Then  :  = False
End Sub
-
Aug 6th, 2000, 02:41 PM
#14
Thread Starter
Addicted Member
hey sam... can i call you sam? ok, Mr. Finch, can you just shoot up a quick ap that'll show me the current coords of the work area?
Generic vb 5
Private Sub WakeMyAssUp(  As Boolean)
If  Then  :  = False
End Sub
-
Aug 7th, 2000, 08:31 AM
#15
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|