Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMS Access 2000 and VC6 Pin
Gozer9-Oct-00 9:48
Gozer9-Oct-00 9:48 
GeneralWin32API/GDI/Fonts Pin
Kirill Sherman9-Oct-00 9:29
sussKirill Sherman9-Oct-00 9:29 
GeneralCopy constructor in Exception Class Pin
Robin8-Oct-00 16:41
Robin8-Oct-00 16:41 
GeneralRe: Copy constructor in Exception Class Pin
Tim Deveaux9-Oct-00 5:08
Tim Deveaux9-Oct-00 5:08 
GeneralSingle Document naming Pin
kin8-Oct-00 13:28
kin8-Oct-00 13:28 
GeneralRe: Single Document naming Pin
Tim Deveaux8-Oct-00 14:48
Tim Deveaux8-Oct-00 14:48 
GeneralRe: Single Document naming Pin
Sam Hobbs9-Oct-00 20:27
Sam Hobbs9-Oct-00 20:27 
GeneralEnabling/graying normal menu items? (Win 2000) Pin
Martin Vrbovsky8-Oct-00 12:09
sussMartin Vrbovsky8-Oct-00 12:09 
I have problems with normal, simple enabling and graying menu items.
Commands like:

AfxGetMainWnd()->GetMenu()->EnableMenuItem(ID_VIEW_TOOLBAR,MF_GRAYED|MF_BYCOMMAND);

or

AfxGetMainWnd()->GetMenu()->GetSubMenu(2)->EnableMenuItem(0,MF_GRAYED|MF_BYPOSITION);

or

AfxGetMainWnd()->GetMenu()->GetSubMenu(2)->EnableMenuItem(ID_VIEW_TOOLBAR,MF_GRAYED|MF_BYCOMMAND);

following with:

AfxGetMainWnd()->DrawMenuBar();
AfxGetMainWnd()->RedrawWindow();

didn't function (the items remained enabled), even though the Status of menu items has been changed (when I tried to call the some function for the second time, the return value (=previous state) was as I set it).

Noticable is, that command

AfxGetMainWnd()->GetMenu()->EnableMenuItem(0,MF_GRAYED|MF_BYPOSITION);

worked properly.

Could You help me with my problem, please?

Thank You very much...

GeneralRe: Enabling/graying normal menu items? (Win 2000) Pin
Michael Dunn9-Oct-00 9:58
sitebuilderMichael Dunn9-Oct-00 9:58 
General*** Displaying TABLES from Access in a MFC application *** Pin
Steve Lai8-Oct-00 8:53
Steve Lai8-Oct-00 8:53 
General*** Saving TABLES from Access with MFC application *** Pin
Steve Lai8-Oct-00 8:52
Steve Lai8-Oct-00 8:52 
Generaldocking Pin
mike99998-Oct-00 6:53
mike99998-Oct-00 6:53 
Generalhwnd of other windows Pin
valec8-Oct-00 5:47
valec8-Oct-00 5:47 
GeneralRe: hwnd of other windows Pin
Tim Deveaux8-Oct-00 7:17
Tim Deveaux8-Oct-00 7:17 
GeneralRe: hwnd of other windows Pin
Michael Dunn8-Oct-00 7:55
sitebuilderMichael Dunn8-Oct-00 7:55 
GeneralRe: hwnd of other windows Pin
valec8-Oct-00 10:07
valec8-Oct-00 10:07 
GeneralFundamentals Pin
loh7-Oct-00 9:44
loh7-Oct-00 9:44 
GeneralRe: Fundamentals Pin
Dave8-Oct-00 5:57
Dave8-Oct-00 5:57 
GeneralConverting int to double Pin
Doctor Boogie7-Oct-00 7:15
Doctor Boogie7-Oct-00 7:15 
GeneralRe: Converting int to double Pin
valec8-Oct-00 5:43
valec8-Oct-00 5:43 
GeneralRe: Converting int to double Pin
Doctor Boogie10-Oct-00 8:41
Doctor Boogie10-Oct-00 8:41 
GeneralToolbar in Internet Explorer Pin
mmagri6-Oct-00 14:48
sussmmagri6-Oct-00 14:48 
GeneralRe: Toolbar in Internet Explorer Pin
Sam Hobbs8-Oct-00 5:47
Sam Hobbs8-Oct-00 5:47 
GeneralRe: Toolbar in Internet Explorer Pin
Erik Thompson9-Oct-00 8:51
sitebuilderErik Thompson9-Oct-00 8:51 
Generaltab- and alt-key processing outside a dialogue-resource Pin
Joe Mehlbrech6-Oct-00 11:54
sussJoe Mehlbrech6-Oct-00 11:54 

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.