Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralString across DLL's Pin
Amit Dey29-Jan-01 23:29
Amit Dey29-Jan-01 23:29 
GeneralRe: String across DLL's Pin
Chris Losinger30-Jan-01 4:00
professionalChris Losinger30-Jan-01 4:00 
GeneralLoad video from an IStream Pin
29-Jan-01 22:07
suss29-Jan-01 22:07 
GeneralProblem with a tree view !!! Pin
Walid MEDDEB29-Jan-01 21:59
Walid MEDDEB29-Jan-01 21:59 
GeneralActiveX Param Tag Values Pin
29-Jan-01 11:17
suss29-Jan-01 11:17 
GeneralA compiler error Pin
winyu29-Jan-01 7:37
winyu29-Jan-01 7:37 
GeneralRe: A compiler error Pin
Michael Dunn29-Jan-01 9:02
sitebuilderMichael Dunn29-Jan-01 9:02 
GeneralUrgent: Pop up menus and SFTTree Pin
Ole Chr. Birkeland29-Jan-01 4:16
Ole Chr. Birkeland29-Jan-01 4:16 
Hi.

I'm trying to improve a small dialog box which is part of a large program.
The list in the dialog box has been created using a SFTTree list control(Softelvdm Inc).
I'm trying to add a pop up menu when rightclicking within the list control, but have so far been unsuccessful at it.

I've tried to cut'n'paste code from a different non-SFTTree dialog box. Although the code seems to execute correctly (when tracing during debug), nothing happens. I've included the function with the code below.

void CAlarmEditPage::OnSFTTreeContextMenu(CWnd* pWnd, CPoint point)
{
TRACE("OnSFTTreeContextMenu()\n");

CMenu menu;
if(menu.LoadMenu(ID_POPUP_MENU)) // Use the What's This? Menu
{
CMenu* pPopup=menu.GetSubMenu(0);
pPopup->DeleteMenu( 0, MF_BYPOSITION ); //Remove "What's this"-Menu-item

pPopup->AppendMenu(MF_STRING, ID_HELP, "Help on selected alarm");
pPopup->TrackPopupMenu(TPM_LEFTALIGN|TPM_RIGHTBUTTON,point.x,point.y,this);
}
menu.DestroyMenu();

}

Is the code correct? Is there anything else which might cause the menu not to appear? All help greatly appreciated.

Regards,
Ole Chr. Birkeland
GeneralRequest: Samplecode QuickTime Pin
AlexMarbus29-Jan-01 3:45
AlexMarbus29-Jan-01 3:45 
GeneralLisView Pin
29-Jan-01 3:20
suss29-Jan-01 3:20 
QuestionHow to change the caption of the "open" button? Pin
leonwoo29-Jan-01 2:56
leonwoo29-Jan-01 2:56 
AnswerRe: How to change the caption of the Pin
Christian Graus29-Jan-01 11:28
protectorChristian Graus29-Jan-01 11:28 
GeneralRe: How to change the caption of the Pin
29-Jan-01 11:54
suss29-Jan-01 11:54 
QuestionDo VB ActiveX DLLs have to be so hard to use? Pin
Brendan Tregear28-Jan-01 18:50
Brendan Tregear28-Jan-01 18:50 
AnswerRe: Do VB ActiveX DLLs have to be so hard to use? Pin
29-Jan-01 1:14
suss29-Jan-01 1:14 
Questionblit a bmp as dlg background? Pin
28-Jan-01 11:57
suss28-Jan-01 11:57 
AnswerRe: blit a bmp as dlg background? Pin
Christian Graus28-Jan-01 12:20
protectorChristian Graus28-Jan-01 12:20 
QuestionShellExecute??? Pin
28-Jan-01 10:45
suss28-Jan-01 10:45 
AnswerRe: ShellExecute??? Pin
Christian Graus28-Jan-01 10:54
protectorChristian Graus28-Jan-01 10:54 
AnswerRe: ShellExecute??? Pin
29-Jan-01 3:38
suss29-Jan-01 3:38 
Generalip address Pin
loki rasputin28-Jan-01 6:45
loki rasputin28-Jan-01 6:45 
GeneralRe: ip address Pin
28-Jan-01 15:21
suss28-Jan-01 15:21 
GeneralRe: ip address Pin
loki rasputin28-Jan-01 17:26
loki rasputin28-Jan-01 17:26 
GeneralRandom number Pin
28-Jan-01 2:50
suss28-Jan-01 2:50 
GeneralRe: Random number Pin
DanYELL28-Jan-01 4:02
DanYELL28-Jan-01 4:02 

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.