|
-
Apr 7th, 2005, 04:51 PM
#1
Thread Starter
Frenzied Member
Change Other Apps titlebar... how ?
IS it possible to change another applications titlebar ? say for example when you open MSN messenger it opens with "MSN Messenger" as the titlebar, how can i change this with my Application ?
I'm thinking get the window handle then use the SetWindowText API ?
Any help and code will be appreciated, thanks
-
Apr 7th, 2005, 04:57 PM
#2
Re: Change Other Apps titlebar... how ?
SetWindowText will work and so will SendMessage(lHwnd, WM_SETTEXT, ByVal "Test", 4) or something like that.
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 7th, 2005, 05:04 PM
#3
Re: Change Other Apps titlebar... how ?
VB Code:
Option Explicit
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessageString Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
ByRef lParam As Any) As Long
Private Const WM_SETTEXT As Long = &HC
Private Sub Command1_Click()
Dim lHwnd As Long
lHwnd = FindWindow("MSNMSBLClass", "MSN Messenger")
SendMessageString lHwnd, WM_SETTEXT, ByVal 12, ByVal "My Messneger"
End Sub
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 7th, 2005, 05:04 PM
#4
Thread Starter
Frenzied Member
Re: Change Other Apps titlebar... how ?
Ok, so how would i go aboput getting the handle on the Window to send the message too ?
(i don;t have Spy+)
-
Apr 7th, 2005, 05:06 PM
#5
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
|