Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Initialization of dialog box after it is shown Pin
Ryan Binns7-Aug-03 0:46
Ryan Binns7-Aug-03 0:46 
GeneralRe: Initialization of dialog box after it is shown Pin
harmendejong7-Aug-03 1:16
harmendejong7-Aug-03 1:16 
GeneralRe: Initialization of dialog box after it is shown Pin
Ryan Binns7-Aug-03 1:37
Ryan Binns7-Aug-03 1:37 
GeneralRe: Initialization of dialog box after it is shown Pin
harmendejong7-Aug-03 2:19
harmendejong7-Aug-03 2:19 
GeneralRe: Initialization of dialog box after it is shown Pin
Ryan Binns7-Aug-03 2:27
Ryan Binns7-Aug-03 2:27 
GeneralRe: Initialization of dialog box after it is shown Pin
HPSI7-Aug-03 3:09
HPSI7-Aug-03 3:09 
GeneralRe: Initialization of dialog box after it is shown Pin
David Crow7-Aug-03 3:59
David Crow7-Aug-03 3:59 
QuestionHow to manually disable Menu item? Pin
vgrigor7-Aug-03 0:15
vgrigor7-Aug-03 0:15 
I did following:

[code]
CMenu* pMenu = this->GetMenu();

CMenu* pFilterMenu =pMenu->GetSubMenu(1);// Filters

CCmdUI state;
state.m_pMenu = pFilterMenu;
state.m_nIndex = 0;/* 1 to nItems */

state.m_nID = pMenu->GetMenuItemID(state.m_nIndex); // now route to message maps

state.Enable(FALSE);

state.DoUpdate(this,false);
//not works
//------------------------
// 2) method
pFilterMenu->EnableMenuItem(ID_BT_AL_RISED, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
//not works

[/code]

but not not works both methods,
why?
Or
How to do it correctly?


AnswerRe: How to manually disable Menu item? Pin
Vitali Halershtein7-Aug-03 0:21
Vitali Halershtein7-Aug-03 0:21 
AnswerRe: How to manually disable Menu item? Pin
Ryan Binns7-Aug-03 1:10
Ryan Binns7-Aug-03 1:10 
GeneralRe: How to manually disable Menu item? Pin
vgrigor7-Aug-03 1:19
vgrigor7-Aug-03 1:19 
GeneralRe: How to manually disable Menu item? Pin
Ryan Binns7-Aug-03 1:24
Ryan Binns7-Aug-03 1:24 
GeneralRe: How to manually disable Menu item? Pin
vgrigor7-Aug-03 1:31
vgrigor7-Aug-03 1:31 
GeneralRe: How to manually disable Menu item? Pin
Ryan Binns7-Aug-03 1:43
Ryan Binns7-Aug-03 1:43 
GeneralRe: How to manually disable Menu item? Pin
vgrigor7-Aug-03 1:50
vgrigor7-Aug-03 1:50 
GeneralRe: How to manually disable Menu item? Pin
Ryan Binns7-Aug-03 2:03
Ryan Binns7-Aug-03 2:03 
GeneralRe: How to manually disable Menu item? Pin
vgrigor7-Aug-03 2:12
vgrigor7-Aug-03 2:12 
GeneralRe: How to manually disable Menu item? Pin
vgrigor7-Aug-03 3:31
vgrigor7-Aug-03 3:31 
Generalmessage id Pin
ranjjj7-Aug-03 0:09
ranjjj7-Aug-03 0:09 
GeneralRe: message id Pin
Vitali Halershtein7-Aug-03 0:14
Vitali Halershtein7-Aug-03 0:14 
GeneralRe: message id Pin
dharani7-Aug-03 0:24
dharani7-Aug-03 0:24 
GeneralSelecting multiple files in openFIleDialog Pin
BoudewijnEctor6-Aug-03 23:57
BoudewijnEctor6-Aug-03 23:57 
GeneralRe: Selecting multiple files in openFIleDialog Pin
Vitali Halershtein7-Aug-03 0:17
Vitali Halershtein7-Aug-03 0:17 
GeneralRe: Selecting multiple files in openFIleDialog Pin
BoudewijnEctor7-Aug-03 0:21
BoudewijnEctor7-Aug-03 0:21 
GeneralRe: Selecting multiple files in openFIleDialog Pin
Vitali Halershtein7-Aug-03 0:41
Vitali Halershtein7-Aug-03 0:41 

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.