I am looking into it but it is not working... Do you have another suggestion? Thanks, Rno
Rno35
Posts
-
Updating toolbar buttons or menu -
Updating toolbar buttons or menuHi, Here it goes: the user of my program click a button of a toolbar. Then a function is executed corresponding to this button. I am using a document/view architecture with VC++ 6 and I am able to change the state of the button (i.e. grayed, checked…) only once the function is finished. I would like to be able to update the state of the toolbar button of menu while executing the function:
void CMyProjectView::OnButtonDown() { // initialize variables // change the state of toolbar buttons // Do code here // restore the starting state of toolbar buttons }
Thanks, Rno -
How do I stop a do/while loop using a toolbarHi, My program needs to stop a do/while loop when the user decides it. I first use a progress dialog bar which works great but it is not convinient. I would like to stop a do/while loop using a button of my toolbar. How can I tell the program to spend sometime checking on the toolbars and menu while it is running within the loop? Thanks, :confused:RNO