Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString, fstream with Visual Studio 2005 Pin
Stephen Hewitt9-Jan-06 1:57
Stephen Hewitt9-Jan-06 1:57 
NewsOk Pin
pvatanpour6-Jan-06 8:34
pvatanpour6-Jan-06 8:34 
GeneralRe: Ok Pin
KellyR6-Jan-06 9:41
KellyR6-Jan-06 9:41 
GeneralRe: Ok Pin
sunit56-Jan-06 21:19
sunit56-Jan-06 21:19 
GeneralRe: Ok Pin
KellyR7-Jan-06 13:40
KellyR7-Jan-06 13:40 
GeneralRe: Ok Pin
David Crow6-Jan-06 9:47
David Crow6-Jan-06 9:47 
GeneralRe: Ok Pin
John R. Shaw6-Jan-06 18:02
John R. Shaw6-Jan-06 18:02 
QuestionHowto: creating a dynamic menu? Pin
cromag6-Jan-06 7:08
cromag6-Jan-06 7:08 
I would like to create a top menu item with a submenu. I am able to create the topmenu item, but not the submenu unser it. This is used in a SDI app.

<br />
void CMyView::CreateOperationMenu()<br />
{<br />
	CMainFrame* pMainFrame = (CMainFrame*)AfxGetMainWnd();<br />
	CMenu* pMainMenu = pMainFrame->GetMenu();<br />
<br />
	// insert the topmenu item<br />
	if (!pMainMenu->InsertMenu(2, MF_BYPOSITION, 0, "Operation"))<br />
		return;<br />
<br />
	// get to submenu to add the items<br />
	CMenu* pSubMenu = pMainMenu->GetSubMenu(2);<br />
<br />
	// ERROR: pSubMenu is always NULL<br />
}<br />


Thanks.
AnswerRe: Howto: creating a dynamic menu? Pin
nm_1146-Jan-06 13:39
nm_1146-Jan-06 13:39 
AnswerRe: Howto: creating a dynamic menu? Pin
Laxman96-Jan-06 18:50
Laxman96-Jan-06 18:50 
AnswerRe: Howto: creating a dynamic menu? Pin
#realJSOP7-Jan-06 3:09
mve#realJSOP7-Jan-06 3:09 
GeneralRe: Howto: creating a dynamic menu? Pin
cromag9-Jan-06 4:55
cromag9-Jan-06 4:55 
GeneralRe: Howto: creating a dynamic menu? Pin
cromag9-Jan-06 5:19
cromag9-Jan-06 5:19 
GeneralRe: Howto: creating a dynamic menu? Pin
#realJSOP9-Jan-06 12:32
mve#realJSOP9-Jan-06 12:32 
QuestionVector of Strings simple problem PLEASE HELP Pin
Cursed Feanor6-Jan-06 7:05
Cursed Feanor6-Jan-06 7:05 
AnswerRe: Vector of Strings simple problem PLEASE HELP Pin
Roland Pibinger6-Jan-06 7:33
Roland Pibinger6-Jan-06 7:33 
JokeRe: Vector of Strings simple problem PLEASE HELP Pin
Cursed Feanor6-Jan-06 8:11
Cursed Feanor6-Jan-06 8:11 
AnswerRe: Vector of Strings simple problem PLEASE HELP Pin
David Crow6-Jan-06 9:43
David Crow6-Jan-06 9:43 
AnswerRe: Vector of Strings simple problem PLEASE HELP Pin
John R. Shaw6-Jan-06 18:26
John R. Shaw6-Jan-06 18:26 
QuestionTrying to get a bmp. to move with in boundries in a windows ap.... Pin
chadsxe6-Jan-06 6:05
chadsxe6-Jan-06 6:05 
AnswerRe: Trying to get a bmp. to move with in boundries in a windows ap.... Pin
KellyR6-Jan-06 6:34
KellyR6-Jan-06 6:34 
AnswerRe: Trying to get a bmp. to move with in boundries in a windows ap.... Pin
John R. Shaw6-Jan-06 19:05
John R. Shaw6-Jan-06 19:05 
QuestionAdding controls to a CTabCtrl Pin
Mark F.6-Jan-06 5:05
Mark F.6-Jan-06 5:05 
AnswerRe: Adding controls to a CTabCtrl Pin
#realJSOP7-Jan-06 3:12
mve#realJSOP7-Jan-06 3:12 
QuestionRe: Adding controls to a CTabCtrl Pin
Mark F.7-Jan-06 8:41
Mark F.7-Jan-06 8:41 

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.