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. Can i set Float value to CLabelControl::SetCaption()

Can i set Float value to CLabelControl::SetCaption()

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 Posters 2 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.
  • R Offline
    R Offline
    raju_shiva
    wrote on last edited by
    #1

    Hi sir, Can i set the float caption to CLabelControl. means i want to pass a Flaot value to CLabelControl. i.e CLabelControl m_st; m_st.SetCaption(float value); /// Thanks Raj

    C 1 Reply Last reply
    0
    • R raju_shiva

      Hi sir, Can i set the float caption to CLabelControl. means i want to pass a Flaot value to CLabelControl. i.e CLabelControl m_st; m_st.SetCaption(float value); /// Thanks Raj

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

      I guess Setcaption should accept a CString. if that is the case, then you can format your float value to a string and then pass it to the SetCaption().

      -------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.

      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