Gregor Isack
Gregor Isack

Reputation: 1121

How to get the button state in WinAPI?

I'm trying to get the state of a button (enabled/disabled) using WinAPI in C#. I managed to get that specific button's hwnd using FindWindowEx, how could I proceeds from here? Sorry there's no snippet of code as I don't know where to begin. Thank you so much!

Upvotes: 1

Views: 377

Answers (1)

David Heffernan
David Heffernan

Reputation: 612794

Call the IsWindowEnabled function.

Upvotes: 2

Related Questions