Click here to Skip to main content
16,017,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSupported file types in DirectShow Pin
mssg1-Jun-05 2:37
mssg1-Jun-05 2:37 
GeneralRe: Supported file types in DirectShow Pin
Momotte1-Jun-05 2:41
Momotte1-Jun-05 2:41 
QuestionWhat happened to my CString? Pin
IlanTal1-Jun-05 1:50
IlanTal1-Jun-05 1:50 
GeneralMicrosoft Visual C++ Code Library: "Buffer Overrun" (link.exe) Pin
MahatmaG1-Jun-05 1:50
MahatmaG1-Jun-05 1:50 
GeneralHiding a CPropertyPage at runtime Pin
tabor251-Jun-05 1:45
tabor251-Jun-05 1:45 
GeneralRe: Hiding a CPropertyPage at runtime Pin
David Crow1-Jun-05 2:20
David Crow1-Jun-05 2:20 
GeneralRe: Hiding a CPropertyPage at runtime Pin
tabor251-Jun-05 8:08
tabor251-Jun-05 8:08 
GeneralRe: Hiding a CPropertyPage at runtime Pin
laiju3-Jun-05 11:22
laiju3-Jun-05 11:22 
sorry couldnt get the article Q151662 .Searched in msdn site and google.too.

Thanx for the info.
Meanwhile I tried a lot to disable the save tool button on the toolbar. I tried SetButtonInfo in the foll. code but in vain.

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;

if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME1))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}
// TODO: Delete these three lines if you don't want the toolbar to be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_TOP);
EnableDocking(CBRS_ALIGN_ANY);

DockControlBar(&m_wndToolBar);

TBBUTTONINFO buttonInfo;
UINT buttonID;
buttonID = ID2_FILE_SAVE;
m_wndToolBar.GetToolBarCtrl().GetButtonInfo(ID2_FILE_SAVE, &buttonInfo);
buttonInfo.fsState = TBSTATE_INDETERMINATE ;
m_wndToolBar.GetToolBarCtrl().SetButtonInfo(ID2_FILE_SAVE, &buttonInfo);

return 1;
}

laiju
GeneralRe: Hiding a CPropertyPage at runtime Pin
David Crow3-Jun-05 16:37
David Crow3-Jun-05 16:37 
GeneralRe: Hiding a CPropertyPage at runtime Pin
PJ Arends4-Jun-05 9:49
professionalPJ Arends4-Jun-05 9:49 
GeneralRe: Hiding a CPropertyPage at runtime Pin
laiju4-Jun-05 9:55
laiju4-Jun-05 9:55 
GeneralCWnd refresh Pin
jamesrgoodwin1-Jun-05 0:41
jamesrgoodwin1-Jun-05 0:41 
GeneralRe: CWnd refresh Pin
ThatsAlok1-Jun-05 0:53
ThatsAlok1-Jun-05 0:53 
GeneralRe: CWnd refresh Pin
jamesrgoodwin1-Jun-05 1:04
jamesrgoodwin1-Jun-05 1:04 
Generalpush button Pin
ask_you31-May-05 23:48
ask_you31-May-05 23:48 
GeneralRe: push button Pin
Nilesh K.31-May-05 23:56
Nilesh K.31-May-05 23:56 
GeneralRe: push button Pin
ask_you1-Jun-05 0:12
ask_you1-Jun-05 0:12 
GeneralRe: push button Pin
Nilesh K.1-Jun-05 0:20
Nilesh K.1-Jun-05 0:20 
GeneralRe: push button Pin
ask_you1-Jun-05 0:35
ask_you1-Jun-05 0:35 
GeneralRe: push button Pin
Nilesh K.1-Jun-05 16:20
Nilesh K.1-Jun-05 16:20 
QuestionHow CreateFile can fail??? Pin
Dimitris Vikeloudas31-May-05 23:16
Dimitris Vikeloudas31-May-05 23:16 
AnswerRe: How CreateFile can fail??? Pin
Cedric Moonen31-May-05 23:36
Cedric Moonen31-May-05 23:36 
GeneralRe: How CreateFile can fail??? Pin
Nilesh K.31-May-05 23:51
Nilesh K.31-May-05 23:51 
GeneralThanks but not what I am actually looking for... Pin
Dimitris Vikeloudas1-Jun-05 0:36
Dimitris Vikeloudas1-Jun-05 0:36 
GeneralRe: Thanks but not what I am actually looking for... Pin
geo_m1-Jun-05 1:36
geo_m1-Jun-05 1:36 

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.