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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IP address box

IP address box

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

    i want to implement non-MFC based IP address box. i tried the following as advised by Alok when i posted the mail earliar. i tried to implement the IP address using the following code hWnd = CreateWindowEx(NULL,ClsName,WndName,WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 200, NULL, NULL, GetModuleHandle(NULL), NULL); HWND IPAddrWindow = CreateWindow("SysIPAddress32",NULL, WS_VISIBLE|WS_CHILD,35,55,250,30,hWnd,NULL,NULL,NULL); But the IP Address box is not created... only the blank base window is displayed. where am i wrong? thanx in advance

    D 1 Reply Last reply
    0
    • A ask_you

      i want to implement non-MFC based IP address box. i tried the following as advised by Alok when i posted the mail earliar. i tried to implement the IP address using the following code hWnd = CreateWindowEx(NULL,ClsName,WndName,WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 200, NULL, NULL, GetModuleHandle(NULL), NULL); HWND IPAddrWindow = CreateWindow("SysIPAddress32",NULL, WS_VISIBLE|WS_CHILD,35,55,250,30,hWnd,NULL,NULL,NULL); But the IP Address box is not created... only the blank base window is displayed. where am i wrong? thanx in advance

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

      ask_you wrote: But the IP Address box is not created... only the blank base window is displayed. where am i wrong? Where is the code, if necessary, to create the four edit controls? They are child windows of the "SysIPAddress32" window.


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      A 1 Reply Last reply
      0
      • D David Crow

        ask_you wrote: But the IP Address box is not created... only the blank base window is displayed. where am i wrong? Where is the code, if necessary, to create the four edit controls? They are child windows of the "SysIPAddress32" window.


        "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

        A Offline
        A Offline
        ask_you
        wrote on last edited by
        #3

        thanx for the reply. but i still don't know what is needed to be done. so SysIPAddress32 is not a default class like BUTTON? is it user created? that is, i have to create the IP address box?

        A D 2 Replies Last reply
        0
        • A ask_you

          thanx for the reply. but i still don't know what is needed to be done. so SysIPAddress32 is not a default class like BUTTON? is it user created? that is, i have to create the IP address box?

          A Offline
          A Offline
          ask_you
          wrote on last edited by
          #4

          anyways, i was successful in creating IP box!! thanx

          D 1 Reply Last reply
          0
          • A ask_you

            thanx for the reply. but i still don't know what is needed to be done. so SysIPAddress32 is not a default class like BUTTON? is it user created? that is, i have to create the IP address box?

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

            ask_you wrote: but i still don't know what is needed to be done. How about calling:

            INITCOMMONCONTROLSEX iccex;
            iccex.dwSize = sizeof(iccex);
            iccex.dwICC = ICC_INTERNET_CLASSES;
            InitCommonControlsEx(&iccex);


            "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

            A 1 Reply Last reply
            0
            • A ask_you

              anyways, i was successful in creating IP box!! thanx

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

              Ok, so what was the missing ingredient?


              "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

              1 Reply Last reply
              0
              • D David Crow

                ask_you wrote: but i still don't know what is needed to be done. How about calling:

                INITCOMMONCONTROLSEX iccex;
                iccex.dwSize = sizeof(iccex);
                iccex.dwICC = ICC_INTERNET_CLASSES;
                InitCommonControlsEx(&iccex);


                "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

                A Offline
                A Offline
                ask_you
                wrote on last edited by
                #7

                DavidCrow wrote: INITCOMMONCONTROLSEX iccex; iccex.dwSize = sizeof(iccex); iccex.dwICC = ICC_INTERNET_CLASSES; InitCommonControlsEx(&iccex); well, this was exactly what i had done? anyway, thanx.

                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