Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Radio Button Interactions Pin
Roger Wright17-Dec-02 4:44
professionalRoger Wright17-Dec-02 4:44 
GeneralHTTP GET Index Command :: Winsock Pin
valikac16-Dec-02 18:01
valikac16-Dec-02 18:01 
GeneralRe: HTTP GET Index Command :: Winsock Pin
Todd Smith16-Dec-02 18:39
Todd Smith16-Dec-02 18:39 
GeneralRe: HTTP GET Index Command :: Winsock Pin
valikac16-Dec-02 18:53
valikac16-Dec-02 18:53 
GeneralRe: HTTP GET Index Command :: Winsock Pin
Todd Smith16-Dec-02 19:01
Todd Smith16-Dec-02 19:01 
GeneralRe: HTTP GET Index Command :: Winsock Pin
markkuk16-Dec-02 23:18
markkuk16-Dec-02 23:18 
GeneralRe: HTTP GET Index Command :: Winsock Pin
valikac17-Dec-02 4:53
valikac17-Dec-02 4:53 
Questionhow do you disable menu command? Pin
trustno116-Dec-02 17:46
trustno116-Dec-02 17:46 
hi everyonebody,

i have a popup menu, activated by right click.. i want to disable some of the commands in the menu.. i was wondering how do i do it? i've different ways, but i can't seem to get it working.. any suggestion is welcome.. thanx in advance.

i've tried this:
void CMyApp::OnRMrclk(....)
{
CMenu menu;
CPoint point = GetMessagePos();
menu.LoadMenu(IDR_MENU1);
menu.EnableMenuItem(ID_MENU1_ONE, MF_GRAYED);
menu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd());
}

i've also tried this:
void CMyApp::OnUpdateMenu1One(CCmdUI *pCmdUI)
{
CMenu * pMenu = pCmdUI->m_pMenu;
pMenu->EnableMenuItem(ID_MENU1_ONE, MF_GRAYED);
}
AnswerRe: how do you disable menu command? Pin
Michael Dunn16-Dec-02 17:54
sitebuilderMichael Dunn16-Dec-02 17:54 
QuestionBreak/Continue bad? Pin
Tim Smith16-Dec-02 16:51
Tim Smith16-Dec-02 16:51 
AnswerRe: Break/Continue bad? Pin
Matt Gullett16-Dec-02 17:08
Matt Gullett16-Dec-02 17:08 
AnswerRe: Break/Continue bad? Pin
Nemanja Trifunovic16-Dec-02 17:24
Nemanja Trifunovic16-Dec-02 17:24 
AnswerRe: Break/Continue bad? Pin
Michael Dunn16-Dec-02 17:50
sitebuilderMichael Dunn16-Dec-02 17:50 
AnswerRe: Break/Continue bad? Pin
Christian Graus16-Dec-02 17:59
protectorChristian Graus16-Dec-02 17:59 
AnswerRe: Break/Continue bad? Pin
Joaquín M López Muñoz16-Dec-02 20:00
Joaquín M López Muñoz16-Dec-02 20:00 
AnswerRe: Break/Continue bad? Pin
Scott H. Settlemier17-Dec-02 2:13
Scott H. Settlemier17-Dec-02 2:13 
GeneralCannot create member variable of radio button... Pin
Mr.Freeze16-Dec-02 14:58
Mr.Freeze16-Dec-02 14:58 
GeneralRe: Cannot create member variable of radio button... Pin
Maximilien16-Dec-02 15:53
Maximilien16-Dec-02 15:53 
GeneralRe: Cannot create member variable of radio button... Pin
Mr.Freeze16-Dec-02 17:00
Mr.Freeze16-Dec-02 17:00 
GeneralRegistry API hooking! Pin
Nish Nishant16-Dec-02 13:05
sitebuilderNish Nishant16-Dec-02 13:05 
GeneralRe: Registry API hooking! Pin
Nick Parker16-Dec-02 16:34
protectorNick Parker16-Dec-02 16:34 
GeneralRe: Registry API hooking! Pin
Kannan Kalyanaraman16-Dec-02 20:18
Kannan Kalyanaraman16-Dec-02 20:18 
QuestionAre exceptions bad? Pin
clintsinger16-Dec-02 12:18
clintsinger16-Dec-02 12:18 
AnswerRe: Are exceptions bad? Pin
Taka Muraoka16-Dec-02 12:52
Taka Muraoka16-Dec-02 12:52 
GeneralRe: Are exceptions bad? Pin
Tim Smith16-Dec-02 13:15
Tim Smith16-Dec-02 13:15 

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.