Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltiffio.h Pin
Jerome Conus30-Jul-03 3:35
Jerome Conus30-Jul-03 3:35 
GeneralRe: tiffio.h Pin
Anonymous30-Jul-03 3:57
Anonymous30-Jul-03 3:57 
GeneralRe: tiffio.h Pin
keegan30-Jul-03 4:24
keegan30-Jul-03 4:24 
GeneralMaking a password dialog. Pin
keegan30-Jul-03 3:10
keegan30-Jul-03 3:10 
GeneralRe: Making a password dialog. Pin
Chris Meech30-Jul-03 3:13
Chris Meech30-Jul-03 3:13 
GeneralRe: Making a password dialog. Pin
keegan30-Jul-03 3:32
keegan30-Jul-03 3:32 
GeneralRe: Making a password dialog. Pin
Member 42425930-Jul-03 3:22
Member 42425930-Jul-03 3:22 
GeneralProblem with 'GetToolBarCtrl().EnableButton' Pin
LittleYellowBird30-Jul-03 3:05
LittleYellowBird30-Jul-03 3:05 
Hi,

I am trying to 'enable/disable' and 'check/uncheck' a button on the Toolbar.

I send a message from the view class to indicate that the button must change and in CMainFrame I try to change it. These are the two lines of code.

m_wndToolBar.GetToolBarCtrl().PressButton(ID_BUTTON_OVERLAY_TRACES,bCheck);<br />
m_wndToolBar.GetToolBarCtrl().EnableButton(ID_BUTTON_OVERLAY_TRACES,bEnable);


The PressButton function works (ie the button goes in / out) but the EnableButton doesn't do anything!

I can see the varaible bEnable change and I have tried it with fixed values TRUE and FALSE, but nothing happens. EnableButton returns 1, so it thinks it has been successfull. Any ideas?

Cheers,

Ali
GeneralRe: Problem with 'GetToolBarCtrl().EnableButton' Pin
Mike Dimmick30-Jul-03 3:47
Mike Dimmick30-Jul-03 3:47 
GeneralRe: Problem with 'GetToolBarCtrl().EnableButton' Pin
LittleYellowBird30-Jul-03 5:25
LittleYellowBird30-Jul-03 5:25 
GeneralHTML Help !!!!!!!!!!!!!! Pin
Member 42425930-Jul-03 2:56
Member 42425930-Jul-03 2:56 
GeneralRe: HTML Help !!!!!!!!!!!!!! Pin
melwyn30-Jul-03 4:23
melwyn30-Jul-03 4:23 
QuestionCan we write &quot;for DOS&quot; program using VC++ 6? Pin
Abin30-Jul-03 2:53
Abin30-Jul-03 2:53 
AnswerRe: Can we write &quot;for DOS&quot; program using VC++ 6? Pin
keegan30-Jul-03 3:07
keegan30-Jul-03 3:07 
AnswerRe: Can we write &quot;for DOS&quot; program using VC++ 6? Pin
Mike Dimmick30-Jul-03 3:54
Mike Dimmick30-Jul-03 3:54 
AnswerRe: Can we write &quot;for DOS&quot; program using VC++ 6? Pin
John M. Drescher30-Jul-03 4:05
John M. Drescher30-Jul-03 4:05 
GeneralRe: Can we write &quot;for DOS&quot; program using VC++ 6? Pin
Ryan Binns30-Jul-03 5:20
Ryan Binns30-Jul-03 5:20 
GeneralRe: Can we write "for DOS" program using VC++ 6? Pin
John M. Drescher30-Jul-03 5:29
John M. Drescher30-Jul-03 5:29 
GeneralRe: Can we write &quot;for DOS&quot; program using VC++ 6? Pin
Ryan Binns30-Jul-03 5:33
Ryan Binns30-Jul-03 5:33 
GeneralRe: Warning C4100... Pin
Cedric Moonen29-Jul-03 22:53
Cedric Moonen29-Jul-03 22:53 
GeneralRe: Warning C4100... Pin
KingsGambit30-Jul-03 1:07
KingsGambit30-Jul-03 1:07 
GeneralRe: Warning C4100... Pin
wb30-Jul-03 1:29
wb30-Jul-03 1:29 
GeneralRe: Warning C4100... Pin
Nitron30-Jul-03 3:08
Nitron30-Jul-03 3:08 
GeneralRe: Warning C4100... Pin
LittleYellowBird30-Jul-03 3:20
LittleYellowBird30-Jul-03 3:20 
GeneralRe: Warning C4100... Pin
Nitron30-Jul-03 3:23
Nitron30-Jul-03 3:23 

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.