Click here to Skip to main content
15,925,895 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ImageList exceded Pin
Chris Losinger9-Aug-02 13:48
professionalChris Losinger9-Aug-02 13:48 
GeneralRe: ImageList exceded Pin
Joel Lucsy9-Aug-02 16:37
Joel Lucsy9-Aug-02 16:37 
GeneralRe: ImageList exceded Pin
Michael Dunn9-Aug-02 17:06
sitebuilderMichael Dunn9-Aug-02 17:06 
GeneralRe: ImageList exceded Pin
CaesarCZ9-Aug-02 22:59
CaesarCZ9-Aug-02 22:59 
GeneralRe: ImageList exceded Pin
CaesarCZ10-Aug-02 0:18
CaesarCZ10-Aug-02 0:18 
GeneralRe: ImageList exceded Pin
Gary R. Wheeler10-Aug-02 2:44
Gary R. Wheeler10-Aug-02 2:44 
GeneralRe: ImageList exceded Pin
Michael Dunn10-Aug-02 5:28
sitebuilderMichael Dunn10-Aug-02 5:28 
Generalcontext popupmenu problem Pin
nss9-Aug-02 12:23
nss9-Aug-02 12:23 
I created a menu resource IDR_MYCONTEXT, and its got a submenu and a subsubmenu (nothing weird). I did and got the messagebox and a subsequent crash!

void CTrain1View::OnContextMenu(CWnd* pWnd, CPoint point) 
{
	// TODO: Add your message handler code here
	//if in any of the imageboxes, launch contextmenu

	CMenu menuPopup;

	if( rcTHBImage1.PtInRect(point))
	{
		AfxMessageBox("in");
		menuPopup.LoadMenu(IDR_MYCONTEXT);

		menuPopup.GetSubMenu(0)->TrackPopupMenu(TPM_RIGHTALIGN, point.x, point.y,this);
	
	}


However this works(but I dont get the menu I want of course!)

<pre>		CMenu* pMenuTrackPopup;

		pMenuTrackPopup = ((AfxGetMainWnd())->GetMenu())->GetSubMenu(0);
	        pMenuTrackPopup->TrackPopupMenu(TPM_RIGHt,point.x, point.y,
                AfxGetMainWnd(),    // Use the 'this' pointer if you want
                               // commands to be handled in your
                               // CMyMDIClient class instead
                 NULL);




}

I am doing something wrong! What though?

Thanks,
ns
GeneralRe: context popupmenu problem Pin
jmkhael9-Aug-02 12:33
jmkhael9-Aug-02 12:33 
GeneralRe: context popupmenu problem Pin
nss9-Aug-02 12:43
nss9-Aug-02 12:43 
GeneralRe: context popupmenu problem Pin
jmkhael9-Aug-02 12:46
jmkhael9-Aug-02 12:46 
GeneralCFtpConnection::Command() problems Pin
carrie9-Aug-02 11:58
carrie9-Aug-02 11:58 
Questionhow to add a filed and delete a field from the whole database Pin
nss9-Aug-02 11:43
nss9-Aug-02 11:43 
AnswerRe: how to add a filed and delete a field from the whole database Pin
jmkhael9-Aug-02 11:52
jmkhael9-Aug-02 11:52 
AnswerRe: how to add a filed and delete a field from the whole database Pin
nss9-Aug-02 12:13
nss9-Aug-02 12:13 
GeneralRe: how to add a filed and delete a field from the whole database Pin
jmkhael9-Aug-02 12:19
jmkhael9-Aug-02 12:19 
GeneralRe: how to add a filed and delete a field from the whole database Pin
jmkhael9-Aug-02 12:24
jmkhael9-Aug-02 12:24 
GeneralThanks a bunch! Pin
nss9-Aug-02 12:47
nss9-Aug-02 12:47 
GeneralCRichEdit2 + Window NT problem with URLs... Pin
Pavel Sokolov9-Aug-02 10:24
Pavel Sokolov9-Aug-02 10:24 
GeneralRe: CRichEdit2 + Window NT problem with URLs... Pin
Daniel Ferguson9-Aug-02 15:14
Daniel Ferguson9-Aug-02 15:14 
GeneralRe: CRichEdit2 + Window NT problem with URLs... Pin
Pavel Sokolov9-Aug-02 15:17
Pavel Sokolov9-Aug-02 15:17 
Questionhow to add images or icons to MS outlook Pin
rev9-Aug-02 10:22
rev9-Aug-02 10:22 
QuestionHELP! Can Visual C++ 6.0 read IP address without using Iphlpapi.h? Pin
Anonymous9-Aug-02 9:43
Anonymous9-Aug-02 9:43 
GeneralCombo box in CTabCtrl child dialog Pin
Fran Davey9-Aug-02 9:02
Fran Davey9-Aug-02 9:02 
GeneralRe: Combo box in CTabCtrl child dialog Pin
dazinith9-Aug-02 9:48
dazinith9-Aug-02 9:48 

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.