Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. drawing errors caused by tooltip

drawing errors caused by tooltip

Scheduled Pinned Locked Moved C / C++ / MFC
helpgraphicstutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tbrake
    wrote on last edited by
    #1

    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.

    C T 2 Replies Last reply
    0
    • T tbrake

      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.

      C Offline
      C Offline
      cje
      wrote on last edited by
      #2

      maybe you could create a bitmap for your line drawing and then BLT the bitmap to the cDC?

      cje

      1 Reply Last reply
      0
      • T tbrake

        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.

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups