API Call to determine value of ComboBox?

J

Joe HM

Hello -

I just figured out how to determine the window title and classes of
running applications via the EnumWindows() and GetWindowTitle() API
calls (thanks to some very knowledgeable people in this group).

My next question is now whether there is a call so I can determine the
value of a ComboBox? I can get the class and its name via the
GetClassName() call but is there any way to get the value?

Thanks,
Joe
 
M

Mattias Sjögren

My next question is now whether there is a call so I can determine the
value of a ComboBox? I can get the class and its name via the
GetClassName() call but is there any way to get the value?

SendMessage(WM_GETTEXT) should do it.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top