X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1a6fc11e208d85b5dae82a8adc0dc7535cd5958..b3031762e87338b20e682af9278731aec1d123c6:/src/msw/tbar95.cpp diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index f3a96868f7..12b4f41ba8 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -432,6 +432,11 @@ void wxToolBar95::ToggleTool(int toolIndex, bool toggle) } } +bool wxToolBar95::GetToolState(int toolIndex) const +{ + return (::SendMessage((HWND) GetHWND(), TB_ISBUTTONCHECKED, (WPARAM)toolIndex, (LPARAM)0) != 0); +} + void wxToolBar95::ClearTools(void) { // TODO: Don't know how to reset the toolbar bitmap, as yet.