Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handle to status bar.

Status
Not open for further replies.

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
 
Statusbar1.hwnd will return the handle to the statusbar control
 
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top