Click here to Skip to main content
15,905,148 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: unc Pin
S Douglas4-Jun-05 23:09
professionalS Douglas4-Jun-05 23:09 
Generalsend mail without email account Pin
Member 19862964-Jun-05 22:16
Member 19862964-Jun-05 22:16 
GeneralRe: send mail without email account Pin
Carsten Zeumer5-Jun-05 0:07
Carsten Zeumer5-Jun-05 0:07 
GeneralRe: send mail without email account Pin
ThatsAlok5-Jun-05 21:13
ThatsAlok5-Jun-05 21:13 
Questionsendto and recvfrom keep grouping packets together?? Pin
KellyR4-Jun-05 21:13
KellyR4-Jun-05 21:13 
AnswerRe: sendto and recvfrom keep grouping packets together?? Pin
Andrew Walker4-Jun-05 22:06
Andrew Walker4-Jun-05 22:06 
GeneralRe: sendto and recvfrom keep grouping packets together?? Pin
KellyR5-Jun-05 5:21
KellyR5-Jun-05 5:21 
GeneralDisabling toolbutton Pin
laiju4-Jun-05 21:06
laiju4-Jun-05 21:06 
I want to disable the SAVE toolbutton on the toolbar.
For this I tried the foll in the MainFrame's OnCreate Event.

TBBUTTONINFO buttonInfo;
buttonInfo.cbSize = sizeof( TBBUTTONINFO );
buttonInfo.dwMask = TBIF_COMMAND || TBIF_STATE ;
buttonInfo.idCommand = ID2_FILE_SAVE;
buttonInfo.fsState = TBSTATE_INDETERMINATE ;
int xxx = m_wndToolBar.GetToolBarCtrl().SetButtonInfo(ID2_FILE_SAVE, &buttonInfo);
I wonder I initially got the SAVE toolbutton to grey out .But it wont happen anymore I dont understand why .Now its hidden but clicking it brings the Save Dialog box which means its still not disabled.

In another function I tried to enable it with the foll.code.
TBBUTTONINFO buttonInfo;
buttonInfo.cbSize = sizeof( TBBUTTONINFO );
buttonInfo.dwMask = TBIF_COMMAND || TBIF_STATE ;
buttonInfo.idCommand = ID2_FILE_SAVE;
buttonInfo.fsState = TBSTATE_ENABLED ;
int xxx = m_wndToolBar.GetToolBarCtrl().SetButtonInfo(ID2_FILE_SAVE, &buttonInfo);
But it wont enable .It wont become visible either.I dont understand.Please let me know the mistake.
Thank u .

laiju
GeneralRe: Disabling toolbutton Pin
PJ Arends4-Jun-05 21:35
professionalPJ Arends4-Jun-05 21:35 
GeneralRe: Disabling toolbutton Pin
laiju5-Jun-05 1:13
laiju5-Jun-05 1:13 
GeneralRe: Disabling toolbutton Pin
PJ Arends6-Jun-05 10:27
professionalPJ Arends6-Jun-05 10:27 
QuestionBooks for windows graphics programming??? Pin
VikramDelhi4-Jun-05 20:38
VikramDelhi4-Jun-05 20:38 
GeneralVC and DOS Pin
Usman Tasleem Akshaf4-Jun-05 17:57
Usman Tasleem Akshaf4-Jun-05 17:57 
GeneralRe: VC and DOS Pin
Ravi Bhavnani4-Jun-05 18:11
professionalRavi Bhavnani4-Jun-05 18:11 
Generalvisual c++ 2003 "Go To Reference" disabled Pin
Anonymous4-Jun-05 17:36
Anonymous4-Jun-05 17:36 
GeneralRe: visual c++ 2003 "Go To Reference" disabled Pin
Nilesh K.5-Jun-05 23:06
Nilesh K.5-Jun-05 23:06 
GeneralSerialization between 32 and 64 bits Pin
nemo4-Jun-05 9:05
nemo4-Jun-05 9:05 
GeneralAfxGetApp()->m_pMainWnd in a DLL? [Edit] Pin
Mitch F.4-Jun-05 6:58
Mitch F.4-Jun-05 6:58 
GeneralRe: AfxGetApp()->m_pMainWnd in a DLL? [Edit] Pin
PJ Arends4-Jun-05 9:52
professionalPJ Arends4-Jun-05 9:52 
GeneralRe: AfxGetApp()->m_pMainWnd in a DLL? [Edit] Pin
ThatsAlok5-Jun-05 17:51
ThatsAlok5-Jun-05 17:51 
GeneralMeaning of JB *+3 Pin
Franz Klein4-Jun-05 6:50
Franz Klein4-Jun-05 6:50 
GeneralRe: Meaning of JB *+3 Pin
Monty24-Jun-05 20:36
Monty24-Jun-05 20:36 
GeneralRe: Meaning of JB *+3 Pin
ThatsAlok5-Jun-05 17:49
ThatsAlok5-Jun-05 17:49 
GeneralRe: Meaning of JB *+3 Pin
Franz Klein5-Jun-05 23:31
Franz Klein5-Jun-05 23:31 
GeneralRe: Meaning of JB *+3 Pin
ThatsAlok6-Jun-05 19:02
ThatsAlok6-Jun-05 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.