Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Debug --> Exceptions in Visual Studio 2005 Pin
baerten9-Aug-07 23:09
baerten9-Aug-07 23:09 
AnswerRe: Debug --> Exceptions in Visual Studio 2005 Pin
KarstenK10-Aug-07 2:19
mveKarstenK10-Aug-07 2:19 
QuestionHow to set Dialog size when resolution of computer changes Pin
wajape9-Aug-07 21:34
wajape9-Aug-07 21:34 
AnswerRe: How to set Dialog size when resolution of computer changes Pin
jhwurmbach9-Aug-07 21:52
jhwurmbach9-Aug-07 21:52 
AnswerRe: How to set Dialog size when resolution of computer changes Pin
Nelek9-Aug-07 22:01
protectorNelek9-Aug-07 22:01 
AnswerRe: How to set Dialog size when resolution of computer changes Pin
Hamid_RT10-Aug-07 0:39
Hamid_RT10-Aug-07 0:39 
AnswerRe: How to set Dialog size when resolution of computer changes Pin
KarstenK10-Aug-07 1:22
mveKarstenK10-Aug-07 1:22 
QuestionProblem in disabling menu items Pin
shivditya9-Aug-07 21:23
shivditya9-Aug-07 21:23 
I have an SDI application ,I want to disable toolbar and menuitems
for certain users. Toolbar buttons get hidden but menu items remain as it is. I checked cmu does not get null value.
this code is in MainFrame.cpp.
*- Instead of m_hWnd I tried ::AfxGetMainWnd() and
*- AfxGetApp()->GetMainWindow().GetMenu() but result is worse.

////////////////////////////////current code
CMenu* cmu = (CMenu*)::GetMenu(m_hWnd);

if(right[0] == 0)
{
ctb.SetState(ID_ADD_CUSTOMER,TBSTATE_HIDDEN);
UINT ui = cmu->EnableMenuItem(ID_ADD_CUSTOMER,MF_DISABLED);

}
if(right[1] == 0)
{
ctb.SetState(ID_INACTIVATE_ACCOUNT,TBSTATE_HIDDEN);
UINT ui = cmu->EnableMenuItem(ID_INACTIVATE_ACCOUNT,MF_GRAYED);
}
}

|| ART OF LIVING ||

QuestionRe: Problem in disabling menu items Pin
Hamid_RT10-Aug-07 0:41
Hamid_RT10-Aug-07 0:41 
QuestionGetting CDC from Graphics Pin
Md. Ali Naser Khan9-Aug-07 20:19
Md. Ali Naser Khan9-Aug-07 20:19 
AnswerRe: Getting CDC from Graphics Pin
jk chan9-Aug-07 20:31
jk chan9-Aug-07 20:31 
GeneralRe: Getting CDC from Graphics Pin
Md. Ali Naser Khan10-Aug-07 5:31
Md. Ali Naser Khan10-Aug-07 5:31 
Questiontrayicon - mouse event Pin
dona jain9-Aug-07 20:14
dona jain9-Aug-07 20:14 
AnswerRe: trayicon - mouse event Pin
dona jain9-Aug-07 22:55
dona jain9-Aug-07 22:55 
GeneralRe: trayicon - mouse event Pin
prasad_som9-Aug-07 23:45
prasad_som9-Aug-07 23:45 
QuestionGet Database Type Pin
Programm3r9-Aug-07 20:06
Programm3r9-Aug-07 20:06 
Questionunable to check particular service's status[modified] Pin
vptech199-Aug-07 19:58
vptech199-Aug-07 19:58 
QuestionUnable to see new string added in a list box. Pin
Mushtaque Nizamani9-Aug-07 18:44
Mushtaque Nizamani9-Aug-07 18:44 
AnswerRe: Unable to see new string added in a list box. Pin
Nishad S9-Aug-07 19:04
Nishad S9-Aug-07 19:04 
GeneralRe: Unable to see new string added in a list box. Pin
Mushtaque Nizamani9-Aug-07 19:25
Mushtaque Nizamani9-Aug-07 19:25 
GeneralRe: Unable to see new string added in a list box. Pin
Nishad S9-Aug-07 19:37
Nishad S9-Aug-07 19:37 
AnswerRe: Unable to see new string added in a list box. Pin
David Crow10-Aug-07 4:04
David Crow10-Aug-07 4:04 
QuestionDialog Window Pin
radhika289-Aug-07 18:42
radhika289-Aug-07 18:42 
AnswerRe: Dialog Window Pin
hxhl959-Aug-07 18:49
hxhl959-Aug-07 18:49 
AnswerRe: Dialog Window Pin
Nishad S9-Aug-07 18:52
Nishad S9-Aug-07 18:52 

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.