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. regarding statusbar display

regarding statusbar display

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
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.
  • M Offline
    M Offline
    mirraa
    wrote on last edited by
    #1

    In my program i'm creating an editor like visualc++.. in this u can display the line no,column no of the editor part in statusbar ..the editor is based on scintilla..below to that editor i'm having an output window exactly like the output window of vc++.. so if i keep the mouse in output window and if i move the cursor it should show that corresponding line nd colmn no.. the output window is a richedit control... i'm having code for detecting line no nd colmn no... but how will detect that the cursor is in mainwindow or output window so that i can display the corresponding lineno,colmn no in the status bar? aqny help..thanx in advance...

    H K 2 Replies Last reply
    0
    • M mirraa

      In my program i'm creating an editor like visualc++.. in this u can display the line no,column no of the editor part in statusbar ..the editor is based on scintilla..below to that editor i'm having an output window exactly like the output window of vc++.. so if i keep the mouse in output window and if i move the cursor it should show that corresponding line nd colmn no.. the output window is a richedit control... i'm having code for detecting line no nd colmn no... but how will detect that the cursor is in mainwindow or output window so that i can display the corresponding lineno,colmn no in the status bar? aqny help..thanx in advance...

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Can you use of WM_MOUSEMOVE on the output window then you can use of CPoint for get x and y position of mouse and then set status bar.


      WhiteSky


      1 Reply Last reply
      0
      • M mirraa

        In my program i'm creating an editor like visualc++.. in this u can display the line no,column no of the editor part in statusbar ..the editor is based on scintilla..below to that editor i'm having an output window exactly like the output window of vc++.. so if i keep the mouse in output window and if i move the cursor it should show that corresponding line nd colmn no.. the output window is a richedit control... i'm having code for detecting line no nd colmn no... but how will detect that the cursor is in mainwindow or output window so that i can display the corresponding lineno,colmn no in the status bar? aqny help..thanx in advance...

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        in the window you have WM_MOUSEMOCE else with TrackMouseEvent(...) you can get a message when leaving for window.

        Greetings from Germany

        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