Click here to Skip to main content
15,901,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to read an XML file in C++.? Pin
Richard MacCutchan12-Aug-15 1:58
mveRichard MacCutchan12-Aug-15 1:58 
AnswerRe: How to read an XML file in C++.? Pin
Ujesh Mohanan12-Aug-15 2:05
Ujesh Mohanan12-Aug-15 2:05 
AnswerRe: How to read an XML file in C++.? Pin
DavidBaird12-Aug-15 13:29
DavidBaird12-Aug-15 13:29 
AnswerRe: How to read an XML file in C++.? Pin
Maximilien17-Aug-15 3:36
Maximilien17-Aug-15 3:36 
AnswerRe: How to read an XML file in C++.? Pin
Peter Weyzen17-Aug-15 4:54
Peter Weyzen17-Aug-15 4:54 
QuestionManabJB Pin
Member 1189993510-Aug-15 16:05
Member 1189993510-Aug-15 16:05 
QuestionRe: ManabJB Pin
CPallini10-Aug-15 21:42
mveCPallini10-Aug-15 21:42 
AnswerRe: ManabJB Pin
Member 1189993511-Aug-15 5:25
Member 1189993511-Aug-15 5:25 
GeneralRe: ManabJB Pin
Richard MacCutchan11-Aug-15 5:32
mveRichard MacCutchan11-Aug-15 5:32 
GeneralRe: ManabJB Pin
Member 1189993511-Aug-15 5:34
Member 1189993511-Aug-15 5:34 
QuestionC++ reverse engineering Pin
luca_2000it7-Aug-15 0:49
luca_2000it7-Aug-15 0:49 
AnswerRe: C++ reverse engineering Pin
CPallini7-Aug-15 0:54
mveCPallini7-Aug-15 0:54 
QuestionDialog controls not showing up on a child dialog Pin
Kiran Satish6-Aug-15 7:54
Kiran Satish6-Aug-15 7:54 
AnswerRe: Dialog controls not showing up on a child dialog Pin
Richard MacCutchan6-Aug-15 21:50
mveRichard MacCutchan6-Aug-15 21:50 
GeneralRe: Dialog controls not showing up on a child dialog Pin
Kiran Satish7-Aug-15 5:47
Kiran Satish7-Aug-15 5:47 
AnswerRe: Dialog controls not showing up on a child dialog Pin
Graham Breach7-Aug-15 1:56
Graham Breach7-Aug-15 1:56 
QuestionTooltip behind dialog Pin
_Flaviu5-Aug-15 0:31
_Flaviu5-Aug-15 0:31 
Which could be the reason why a tooltip is layered behind the dialog ?
Here is the implementation:
C++
class CNotifyDlg : public CAlertDialog
{
	CToolTipCtrl m_ToolTip;
}

and
C++
BOOL CNotifyDlg::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class

	switch(pMsg->message)
	{
		case WM_LBUTTONDOWN:		
		case WM_LBUTTONUP:		
		case WM_MOUSEMOVE:
			m_ToolTip.RelayEvent(pMsg);
	}

	return CAlertDialog::PreTranslateMessage(pMsg);
}
BOOL CNotifyDlg::OnInitDialog()
{
	CAlertDialog::OnInitDialog();

	m_ToolTip.Create(this);
	m_ToolTip.AddTool(GetDlgItem(IDCANCEL), _T("My message"));
	m_ToolTip.Activate(TRUE);

	return TRUE;
}

LRESULT CNotifyDlg::OnButtonMouseOver(WPARAM wParam, LPARAM lParam)
{
	if(m_btnClose.GetDlgCtrlID() == (int)wParam)
		m_ToolTip.UpdateTipText(_T("My message again"), GetDlgItem(IDCANCEL));
	m_ToolTip.Update();

	return 0;
}

and I see the tooltip window, but is just behind the dialog ... I can not figure out why is happen this ...

CAlertDialog is derived from CDialog ... what I have done wrong here ? Could you help me ?
Thank you.
AnswerRe: Tooltip behind dialog Pin
Jochen Arndt5-Aug-15 1:41
professionalJochen Arndt5-Aug-15 1:41 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 1:52
_Flaviu5-Aug-15 1:52 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 2:10
_Flaviu5-Aug-15 2:10 
GeneralRe: Tooltip behind dialog Pin
Jochen Arndt5-Aug-15 2:13
professionalJochen Arndt5-Aug-15 2:13 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 2:17
_Flaviu5-Aug-15 2:17 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 2:27
_Flaviu5-Aug-15 2:27 
GeneralRe: Tooltip behind dialog Pin
_Flaviu9-Sep-15 21:43
_Flaviu9-Sep-15 21:43 
GeneralRe: Tooltip behind dialog Pin
Jochen Arndt9-Sep-15 22:28
professionalJochen Arndt9-Sep-15 22:28 

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.