Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: file overwriting Pin
ocean20009-Jun-04 17:53
ocean20009-Jun-04 17:53 
Question[MFC MDI] Having 2 document type create without doc type dialog box? Pin
Anonymous9-Jun-04 17:11
Anonymous9-Jun-04 17:11 
AnswerRe: [MFC MDI] Having 2 document type create without doc type dialog box? Pin
bneacetp9-Jun-04 20:29
bneacetp9-Jun-04 20:29 
AnswerRe: [MFC MDI] Having 2 document type create without doc type dialog box? Pin
Roger Allen9-Jun-04 23:33
Roger Allen9-Jun-04 23:33 
GeneralUsing Forms. Question to Experts Pin
Dr. Pastor9-Jun-04 16:16
Dr. Pastor9-Jun-04 16:16 
GeneralDisabling or greying out menu items in mfc Pin
kfaday9-Jun-04 15:51
kfaday9-Jun-04 15:51 
GeneralRe: Disabling or greying out menu items in mfc Pin
palbano9-Jun-04 17:18
palbano9-Jun-04 17:18 
GeneralRe: Disabling or greying out menu items in mfc Pin
V.9-Jun-04 21:20
professionalV.9-Jun-04 21:20 
Try:
CWnd *pWnd;
pWnd = (CWnd*)GetDlgItem(YOUR_RESOURCE_ID);
pWnd->EnableWindow(FALSE); //or TRUE Big Grin | :-D

ON_UPDATE_COMMAND_UI works on itself. eg.:
void CYourClass::OnUpdateYourMenuItem(CCmdUI* pCmdUI){
pCmdUI->Enable(NAME_OF_BOOL);
}

then you can set your NAME_OF_BOOL to true or false and (in my app) it magically works

Good luck.

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix
GeneralRe: Disabling or greying out menu items in mfc Pin
kfaday10-Jun-04 17:06
kfaday10-Jun-04 17:06 
GeneralNeed Urgent Help for a listener catching tooltips Pin
ayca9-Jun-04 15:14
ayca9-Jun-04 15:14 
GeneralRe: Need Urgent Help for a listener catching tooltips Pin
Diddy9-Jun-04 23:21
Diddy9-Jun-04 23:21 
GeneralSelecting the file names in open file dialog Pin
ayca9-Jun-04 13:25
ayca9-Jun-04 13:25 
GeneralRe: Selecting the file names in open file dialog Pin
GermanGeorge10-Jun-04 3:18
GermanGeorge10-Jun-04 3:18 
GeneralCan't get tabs down right side of TabCtrl. Pin
ThePilgrim9-Jun-04 12:29
ThePilgrim9-Jun-04 12:29 
GeneralRe: Can't get tabs down right side of TabCtrl. Pin
Ryan Binns9-Jun-04 18:20
Ryan Binns9-Jun-04 18:20 
GeneralRe: Can't get tabs down right side of TabCtrl. Pin
ThePilgrim9-Jun-04 18:43
ThePilgrim9-Jun-04 18:43 
GeneralRe: Can't get tabs down right side of TabCtrl - Whoo-hoo! Pin
ThePilgrim9-Jun-04 19:29
ThePilgrim9-Jun-04 19:29 
GeneralInterrupt handling Pin
philliad9-Jun-04 10:31
philliad9-Jun-04 10:31 
GeneralUSB Data Acquisition Pin
Jeff Bogan9-Jun-04 9:47
Jeff Bogan9-Jun-04 9:47 
GeneralRe: USB Data Acquisition Pin
Ryan Binns9-Jun-04 18:24
Ryan Binns9-Jun-04 18:24 
GeneralAdding a border to a custom control Pin
kfaday9-Jun-04 9:29
kfaday9-Jun-04 9:29 
GeneralRe: Adding a border to a custom control Pin
Vadim Tabakman9-Jun-04 15:54
Vadim Tabakman9-Jun-04 15:54 
GeneralRe: Adding a border to a custom control Pin
kfaday9-Jun-04 15:52
kfaday9-Jun-04 15:52 
GeneralRe: Adding a border to a custom control Pin
Vadim Tabakman9-Jun-04 16:09
Vadim Tabakman9-Jun-04 16:09 
GeneralParsing Header files Pin
Anonymous9-Jun-04 9:09
Anonymous9-Jun-04 9:09 

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.