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. how to add MFC CStatic to a ATL project?

how to add MFC CStatic to a ATL project?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++questionvisual-studiohelp
6 Posts 4 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
    ThinkingPrometheus
    wrote on last edited by
    #1

    hiho@ll i try to do something like a newsticker on a browser helper object the problem is that the helper object is made using ATL and i want to use CStatic (because there are some classes, which scroll text using a CStatic) my problem is that CStatic is a MFC class and i need it for my ATL browser object!? are there alternatives or other controls i could use for my problem? btw, is it possible to convert my BHO to a MFC BHO? or is MFC BHO not supported by IE? if it's possible, how can i do it (easily, without troubles?) I'm using Visual Studio .NET thx

    J 1 Reply Last reply
    0
    • T ThinkingPrometheus

      hiho@ll i try to do something like a newsticker on a browser helper object the problem is that the helper object is made using ATL and i want to use CStatic (because there are some classes, which scroll text using a CStatic) my problem is that CStatic is a MFC class and i need it for my ATL browser object!? are there alternatives or other controls i could use for my problem? btw, is it possible to convert my BHO to a MFC BHO? or is MFC BHO not supported by IE? if it's possible, how can i do it (easily, without troubles?) I'm using Visual Studio .NET thx

      J Offline
      J Offline
      John M Drescher
      wrote on last edited by
      #2

      ThinkingPrometheus wrote: my problem is that CStatic is a MFC class and i need it for my ATL browser object!? You can not directly add a mfc class to ATL. John

      T 1 Reply Last reply
      0
      • J John M Drescher

        ThinkingPrometheus wrote: my problem is that CStatic is a MFC class and i need it for my ATL browser object!? You can not directly add a mfc class to ATL. John

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

        and how can i make just a simple static text control in ATL?

        J 1 Reply Last reply
        0
        • T ThinkingPrometheus

          and how can i make just a simple static text control in ATL?

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          You already have one.  A static control (STATIC) is a regular Windows control, just like BUTTON, EDIT, etc.    You are still going to have to do some drawing yourself; the regular static control works by characters, and does not "smooth scroll" like a news/stock ticker.    Peace! -=- James


          If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          DeleteFXPFiles & CheckFavorites (Please rate this post!)

          V 1 Reply Last reply
          0
          • J James R Twine

            You already have one.  A static control (STATIC) is a regular Windows control, just like BUTTON, EDIT, etc.    You are still going to have to do some drawing yourself; the regular static control works by characters, and does not "smooth scroll" like a news/stock ticker.    Peace! -=- James


            If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
            Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
            DeleteFXPFiles & CheckFavorites (Please rate this post!)

            V Offline
            V Offline
            vikas amin
            wrote on last edited by
            #5

            How do i use the STATIC in my ATL projects i am new to ATL. Vikas Amin Embin Technology Bombay vikas.amin@embin.com

            J 1 Reply Last reply
            0
            • V vikas amin

              How do i use the STATIC in my ATL projects i am new to ATL. Vikas Amin Embin Technology Bombay vikas.amin@embin.com

              J Offline
              J Offline
              James R Twine
              wrote on last edited by
              #6

              Using CreateWindow, you just specify the string _T( "STATIC" ) as the window class name, IIRC.    I think that ATL's window classes have a wrapper class for the static control.    Peace! -=- James


              If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
              Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
              DeleteFXPFiles & CheckFavorites (Please rate this post!)

              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