Click here to Skip to main content
15,912,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Plotting the wav file Pin
jhwurmbach11-Sep-07 4:58
jhwurmbach11-Sep-07 4:58 
AnswerRe: Plotting the wav file Pin
carrivick11-Sep-07 10:07
carrivick11-Sep-07 10:07 
GeneralRe: Plotting the wav file Pin
Maynka11-Sep-07 18:58
Maynka11-Sep-07 18:58 
QuestionModify tooltip - Mouse over file (.xml) Pin
AeJai11-Sep-07 3:50
AeJai11-Sep-07 3:50 
AnswerRe: Modify tooltip - Mouse over file (.xml) Pin
carrivick11-Sep-07 10:44
carrivick11-Sep-07 10:44 
GeneralRe: Modify tooltip - Mouse over file (.xml) Pin
AeJai11-Sep-07 12:32
AeJai11-Sep-07 12:32 
GeneralRe: Modify tooltip - Mouse over file (.xml) Pin
carrivick12-Sep-07 0:48
carrivick12-Sep-07 0:48 
QuestionMFC: How to disable toolbar buttons Pin
progDes11-Sep-07 3:15
progDes11-Sep-07 3:15 
First I tried to enable and disable menu item's in main frame window like this:

CMenu *m = GetMenu()->GetSubMenu(1);
m->EnableMenuItem(ID_SCHEME_SELMOVE, bEnabled);
m->EnableMenuItem(ID_SCHEME_HAND, bEnabled);
m->EnableMenuItem(ID_SCHEME_SCALEUP, bEnabled);
m->EnableMenuItem(ID_SCHEME_SCALEDOWN, bEnabled);

This code didn't work until I've add this in frame constructor.
CMainFrame::CMainFrame()
{
m_bAutoMenuEnable = FALSE; //disables auto menu enable
}

Now, I can't enable and disable toolbar buttons:

m_wndViewToolBar.GetToolBarCtrl().EnableButton(ID_SCHEME_SELMOVE, b);
m_wndViewToolBar.GetToolBarCtrl().EnableButton(ID_SCHEME_HAND, b);
m_wndViewToolBar.GetToolBarCtrl().EnableButton(ID_SCHEME_SCALEUP, b);
m_wndViewToolBar.GetToolBarCtrl().EnableButton(ID_SCHEME_SCALEDOWN, b);

I think there is should be a mechanism to disable automatic toolbar enable.
What is that mechanism?
AnswerRe: MFC: How to disable toolbar buttons Pin
bob1697211-Sep-07 6:52
bob1697211-Sep-07 6:52 
AnswerRe: MFC: How to disable toolbar buttons Pin
Mark Salsbery11-Sep-07 6:56
Mark Salsbery11-Sep-07 6:56 
AnswerRe: MFC: How to disable toolbar buttons Pin
progDes11-Sep-07 7:15
progDes11-Sep-07 7:15 
QuestionIVMRWindowlessControl:: RepaintVideo Pin
P e t e r11-Sep-07 2:49
P e t e r11-Sep-07 2:49 
AnswerRe: IVMRWindowlessControl:: RepaintVideo Pin
carrivick11-Sep-07 10:49
carrivick11-Sep-07 10:49 
QuestionCListCtrl problem Pin
josip cagalj11-Sep-07 2:19
josip cagalj11-Sep-07 2:19 
AnswerRe: CListCtrl problem Pin
Mark Salsbery11-Sep-07 7:03
Mark Salsbery11-Sep-07 7:03 
GeneralRe: CListCtrl problem [modified] Pin
josip cagalj11-Sep-07 21:39
josip cagalj11-Sep-07 21:39 
GeneralRe: CListCtrl problem Pin
Mark Salsbery12-Sep-07 6:28
Mark Salsbery12-Sep-07 6:28 
AnswerRe: CListCtrl problem Pin
Nelek11-Sep-07 23:05
protectorNelek11-Sep-07 23:05 
QuestionUnable to connect to Named Pipe Pin
nagadravid11-Sep-07 1:44
nagadravid11-Sep-07 1:44 
AnswerRe: Unable to connect to Named Pipe Pin
KarstenK11-Sep-07 1:58
mveKarstenK11-Sep-07 1:58 
GeneralRe: Unable to connect to Named Pipe Pin
nagadravid11-Sep-07 4:19
nagadravid11-Sep-07 4:19 
QuestionRe: Unable to connect to Named Pipe Pin
Mark Salsbery11-Sep-07 7:06
Mark Salsbery11-Sep-07 7:06 
AnswerRe: Unable to connect to Named Pipe Pin
nagadravid11-Sep-07 8:56
nagadravid11-Sep-07 8:56 
GeneralRe: Unable to connect to Named Pipe Pin
carrivick11-Sep-07 10:37
carrivick11-Sep-07 10:37 
GeneralRe: Unable to connect to Named Pipe Pin
nagadravid11-Sep-07 19:02
nagadravid11-Sep-07 19:02 

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.