Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error occured when using CArchive to send Message ?Please do me a favor for it! Pin
RobJones7-Jan-04 8:17
RobJones7-Jan-04 8:17 
Generaloutput of external program Pin
gfds7-Jan-04 6:08
gfds7-Jan-04 6:08 
GeneralRe: output of external program Pin
Ted Ferenc7-Jan-04 6:48
Ted Ferenc7-Jan-04 6:48 
GeneralRe: output of external program Pin
valikac7-Jan-04 7:24
valikac7-Jan-04 7:24 
GeneralResolving mail server name Pin
Anonymous7-Jan-04 6:04
Anonymous7-Jan-04 6:04 
GeneralRe: Resolving mail server name Pin
valikac7-Jan-04 7:26
valikac7-Jan-04 7:26 
QuestionHow do i disable a popup menu item in runtime? Pin
oren frenkel7-Jan-04 5:33
oren frenkel7-Jan-04 5:33 
AnswerRe: How do i disable a popup menu item in runtime? Pin
Iain Clarke, Warrior Programmer7-Jan-04 6:05
Iain Clarke, Warrior Programmer7-Jan-04 6:05 
oren frenkel wrote:
the problem is that a a popup menu item has no ID!

Actually, you are wrong...
You have to give each item an ID when you are creating it. Either in resource editor,
or when you add each line.
BOOL AppendMenu( UINT nFlags, UINT nIDNewItem = 0, LPCTSTR lpszNewItem = NULL );


Off the top of my head, to get the ON_UPDATE_COMMAND_UI stuff working, just give
TrackPopupMenu your main window.

int nResult = mPopup.TrackPopupMenu (
    TPM_LEFTALIGN | TPM_LEFTBUTTON | /*TPM_NONOTIFY ?|*/ TPM_RETURNCMD,
    pt.x, pt.y, AfxGetMainWnd () );


Iain.
GeneralCalculate the Array search time in millisecondes Pin
naif6207-Jan-04 5:04
naif6207-Jan-04 5:04 
GeneralRe: Calculate the Array search time in millisecondes Pin
David Crow7-Jan-04 8:49
David Crow7-Jan-04 8:49 
GeneralRe: Calculate the Array search time in millisecondes Pin
naif6208-Jan-04 4:50
naif6208-Jan-04 4:50 
GeneralRe: Calculate the Array search time in millisecondes Pin
David Crow8-Jan-04 6:04
David Crow8-Jan-04 6:04 
QuestionIs this good form? Pin
Cloaca7-Jan-04 4:49
Cloaca7-Jan-04 4:49 
AnswerRe: Is this good form? Pin
Christian Graus7-Jan-04 10:05
protectorChristian Graus7-Jan-04 10:05 
GeneralRe: Is this good form? Pin
Cloaca7-Jan-04 11:53
Cloaca7-Jan-04 11:53 
AnswerRe: Is this good form? Pin
Mike Dimmick8-Jan-04 2:27
Mike Dimmick8-Jan-04 2:27 
GeneralRe: Is this good form? Pin
Cloaca8-Jan-04 5:02
Cloaca8-Jan-04 5:02 
GeneralRe: Is this good form? Pin
Mike Dimmick8-Jan-04 5:23
Mike Dimmick8-Jan-04 5:23 
GeneralRe: Is this good form? Pin
Cloaca8-Jan-04 11:33
Cloaca8-Jan-04 11:33 
GeneralAdding text display to dialog box Pin
Anonymous7-Jan-04 4:36
Anonymous7-Jan-04 4:36 
GeneralRe: Adding text display to dialog box Pin
valikac7-Jan-04 7:28
valikac7-Jan-04 7:28 
GeneralHelp with HANDLEs Pin
Mortis7-Jan-04 4:14
Mortis7-Jan-04 4:14 
GeneralRe: Help with HANDLEs Pin
Dominik Reichl7-Jan-04 4:33
Dominik Reichl7-Jan-04 4:33 
GeneralRe: Help with HANDLEs Pin
valikac7-Jan-04 7:29
valikac7-Jan-04 7:29 
GeneralFucntion execution time Pin
islheg7-Jan-04 3:49
islheg7-Jan-04 3:49 

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.