Click here to Skip to main content
15,889,575 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MSDN const_cast sample Pin
toxcct17-Dec-07 3:32
toxcct17-Dec-07 3:32 
GeneralRe: MSDN const_cast sample Pin
George_George17-Dec-07 2:19
George_George17-Dec-07 2:19 
GeneralRe: MSDN const_cast sample Pin
toxcct16-Dec-07 22:15
toxcct16-Dec-07 22:15 
GeneralRe: MSDN const_cast sample Pin
George_George16-Dec-07 22:29
George_George16-Dec-07 22:29 
GeneralRe: MSDN const_cast sample Pin
toxcct16-Dec-07 22:46
toxcct16-Dec-07 22:46 
GeneralRe: MSDN const_cast sample Pin
George_George17-Dec-07 2:23
George_George17-Dec-07 2:23 
GeneralRe: MSDN const_cast sample Pin
CPallini16-Dec-07 22:32
mveCPallini16-Dec-07 22:32 
GeneralContext Menu Pin
john563216-Dec-07 21:20
john563216-Dec-07 21:20 
Hi Experts,

I am trying to create a context menu. But a exception is coming.

Context menu is : File->Add
My code is

<br />
CMenu menu;<br />
	menu.LoadMenu(IDR_CONTEXT);<br />
	CMenu* pPopup = menu.GetSubMenu(0);<br />
	CWnd* pWndPopupOwner = this;<br />
<br />
	CMenu *mnuPopupMenu = pPopup->GetSubMenu(0);<br />
	ASSERT(mnuPopupMenu);<br />
<br />
<br />
	while(pWndPopupOwner->GetStyle() & WS_CHILD)<br />
		pWndPopupOwner = pWndPopupOwner->GetParent();<br />
	pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,<br />
		point.x,<br />
		point.y,<br />
		AfxGetMainWnd(), NULL);<br />


What is wrong with this?
GeneralRe: Context Menu Pin
Naveen16-Dec-07 21:34
Naveen16-Dec-07 21:34 
GeneralRe: Context Menu Pin
Iain Clarke, Warrior Programmer17-Dec-07 0:33
Iain Clarke, Warrior Programmer17-Dec-07 0:33 
QuestionHow to Color a cell in a ListControl? Pin
Vikas_12316-Dec-07 20:40
Vikas_12316-Dec-07 20:40 
GeneralRe: How to Color a cell in a ListControl? Pin
Naveen16-Dec-07 21:02
Naveen16-Dec-07 21:02 
GeneralRe: How to Color a cell in a ListControl? Pin
Vikas_12316-Dec-07 22:53
Vikas_12316-Dec-07 22:53 
GeneralMFC vs .NET vs Qt? (Maybe C# even?) [long post] Pin
Member 451867316-Dec-07 20:12
Member 451867316-Dec-07 20:12 
QuestionCan we edit any item in CListCtrl? Pin
KASR116-Dec-07 19:34
KASR116-Dec-07 19:34 
AnswerRe: Can we edit any item in CListCtrl? Pin
Naveen16-Dec-07 19:51
Naveen16-Dec-07 19:51 
Generalabout inline asm jump a address table. Pin
HOW WHAT16-Dec-07 19:27
HOW WHAT16-Dec-07 19:27 
GeneralRe: about inline asm jump a address table. Pin
Mike Dimmick18-Dec-07 6:51
Mike Dimmick18-Dec-07 6:51 
GeneralCreateProcess(...) Error Pin
ashishbhatt16-Dec-07 18:48
ashishbhatt16-Dec-07 18:48 
GeneralRe: CreateProcess(...) Error Pin
Naveen16-Dec-07 18:59
Naveen16-Dec-07 18:59 
GeneralRe: CreateProcess(...) Error Pin
ashishbhatt16-Dec-07 21:47
ashishbhatt16-Dec-07 21:47 
GeneralCount words in Rich Edit Cintrol Pin
CodingLover16-Dec-07 18:05
CodingLover16-Dec-07 18:05 
NewsRe: Count words in Rich Edit Cintrol Pin
CodingLover16-Dec-07 19:50
CodingLover16-Dec-07 19:50 
GeneralRe: Count words in Rich Edit Cintrol Pin
Nelek16-Dec-07 22:28
protectorNelek16-Dec-07 22:28 
QuestionError Spawning rc.exe Pin
T.RATHA KRISHNAN16-Dec-07 17:52
T.RATHA KRISHNAN16-Dec-07 17:52 

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.