Click here to Skip to main content
15,900,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwincrypt.h Pin
Tili9-Jul-03 6:24
Tili9-Jul-03 6:24 
GeneralRe: wincrypt.h Pin
Tili9-Jul-03 6:36
Tili9-Jul-03 6:36 
Generalinserting text into a rich edit view Pin
crapfacejoe9-Jul-03 6:12
crapfacejoe9-Jul-03 6:12 
GeneralRe: inserting text into a rich edit view Pin
Ryan Binns9-Jul-03 15:27
Ryan Binns9-Jul-03 15:27 
GeneralBit operation Pin
Anonymous9-Jul-03 6:08
Anonymous9-Jul-03 6:08 
GeneralRe: Bit operation Pin
John M. Drescher9-Jul-03 6:18
John M. Drescher9-Jul-03 6:18 
GeneralRe: Bit operation Pin
David Chamberlain9-Jul-03 7:07
David Chamberlain9-Jul-03 7:07 
GeneralUpdating toolbar buttons or menu Pin
Rno359-Jul-03 6:07
Rno359-Jul-03 6:07 
Hi,

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:

<br />
void CMyProjectView::OnButtonDown() <br />
{<br />
	// initialize variables<br />
<br />
	// change the state of toolbar buttons<br />
<br />
		// Do code here<br />
<br />
	// restore the starting state of toolbar buttons<br />
}<br />

Thanks,

Rno
GeneralRe: Updating toolbar buttons or menu Pin
John R. Shaw9-Jul-03 8:29
John R. Shaw9-Jul-03 8:29 
GeneralRe: Updating toolbar buttons or menu Pin
Rno359-Jul-03 10:40
Rno359-Jul-03 10:40 
GeneralRe: Updating toolbar buttons or menu Pin
John R. Shaw9-Jul-03 12:39
John R. Shaw9-Jul-03 12:39 
QuestionBraces required? Pin
Jamie Hale9-Jul-03 5:27
Jamie Hale9-Jul-03 5:27 
AnswerRe: Braces required? Pin
valikac9-Jul-03 5:38
valikac9-Jul-03 5:38 
GeneralRe: Braces required? Pin
Rage9-Jul-03 5:43
professionalRage9-Jul-03 5:43 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 5:48
Jamie Hale9-Jul-03 5:48 
GeneralRe: Braces required? Pin
David Crow9-Jul-03 5:51
David Crow9-Jul-03 5:51 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 5:52
Jamie Hale9-Jul-03 5:52 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 5:55
Jamie Hale9-Jul-03 5:55 
GeneralRe: Braces required? Pin
Keith D9-Jul-03 6:03
Keith D9-Jul-03 6:03 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 6:18
Jamie Hale9-Jul-03 6:18 
GeneralRe: Braces required? Pin
John M. Drescher9-Jul-03 6:11
John M. Drescher9-Jul-03 6:11 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 6:24
Jamie Hale9-Jul-03 6:24 
GeneralRe: Braces required? Pin
Jim A. Johnson9-Jul-03 7:15
Jim A. Johnson9-Jul-03 7:15 
GeneralRe: Braces required? Pin
Atlantys9-Jul-03 13:24
Atlantys9-Jul-03 13:24 
AnswerRe: Braces required? Pin
John R. Shaw9-Jul-03 8:38
John R. Shaw9-Jul-03 8:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.