Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stupid CEdit problem Pin
Hans Ruck3-Jul-02 6:48
Hans Ruck3-Jul-02 6:48 
GeneralRe: Stupid CEdit problem (solved) Pin
Hans Ruck3-Jul-02 6:51
Hans Ruck3-Jul-02 6:51 
GeneralCAsyncSocket Pin
Wade H.3-Jul-02 6:21
Wade H.3-Jul-02 6:21 
GeneralRe: CAsyncSocket Pin
3-Jul-02 19:11
suss3-Jul-02 19:11 
QuestionCursor ?? Pin
Rage3-Jul-02 6:08
professionalRage3-Jul-02 6:08 
AnswerRe: Cursor ?? Pin
Chris Losinger3-Jul-02 6:52
professionalChris Losinger3-Jul-02 6:52 
Generala CMDUI question Pin
ns3-Jul-02 5:58
ns3-Jul-02 5:58 
Generalmore CMDUI questions Pin
ns3-Jul-02 6:11
ns3-Jul-02 6:11 
I read that if the menu item doesnt have any handler it comes up disabled. Thats true. I added a COMMAND_UI_UPDATE handler and the menu item came up enabled! So I did this:

void CFormViewMDIDoc::OnUpdateEditDisabled(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
pCmdUI->Enable(FALSE);
}


and it comes up disabled.

Now how to I get it enabled again? If I dont have access to the pCmDUI pointer to this menu item (which comes in from OnUpdateEditDisabled(CCmdUI* pCmdUI) then I cant enable it from some random event.Correct? If the menu item is disabled, then it cant respond to clicking on it, so the OnUpdateEditDisabled(CCmdUI* pCmdUI) wont fire.....

Appreciate suggestions,
ns


Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused:
GeneralRe: more CMDUI questions Pin
ns3-Jul-02 7:22
ns3-Jul-02 7:22 
GeneralRe: a CMDUI - problem resolved! Pin
ns3-Jul-02 8:14
ns3-Jul-02 8:14 
Generalsurface plotting component Pin
3-Jul-02 5:46
suss3-Jul-02 5:46 
GeneralError when creating MFC wizard app with MS VisualC++ .NET Pin
rsasalm_3-Jul-02 5:14
rsasalm_3-Jul-02 5:14 
Generalclasses vanishing from class view!!! Pin
ns3-Jul-02 5:14
ns3-Jul-02 5:14 
GeneralRe: classes vanishing from class view!!! Pin
Michael P Butler3-Jul-02 5:19
Michael P Butler3-Jul-02 5:19 
GeneralRe: classes vanishing from class view!!! Pin
Alan Chambers3-Jul-02 5:35
Alan Chambers3-Jul-02 5:35 
GeneralRe: classes vanishing from class view!!! Pin
ns3-Jul-02 5:39
ns3-Jul-02 5:39 
GeneralRe: classes vanishing from class view!!! Pin
Alan Chambers3-Jul-02 5:46
Alan Chambers3-Jul-02 5:46 
GeneralRe: classes vanishing from class view!!! Pin
3-Jul-02 5:38
suss3-Jul-02 5:38 
GeneralRe: classes vanishing from class view!!! Pin
benjymous3-Jul-02 5:42
benjymous3-Jul-02 5:42 
GeneralA very easy way to fix it Pin
Abin3-Jul-02 6:34
Abin3-Jul-02 6:34 
GeneralRe: A very easy way to fix it Pin
Alan Chambers3-Jul-02 8:53
Alan Chambers3-Jul-02 8:53 
GeneralNo Pin
Abin3-Jul-02 13:11
Abin3-Jul-02 13:11 
GeneralWANTED: Urgent help with Direct3D Pin
Alan Chambers3-Jul-02 5:11
Alan Chambers3-Jul-02 5:11 
GeneralRe: No Wonder Pin
Alan Chambers3-Jul-02 10:54
Alan Chambers3-Jul-02 10:54 
GeneralAn ATL modal dialog box that doesn't close Pin
Le centriste3-Jul-02 10:20
Le centriste3-Jul-02 10:20 

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.