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. IP address control

IP address control

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

    how to differenciate the empty value (. . . .) and 0.0.0.0 in ip address control. I used CWnd* pwndCtrl = GetFocus(); int ctrl_ID = pwndCtrl->GetDlgCtrlID(); if (!((CIPAddressCtrl*)pwndCtrl)->IsBlank()) but it treat the . . . . and 0.0.0.0 values as same.

    T 1 Reply Last reply
    0
    • P prathuraj

      how to differenciate the empty value (. . . .) and 0.0.0.0 in ip address control. I used CWnd* pwndCtrl = GetFocus(); int ctrl_ID = pwndCtrl->GetDlgCtrlID(); if (!((CIPAddressCtrl*)pwndCtrl)->IsBlank()) but it treat the . . . . and 0.0.0.0 values as same.

      T Offline
      T Offline
      TariqZ
      wrote on last edited by
      #2

      You are not initializing the control. Use ClearAddress() function in OnInitDialog(). It will display 0.0.0.0 from start.

      U 1 Reply Last reply
      0
      • T TariqZ

        You are not initializing the control. Use ClearAddress() function in OnInitDialog(). It will display 0.0.0.0 from start.

        U Offline
        U Offline
        User 13057779
        wrote on last edited by
        #3

        after calling the Clearaddress() also its not displaying the 0.0.0.0 CWnd* pwndCtrl = GetFocus(); ((CIPAddressCtrl*)pwndCtrl)->ClearAddress(); could you please suggest

        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