Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Can't enable toolbar button

michael_green
Beginner
343 Views
Hi,
I have a toolbar, one of whose buttons is initially disabled with:
AnaTBbutton(20)%fsState = TBSTATE_INDETERMINATE
Later in the program I have tried to enable it with:
AnaTBbutton(20)%fsState = TBSTATE_ENABLED
but this makes no difference to it. I have tried following the last statement with
iret = InvalidateRect(ghWndMain,rect,.false.)
but still no difference.
At present the only way I can get this button to become active is to destroy the toolbar window and recreate it, which seems a bit heavy-handed. Is there a better way?
With many thanks in advance
Mike
0 Kudos
0 Replies
Reply