|
-
Apr 5th, 2008, 03:27 AM
#1
Thread Starter
Hyperactive Member
windows api
Declare Function ReleaseCapture Lib "user32" () As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
When i declare this windows api to enable borderless form to be dragged, do i need to add in some dll ?
Another question is for the borderless form, once i click somewhere outside of the form, the app doesnt seem to be minimized to the taskbar, does this need windows api as well?
-
Apr 5th, 2008, 03:53 AM
#2
Re: windows api
 Originally Posted by wence
When i declare this windows api to enable borderless form to be dragged, do i need to add in some dll ?
Assuming you are referring to an installation and setup package, the answer is no.
-
Apr 5th, 2008, 04:47 AM
#3
Re: windows api
 Originally Posted by wence
Another question is for the borderless form, once i click somewhere outside of the form, the app doesnt seem to be minimized to the taskbar, does this need windows api as well?
I've never used a program where if I clicked outside of its window, it gets minimized…
-
Apr 5th, 2008, 03:36 PM
#4
Re: windows api
If you notice the library that is referenced in the API declaration you can see its "user32.dll" which is a Windows core system file used to required features of Windows.
If you look it up you can get the version of Windows that it was introduced so you know what versions will be supported without the need/worry of it breaking due to being unsupported or present.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 5th, 2008, 03:37 PM
#5
Re: windows api
 Originally Posted by DigiRev
I've never used a program where if I clicked outside of its window, it gets minimized… 
Umm, MSN Messenger, Outlook, plenty of others. Most give the option of minimizing to the systray instead of the taskbar.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 6th, 2008, 12:43 AM
#6
Thread Starter
Hyperactive Member
Re: windows api
how to have it mininize to systemtray?
-
Apr 6th, 2008, 12:59 AM
#7
Thread Starter
Hyperactive Member
Re: windows api
i set show in taskbar to true but it doesnt show in the task bar...
-
Apr 6th, 2008, 12:59 AM
#8
Re: windows api
 Originally Posted by RobDog888
Umm, MSN Messenger, Outlook, plenty of others. Most give the option of minimizing to the systray instead of the taskbar.
Umm, if I click outside of any window it just gets set to the foreground...
Another question is for the borderless form, once i click somewhere outside of the form, the app doesnt seem to be minimized to the taskbar
__________________________________________________________
 Originally Posted by wence
how to have it mininize to systemtray?
Start here.
http://www.pscode.com/vb/scripts/Bro...1=Quick+Search
I'm sure there's code for this in the CodeBank also...
-
Apr 6th, 2008, 01:31 AM
#9
Re: windows api
 Originally Posted by DigiRev
Oh my bad, outside the form. But I do have one program that works that way. Its a Flash flv player.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 6th, 2008, 01:41 AM
#10
Re: windows api
 Originally Posted by wence
how to have it mininize to systemtray?
http://www.vbforums.com/search.php?q...pe=0&exclude=&
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
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
|