Click here to Skip to main content
15,887,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOT Pin
CPallini4-Jan-09 0:06
mveCPallini4-Jan-09 0:06 
GeneralRe: abuse Pin
ThatsAlok5-Jan-09 0:26
ThatsAlok5-Jan-09 0:26 
AnswerRe: this my friand Pin
Hamid_RT4-Jan-09 0:05
Hamid_RT4-Jan-09 0:05 
AnswerRe: this my friand Pin
ThatsAlok5-Jan-09 0:24
ThatsAlok5-Jan-09 0:24 
Questionabout class wizard on Visual C 2005 Pin
DSPCottage3-Jan-09 6:42
DSPCottage3-Jan-09 6:42 
AnswerRe: about class wizard on Visual C 2005 Pin
Mark Salsbery3-Jan-09 6:58
Mark Salsbery3-Jan-09 6:58 
GeneralRe: about class wizard on Visual C 2005 Pin
DSPCottage3-Jan-09 7:18
DSPCottage3-Jan-09 7:18 
GeneralPopup Menu Pin
korte253-Jan-09 6:31
korte253-Jan-09 6:31 
I'd like to make a popup menu with the following code. However my assertion (ASSERT(m_Popup)) always fails. I've no idea what the problem could be. Thanks.

void CChildView::OnContextMenu(CWnd* pWnd, CPoint point)
{
	CMenu PopupMenu;
	PopupMenu.LoadMenu(IDR_P);	

	CMenu *m_Popup = PopupMenu.GetSubMenu(0);

	ASSERT(m_Popup);

	m_Popup->TrackPopupMenu(TPM_LEFTALIGN |TPM_RIGHTBUTTON, point.x, point.y, this);
	// TODO: Add your message handler code here
}

GeneralRe: Popup Menu Pin
Richard Andrew x643-Jan-09 6:59
professionalRichard Andrew x643-Jan-09 6:59 
GeneralRe: Popup Menu Pin
korte253-Jan-09 7:46
korte253-Jan-09 7:46 
GeneralRe: Popup Menu Pin
Michael Dunn3-Jan-09 18:39
sitebuilderMichael Dunn3-Jan-09 18:39 
GeneralRe: Popup Menu Pin
korte253-Jan-09 22:05
korte253-Jan-09 22:05 
GeneralRe: Popup Menu Pin
korte253-Jan-09 22:25
korte253-Jan-09 22:25 
GeneralRe: Popup Menu Pin
Stephen Hewitt3-Jan-09 21:55
Stephen Hewitt3-Jan-09 21:55 
GeneralRe: Popup Menu Pin
korte253-Jan-09 22:06
korte253-Jan-09 22:06 
QuestionBit manipulation useing "Bit Field" in C++ Pin
Joseph Marzbani3-Jan-09 5:43
Joseph Marzbani3-Jan-09 5:43 
GeneralRe: Bit manipulation useing "Bit Field" in C++ Pin
Luc Pattyn3-Jan-09 6:07
sitebuilderLuc Pattyn3-Jan-09 6:07 
AnswerRe: Bit manipulation useing "Bit Field" in C++ Pin
Stuart Dootson3-Jan-09 17:02
professionalStuart Dootson3-Jan-09 17:02 
AnswerRe: Bit manipulation useing "Bit Field" in C++ Pin
krmed4-Jan-09 3:33
krmed4-Jan-09 3:33 
QuestionDebug Assertion Failure Pin
bhanu_85093-Jan-09 1:32
bhanu_85093-Jan-09 1:32 
AnswerRe: Debug Assertion Failure Pin
SandipG 3-Jan-09 1:39
SandipG 3-Jan-09 1:39 
AnswerRe: Debug Assertion Failure Pin
ThatsAlok5-Jan-09 0:28
ThatsAlok5-Jan-09 0:28 
Questionhelp me... Pin
surender992-Jan-09 21:58
surender992-Jan-09 21:58 
AnswerRe: help me... Pin
Code-o-mat3-Jan-09 3:22
Code-o-mat3-Jan-09 3:22 
QuestionHow can Create new rect with width? Pin
Le@rner2-Jan-09 20:05
Le@rner2-Jan-09 20:05 

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.