drawing errors caused by tooltip
-
Dear List I have a problem while i'm drawing lines into my Childview. Some background: i'm Meassuring some events and the result is plotted to the view. Fore that i use:
void someMethod(long color) { CClientDC cDC(this); OnPrepareDC(&cDC); CPen pen(PS_SOLID,1,color); cDC.SelectObject(&pen); // Allwayes as Pair cDC.MoveTo(from_pt); cDC.LineTo(to_pt); }
I Use this method quiet offten (recalled after 25 milliseconds). So fine. Now moving the mouse over the toolbar is fine until the tool tip (or any tool tip belonging to the mainframe) is shown. It seems like the tooltip is shown between MoveTo and LineTo. So it might the easiest for me ether to deactivate tooltips at all - i don't know how to do this - or to have another possibility to draw a line. Please any suggestions might help THX Tim PS Oh i forget to say not all Window machines behave the same way - i mean on some machines this happens on others not. -
Dear List I have a problem while i'm drawing lines into my Childview. Some background: i'm Meassuring some events and the result is plotted to the view. Fore that i use:
void someMethod(long color) { CClientDC cDC(this); OnPrepareDC(&cDC); CPen pen(PS_SOLID,1,color); cDC.SelectObject(&pen); // Allwayes as Pair cDC.MoveTo(from_pt); cDC.LineTo(to_pt); }
I Use this method quiet offten (recalled after 25 milliseconds). So fine. Now moving the mouse over the toolbar is fine until the tool tip (or any tool tip belonging to the mainframe) is shown. It seems like the tooltip is shown between MoveTo and LineTo. So it might the easiest for me ether to deactivate tooltips at all - i don't know how to do this - or to have another possibility to draw a line. Please any suggestions might help THX Tim PS Oh i forget to say not all Window machines behave the same way - i mean on some machines this happens on others not. -
Dear List I have a problem while i'm drawing lines into my Childview. Some background: i'm Meassuring some events and the result is plotted to the view. Fore that i use:
void someMethod(long color) { CClientDC cDC(this); OnPrepareDC(&cDC); CPen pen(PS_SOLID,1,color); cDC.SelectObject(&pen); // Allwayes as Pair cDC.MoveTo(from_pt); cDC.LineTo(to_pt); }
I Use this method quiet offten (recalled after 25 milliseconds). So fine. Now moving the mouse over the toolbar is fine until the tool tip (or any tool tip belonging to the mainframe) is shown. It seems like the tooltip is shown between MoveTo and LineTo. So it might the easiest for me ether to deactivate tooltips at all - i don't know how to do this - or to have another possibility to draw a line. Please any suggestions might help THX Tim PS Oh i forget to say not all Window machines behave the same way - i mean on some machines this happens on others not.tbrake wrote:
So it might the easiest for me ether to deactivate tooltips at all
call CToolBarCtrl::GetToolTips to get CToolTips class pointer associated with the Toolbar and then Call CToolTipCtrl::Activate() to deactivate it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You