Re: Pin a window to the desktop
Posted: Fri Dec 04, 2009 11:55 am
This work well on XP but on Vista (and may be 7) it's don't work well.
Any solution ? or tell me if it's work well. Thanks
Any solution ? or tell me if it's work well. Thanks
Code: Select all
If OpenWindow(0, 0, 0, 300, 300, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget) = 0
End
EndIf
SetParent_(WindowID(0), GetShellWindow_())
ButtonGadget(0, 0, 0, 100, 100, "Button")
Repeat
Event = WaitWindowEvent()
Case #PB_Event_Gadget
Select EventGadget() ; Gadgets
Case 0
Debug "OK"
EndSelect
EndSelect
Until Event = #PB_Event_CloseWindow