Click here to Skip to main content
15,908,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Event or funtion after click "open" button in dialog "Open,Save,Save as" Pin
David Crow26-Mar-08 4:44
David Crow26-Mar-08 4:44 
GeneralRe: Event or funtion after click "open" button in dialog "Open,Save,Save as" Pin
David Crow26-Mar-08 4:35
David Crow26-Mar-08 4:35 
GeneralRe: Event or funtion after click "open" button in dialog "Open,Save,Save as" Pin
James R. Twine26-Mar-08 5:03
James R. Twine26-Mar-08 5:03 
GeneralRe: Event or funtion after click "open" button in dialog "Open,Save,Save as" Pin
Mark Salsbery26-Mar-08 5:46
Mark Salsbery26-Mar-08 5:46 
QuestionHow to read and manipulate xml files in vc++ 05? Pin
noh_se_nada26-Mar-08 1:28
noh_se_nada26-Mar-08 1:28 
AnswerRe: How to read and manipulate xml files in vc++ 05? Pin
CPallini26-Mar-08 1:37
mveCPallini26-Mar-08 1:37 
AnswerRe: How to read and manipulate xml files in vc++ 05? Pin
Saurabh.Garg26-Mar-08 1:48
Saurabh.Garg26-Mar-08 1:48 
QuestionWhy TranslateAccelerator fails only in release mode ? Pin
sdancer7526-Mar-08 1:14
sdancer7526-Mar-08 1:14 
Hi I am using the following PreTranslateMessage and it works just fine in debug mode but the ::TranslateAccelerator fails in release. What seems to be worng here ?

BOOL CLeftTabSheet1::PreTranslateMessage(MSG* pMsg) <br />
{<br />
	// TODO: Add your specialized code here and/or call the base class<br />
	if (pMsg->message == WM_KEYDOWN && ((CMainFrame *)AfxGetMainWnd())!=NULL)<br />
	{<br />
		<br />
		int nVirtKey = (int) pMsg->wParam;<br />
		CString str;<br />
		str.Format("%d",nVirtKey);<br />
		AfxMessageBox("In - PreTranslate VirtKey=" + str);<br />
		if (::TranslateAccelerator( ((CMainFrame *)AfxGetMainWnd())->m_hWnd,((CMainFrame *)AfxGetMainWnd())->m_hAccelTable,pMsg))<br />
		{<br />
			<br />
			AfxMessageBox("Out - PreTranslate");<br />
			return TRUE;<br />
<br />
		}<br />
	}<br />
	<br />
	<br />
	return CPropertyPage::PreTranslateMessage(pMsg);<br />
}


sdancer75

AnswerRe: Why TranslateAccelerator fails only in release mode ? Pin
CPallini26-Mar-08 1:24
mveCPallini26-Mar-08 1:24 
GeneralRe: Why TranslateAccelerator fails only in release mode ? Pin
sdancer7527-Mar-08 22:10
sdancer7527-Mar-08 22:10 
GeneralPostMessage to a different thread's messageQueue Pin
snir_ya26-Mar-08 1:04
snir_ya26-Mar-08 1:04 
QuestionRe: PostMessage to a different thread's messageQueue Pin
CPallini26-Mar-08 1:18
mveCPallini26-Mar-08 1:18 
GeneralRe: PostMessage to a different thread's messageQueue Pin
snir_ya26-Mar-08 1:37
snir_ya26-Mar-08 1:37 
GeneralRe: PostMessage to a different thread's messageQueue Pin
snir_ya26-Mar-08 1:43
snir_ya26-Mar-08 1:43 
QuestionRe: PostMessage to a different thread's messageQueue Pin
CPallini26-Mar-08 2:53
mveCPallini26-Mar-08 2:53 
GeneralRe: PostMessage to a different thread's messageQueue Pin
snir_ya26-Mar-08 3:24
snir_ya26-Mar-08 3:24 
GeneralRe: PostMessage to a different thread's messageQueue Pin
CPallini26-Mar-08 4:08
mveCPallini26-Mar-08 4:08 
GeneralRe: PostMessage to a different thread's messageQueue Pin
rp_suman26-Mar-08 4:56
rp_suman26-Mar-08 4:56 
GeneralDrawing text with DirectDraw Pin
Hanan88826-Mar-08 0:43
Hanan88826-Mar-08 0:43 
GeneralRe: Drawing text with DirectDraw Pin
James R. Twine26-Mar-08 1:45
James R. Twine26-Mar-08 1:45 
GeneralRe: Drawing text with DirectDraw Pin
Hanan88826-Mar-08 1:51
Hanan88826-Mar-08 1:51 
AnswerRe: Drawing text with DirectDraw Pin
Hanan88826-Mar-08 3:11
Hanan88826-Mar-08 3:11 
GeneralRe: Drawing text with DirectDraw Pin
James R. Twine26-Mar-08 4:58
James R. Twine26-Mar-08 4:58 
GeneralRe: Drawing text with DirectDraw Pin
Hanan88826-Mar-08 5:39
Hanan88826-Mar-08 5:39 
GeneralRe: Drawing text with DirectDraw Pin
Stephen Hewitt26-Mar-08 13:54
Stephen Hewitt26-Mar-08 13:54 

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.