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. warning to make a choice for editBox

warning to make a choice for editBox

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • E Offline
    E Offline
    Emre Zorlu
    wrote on last edited by
    #1

    I can use if(ndx=m_comboBox.GetCurSel()==LB_ERR) { MessageBox("please,choose one of them !"); return; } for comboBox. How can I warn when I use editBox? emroz

    W D 3 Replies Last reply
    0
    • E Emre Zorlu

      I can use if(ndx=m_comboBox.GetCurSel()==LB_ERR) { MessageBox("please,choose one of them !"); return; } for comboBox. How can I warn when I use editBox? emroz

      W Offline
      W Offline
      wb
      wrote on last edited by
      #2

      CString s; m_editBox.GetWindowText(s); if(s.IsEmpty()){ ......... }

      1 Reply Last reply
      0
      • E Emre Zorlu

        I can use if(ndx=m_comboBox.GetCurSel()==LB_ERR) { MessageBox("please,choose one of them !"); return; } for comboBox. How can I warn when I use editBox? emroz

        W Offline
        W Offline
        wb
        wrote on last edited by
        #3

        I dont exactly understand what you want, but maybe: if(a!=c) ((atof(a)/atof(e))*(atof(e)-atof(f)))/(atof(a)-atof(c)) of you will get a div by zero bugy some day.

        1 Reply Last reply
        0
        • E Emre Zorlu

          I can use if(ndx=m_comboBox.GetCurSel()==LB_ERR) { MessageBox("please,choose one of them !"); return; } for comboBox. How can I warn when I use editBox? emroz

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          if (m_edit.GetWindowTextLength() == 0)
          MesssageBox("Please enter some text!", ...);

          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