Click here to Skip to main content
14,449,221 members

C / C++ / MFC

 
QuestionTooltip behind dialog Pin
_Flaviu5-Aug-15 1:31
Member_Flaviu5-Aug-15 1:31 
AnswerRe: Tooltip behind dialog Pin
Jochen Arndt5-Aug-15 2:41
professionalJochen Arndt5-Aug-15 2:41 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 2:52
Member_Flaviu5-Aug-15 2:52 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 3:10
Member_Flaviu5-Aug-15 3:10 
GeneralRe: Tooltip behind dialog Pin
Jochen Arndt5-Aug-15 3:13
professionalJochen Arndt5-Aug-15 3:13 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 3:17
Member_Flaviu5-Aug-15 3:17 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 3:27
Member_Flaviu5-Aug-15 3:27 
GeneralRe: Tooltip behind dialog Pin
_Flaviu9-Sep-15 22:43
Member_Flaviu9-Sep-15 22:43 
Hi Johen. After all, I can not give up SWP_NOOWNERZORDER flag ... It should be there, but I want to ask you what is the best solution to put tooltip above CDialog which has SWP_NOOWNERZORDER flag:
SetWindowPos(
   FindWindow(_T("Shell_TrayWnd"), _T("")),
   m_nStartPosX,
   m_nStartPosY,
   rc.Width(),
   rc.Height(),
   SWP_NOOWNERZORDER | SWP_NOACTIVATE);


the solution was the following:
BOOL CNotifyDlg::OnInitDialog()
{
   CAlertDialog::OnInitDialog();

   m_ToolTip.Create(this, TTS_ALWAYSTIP | TTS_NOPREFIX);
   m_ToolTip.AddTool(GetDlgItem(IDCANCEL), _T("Close this notification"));
   m_ToolTip.Activate(TRUE);
   m_ToolTip.SetWindowPos(&CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOOWNERZORDER | SWP_NOSIZE);

   return TRUE;
}

It is ok ? To be frank, I don't like idea to setup tooltip as top level window ... there is another solution ?

Flaviu.
GeneralRe: Tooltip behind dialog Pin
Jochen Arndt9-Sep-15 23:28
professionalJochen Arndt9-Sep-15 23:28 
GeneralRe: Tooltip behind dialog Pin
_Flaviu10-Sep-15 1:06
Member_Flaviu10-Sep-15 1:06 
QuestionTimer interrupt handler on SAM3x8e – Arduino Due Pin
Vaclav_4-Aug-15 5:25
MemberVaclav_4-Aug-15 5:25 
AnswerRe: Timer interrupt handler on SAM3x8e – Arduino Due Pin
CPallini4-Aug-15 7:29
mveCPallini4-Aug-15 7:29 
GeneralSOLVED Re: Timer interrupt handler on SAM3x8e – Arduino Due Pin
Vaclav_4-Aug-15 8:38
MemberVaclav_4-Aug-15 8:38 
GeneralRe: SOLVED Re: Timer interrupt handler on SAM3x8e – Arduino Due Pin
CPallini4-Aug-15 10:50
mveCPallini4-Aug-15 10:50 
QuestionComplex code in conditionals Pin
charlieg4-Aug-15 1:08
Membercharlieg4-Aug-15 1:08 
QuestionRe: Complex code in conditionals Pin
CPallini4-Aug-15 1:20
mveCPallini4-Aug-15 1:20 
AnswerRe: Complex code in conditionals Pin
charlieg4-Aug-15 2:37
Membercharlieg4-Aug-15 2:37 
AnswerRe: Complex code in conditionals Pin
Richard MacCutchan4-Aug-15 1:26
communityengineerRichard MacCutchan4-Aug-15 1:26 
GeneralRe: Complex code in conditionals Pin
charlieg4-Aug-15 2:41
Membercharlieg4-Aug-15 2:41 
GeneralRe: Complex code in conditionals Pin
Richard MacCutchan4-Aug-15 3:44
communityengineerRichard MacCutchan4-Aug-15 3:44 
GeneralRe: Complex code in conditionals Pin
charlieg4-Aug-15 7:22
Membercharlieg4-Aug-15 7:22 
AnswerRe: Complex code in conditionals Pin
Stefan_Lang11-Aug-15 3:34
mveStefan_Lang11-Aug-15 3:34 
Questionstrcpy dilemma - it works half way Pin
Vaclav_3-Aug-15 16:19
MemberVaclav_3-Aug-15 16:19 
GeneralRe: strcpy dilemma - it works half way Pin
PIEBALDconsult3-Aug-15 17:12
professionalPIEBALDconsult3-Aug-15 17:12 
AnswerRe: strcpy dilemma - it works half way Pin
Richard MacCutchan3-Aug-15 21:48
communityengineerRichard MacCutchan3-Aug-15 21:48 

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.