Apr 22, 2002 #1 elziko Programmer Nov 7, 2000 486 GB Assuming I have the handle to a particular window, how would I use this to get the handle to the StatusBar inside that window? Cheers, elziko
Assuming I have the handle to a particular window, how would I use this to get the handle to the StatusBar inside that window? Cheers, elziko
Apr 22, 2002 #2 kavimy Programmer Mar 4, 2002 5 IN Statusbar1.hwnd will return the handle to the statusbar control Upvote 0 Downvote
Apr 22, 2002 Thread starter #3 elziko Programmer Nov 7, 2000 486 GB Thanks, however you are assuming we are talking about a StatusBar called "StatusBar1" in a VB project. However I need to get control over a status bar in a compiled program; Outlook 98 in this case. The Outlook Object model does not expose the application's status bar and I want to write text to it. I can use the FindWindow API to get a handle to the Outlook window. I can use the SetWindowText API with the handle of the status bar to write text to the bar. What I need is someway of getting a handle to the StatusBar by refering to the handle to its window. Any ideas? elziko Upvote 0 Downvote
Thanks, however you are assuming we are talking about a StatusBar called "StatusBar1" in a VB project. However I need to get control over a status bar in a compiled program; Outlook 98 in this case. The Outlook Object model does not expose the application's status bar and I want to write text to it. I can use the FindWindow API to get a handle to the Outlook window. I can use the SetWindowText API with the handle of the status bar to write text to the bar. What I need is someway of getting a handle to the StatusBar by refering to the handle to its window. Any ideas? elziko