Click here to Skip to main content
15,905,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CHtmlView Pin
Philip Patrick1-Jan-02 2:49
professionalPhilip Patrick1-Jan-02 2:49 
Generalcall a function from more then 1 project Pin
Aviv Halperin31-Dec-01 4:23
Aviv Halperin31-Dec-01 4:23 
GeneralRe: call a function from more then 1 project Pin
Chris Losinger31-Dec-01 4:32
professionalChris Losinger31-Dec-01 4:32 
GeneralLoading function from an exe... Pin
Rickard Andersson2031-Dec-01 3:08
Rickard Andersson2031-Dec-01 3:08 
GeneralRe: Loading function from an exe... Pin
BlackSmith31-Dec-01 5:33
BlackSmith31-Dec-01 5:33 
GeneralMFC Extention DLL - Exporting classes..... Pin
BlackSmith31-Dec-01 2:49
BlackSmith31-Dec-01 2:49 
GeneralRe: MFC Extention DLL - Exporting classes..... Pin
Nnamdi Onyeyiri31-Dec-01 7:18
Nnamdi Onyeyiri31-Dec-01 7:18 
Questionmenu from resource redrawing? Pin
Kuniva31-Dec-01 2:40
Kuniva31-Dec-01 2:40 
I have an MFC dialog application and in its properties i assign it a menu. I thought "wow this is easy, i just make a menu and stick it on the dialog, i dont even have to write any code for it". But then i wanted to disable an item and found a problem. this is what i have:

void CMyDlg::OnUpdateMyItem(CCmdUI* pCmdUI)
{
pCmdUI->Enable(FALSE);
}

This disables the menuitem BUT! it doesn't show it disabled. It's like it does it in the background without redrawing the menu. Can anyone tell me how to work with the pointer and all so its updated correctly??
Thanks

(PS: i tried CMyDlg::DrawMenuBar(); , no effect)

Kuniva
AnswerRe: menu from resource redrawing? Pin
567890123431-Dec-01 4:37
567890123431-Dec-01 4:37 
AnswerRe: menu from resource redrawing? Pin
Michael Dunn31-Dec-01 7:09
sitebuilderMichael Dunn31-Dec-01 7:09 
GeneralHow do i add the handler? Pin
Kuniva1-Jan-02 3:37
Kuniva1-Jan-02 3:37 
GeneralTextWidth and GDI+ (Anders is learning GDI+ part 3) Pin
Anders Molin31-Dec-01 1:51
professionalAnders Molin31-Dec-01 1:51 
GeneralRe: TextWidth and GDI+ (Anders is learning GDI+ part 3) Pin
Andreas Hallberg31-Dec-01 3:51
Andreas Hallberg31-Dec-01 3:51 
GeneralRe: TextWidth and GDI+ (Anders is learning GDI+ part 3) Pin
Anders Molin1-Jan-02 3:35
professionalAnders Molin1-Jan-02 3:35 
GeneralOO concept query Pin
sysdeamon31-Dec-01 1:38
sysdeamon31-Dec-01 1:38 
GeneralRe: OO concept query Pin
Aaron Schaefer31-Dec-01 4:17
Aaron Schaefer31-Dec-01 4:17 
GeneralRe: OO concept query Pin
Alvaro Mendez31-Dec-01 5:56
Alvaro Mendez31-Dec-01 5:56 
GeneralRe: OO concept query Pin
Michael Dunn31-Dec-01 7:11
sitebuilderMichael Dunn31-Dec-01 7:11 
General,TAPI Application Pin
vin30-Dec-01 19:02
vin30-Dec-01 19:02 
GeneralVC++ 6 enhancement Pin
IGx8930-Dec-01 15:49
IGx8930-Dec-01 15:49 
GeneralRe: VC++ 6 enhancement Pin
Nnamdi Onyeyiri31-Dec-01 7:42
Nnamdi Onyeyiri31-Dec-01 7:42 
GeneralRe: VC++ 6 enhancement Pin
User 66581-Jan-02 3:48
User 66581-Jan-02 3:48 
GeneralSelection change notification message Pin
Yury Sulsky30-Dec-01 15:23
Yury Sulsky30-Dec-01 15:23 
GeneralLVN_ITEMCHANGED Pin
Yury Sulsky30-Dec-01 17:39
Yury Sulsky30-Dec-01 17:39 
GeneralRegistry problems. Pin
Jason Hooper30-Dec-01 15:17
Jason Hooper30-Dec-01 15:17 

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.