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. Changeing the caption of form

Changeing the caption of form

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

    Hi again Sorry I should say that I want to change the caption of "Dialog based" FORM in visual C++ 6. I use SetWindowText but get exception. Regards Mahdi

    _ H V K R 6 Replies Last reply
    0
    • M mt_samiei

      Hi again Sorry I should say that I want to change the caption of "Dialog based" FORM in visual C++ 6. I use SetWindowText but get exception. Regards Mahdi

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

      You should follow the same thread Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      1 Reply Last reply
      0
      • M mt_samiei

        Hi again Sorry I should say that I want to change the caption of "Dialog based" FORM in visual C++ 6. I use SetWindowText but get exception. Regards Mahdi

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

        Can you be more specific whats error? and how to use SetWindowText_**


        **_

        whitesky


        1 Reply Last reply
        0
        • M mt_samiei

          Hi again Sorry I should say that I want to change the caption of "Dialog based" FORM in visual C++ 6. I use SetWindowText but get exception. Regards Mahdi

          V Offline
          V Offline
          Viorel
          wrote on last edited by
          #4

          You probably are calling SetWindowText in a wrong place. Try calling it in OnInitDialog at the end. Otherwise give us more details regarding the exception. Maybe the passed string is invalid?

          1 Reply Last reply
          0
          • M mt_samiei

            Hi again Sorry I should say that I want to change the caption of "Dialog based" FORM in visual C++ 6. I use SetWindowText but get exception. Regards Mahdi

            K Offline
            K Offline
            kakan
            wrote on last edited by
            #5

            The most likely reason for the exception is that the window isn't created. Call SetWindowText() from the OnInitDialog function.

            H 1 Reply Last reply
            0
            • M mt_samiei

              Hi again Sorry I should say that I want to change the caption of "Dialog based" FORM in visual C++ 6. I use SetWindowText but get exception. Regards Mahdi

              R Offline
              R Offline
              Renjith Ramachandran
              wrote on last edited by
              #6

              could u pls paste your code here ? Loka Samastha Sukhino Bhavanthu..!!! ( May all beings be happy and free )

              1 Reply Last reply
              0
              • M mt_samiei

                Hi again Sorry I should say that I want to change the caption of "Dialog based" FORM in visual C++ 6. I use SetWindowText but get exception. Regards Mahdi

                T Offline
                T Offline
                toxcct
                wrote on last edited by
                #7

                why did you ask this in a new thread instead of replying directly to the answers you get ? :suss:


                TOXCCT >>> GEII power

                [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                1 Reply Last reply
                0
                • K kakan

                  The most likely reason for the exception is that the window isn't created. Call SetWindowText() from the OnInitDialog function.

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

                  yes my guess is exception maybe he dont have window_**


                  **_

                  whitesky


                  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