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. Some code fixes required

Some code fixes required

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
5 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.
  • C Offline
    C Offline
    chaitannya_m
    wrote on last edited by
    #1

    Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.

    _ H H 3 Replies Last reply
    0
    • C chaitannya_m

      Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      chaitannya_m wrote:

      1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell.

      It's already been done here[^]

      chaitannya_m wrote:

      2. How to get text from a dynamically created edit box.

      You would be having the id of the control when creating it. Use GetDlgItemText. virtual BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      1 Reply Last reply
      0
      • C chaitannya_m

        Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.

        H Offline
        H Offline
        Hamed Musavi
        wrote on last edited by
        #3

        Either this article http://www.codeproject.com/listctrl/listctrldemo.asp[^] or this one http://www.codeproject.com/listctrl/xlistctrl.asp[^] might help you. And for the dynamic editbox, you specified an ID for that when created. use that ID and

        GetDlgItem(ID)->GetWindowText();

        // "Life is very short and is very fragile also." Yanni
        while (I'm_alive)
        {
        cout<<"I love programming.";
        }

        1 Reply Last reply
        0
        • C chaitannya_m

          Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.

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

          Do you want to get text of listctrl or editbox?


          WhiteSky


          C 1 Reply Last reply
          0
          • H Hamid Taebi

            Do you want to get text of listctrl or editbox?


            WhiteSky


            C Offline
            C Offline
            chaitannya_m
            wrote on last edited by
            #5

            Do you want to get text of listctrl or editbox? -> Actually the edit box is in the list control.. so i guess i should have mentioned that earlier. Also i have tried XlistCtrl , it too complicated. Anyone can help me out there

            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