Click here to Skip to main content
15,892,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can i Install TTF font through program using VC++ Pin
Hamid_RT11-May-08 20:05
Hamid_RT11-May-08 20:05 
GeneralRe: How can i Install TTF font through program using VC++ Pin
phanindra varma12-May-08 0:39
phanindra varma12-May-08 0:39 
QuestionHow can i Install TTF font through program Pin
phanindra varma11-May-08 19:41
phanindra varma11-May-08 19:41 
AnswerRe: How can i Install TTF font through program Pin
Sarath C11-May-08 21:11
Sarath C11-May-08 21:11 
QuestionWindowFromDC is returning null when application is in background Pin
V K 211-May-08 19:21
V K 211-May-08 19:21 
AnswerRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 20:05
Hamid_RT11-May-08 20:05 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 20:11
V K 211-May-08 20:11 
GeneralRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 20:17
Hamid_RT11-May-08 20:17 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 20:25
V K 211-May-08 20:25 
GeneralRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 20:44
Hamid_RT11-May-08 20:44 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 20:54
V K 211-May-08 20:54 
GeneralRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 21:06
Hamid_RT11-May-08 21:06 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 22:08
V K 211-May-08 22:08 
GeneralRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT12-May-08 19:24
Hamid_RT12-May-08 19:24 
QuestionTo find VC++ redistributables version installed on a system Pin
Mushtaque Nizamani11-May-08 19:21
Mushtaque Nizamani11-May-08 19:21 
AnswerRe: To find VC++ redistributables version installed on a system Pin
Hamid_RT11-May-08 20:09
Hamid_RT11-May-08 20:09 
GeneralRe: To find VC++ redistributables version installed on a system Pin
Mushtaque Nizamani11-May-08 20:29
Mushtaque Nizamani11-May-08 20:29 
GeneralRe: To find VC++ redistributables version installed on a system Pin
Hamid_RT11-May-08 20:35
Hamid_RT11-May-08 20:35 
GeneralRe: To find VC++ redistributables version installed on a system Pin
Mushtaque Nizamani11-May-08 20:38
Mushtaque Nizamani11-May-08 20:38 
QuestionGroupBox - Custom color for the drawing and text Pin
abupriabi@yahoo.com11-May-08 19:19
abupriabi@yahoo.com11-May-08 19:19 
AnswerRe: GroupBox - Custom color for the drawing and text Pin
Hamid_RT11-May-08 20:12
Hamid_RT11-May-08 20:12 
QuestionDynamic menu problem? Pin
ritz123411-May-08 18:45
ritz123411-May-08 18:45 
Hello dear friends,

I am creating the toolbar in VC 6.0.

I want to show the menu when the button of the toolbar will be clicked.

But when I use the LoadMenu for loading the menu from the resource i get

0 as the return value and GetLastError() returns the description

"The specified resource type can not be found in the image file."

I really don't understand the problem.The code snippest is as shown below.

void CMFToolbar::PopupFileMenu()<br />
{<br />
	<br />
	try<br />
	{<br />
		CMenu mnu;<br />
		CMenu *submnu;<br />
		RECT rectSubmitButton;<br />
		if(!GetItemRect(CommandToIndex(IDB_FILE),&rectSubmitButton))<br />
		{MessageBox("Fail1",_T("QpOffice Toolbar"),MB_ICONERROR); return;}<br />
		if(!MapWindowPoints(HWND_DESKTOP,(POINT*)&rectSubmitButton,2))<br />
		{MessageBox("Fail2",_T("QpOffice Toolbar"),MB_ICONERROR); return;}<br />
		if(mnu.LoadMenu(IDR_FILE_MENU))<br />
		{<br />
			MessageBox("1",_T("QpOffice Toolbar"),MB_ICONERROR);<br />
		}<br />
		else<br />
		{<br />
			char buf[MAX_PATH];<br />
			strcpy(buf,ErrorDescription(GetLastError()));<br />
			MessageBox(buf);<br />
		}<br />
	}<br />
	catch(...)<br />
	{<br />
		MessageBox("Exception",_T("QpOffice Toolbar"),MB_ICONERROR);<br />
	}


Thanks in advance to all of you.

ritz1234

QuestionRe: Dynamic menu problem? Pin
Mark Salsbery11-May-08 20:13
Mark Salsbery11-May-08 20:13 
AnswerRe: Dynamic menu problem? Pin
ritz123411-May-08 20:51
ritz123411-May-08 20:51 
AnswerRe: Dynamic menu problem? Pin
Rajkumar R11-May-08 21:32
Rajkumar R11-May-08 21:32 

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.