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. Setting Window Name in CWnd Object

Setting Window Name in CWnd Object

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

    Hi, Would anyone know in which of the overrideable methods can I set the Window Name ?? ::SetWindowText just seems to set the Text When I do I a FindWindow for that string I dont seem to find it

    _ H A 3 Replies Last reply
    0
    • F ForNow

      Hi, Would anyone know in which of the overrideable methods can I set the Window Name ?? ::SetWindowText just seems to set the Text When I do I a FindWindow for that string I dont seem to find it

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

      What exactly do you mean by Window Name if you're not referring to its text/title?

      «_Superman_» I love work. It gives me something to do between weekends.

      1 Reply Last reply
      0
      • F ForNow

        Hi, Would anyone know in which of the overrideable methods can I set the Window Name ?? ::SetWindowText just seems to set the Text When I do I a FindWindow for that string I dont seem to find it

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

        I dont undrestand what do you need?

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        F 1 Reply Last reply
        0
        • H Hamid Taebi

          I dont undrestand what do you need?

          Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

          F Offline
          F Offline
          ForNow
          wrote on last edited by
          #4

          I am converting a program I wrote in C to MFC In C I used CreateWindow to Create the Main Window and the Second Param LPCTSTR lpWindowName, Was the Window Name I am able to Do A FindWindow on this to get the Window Handle When I converted the Program to MFC the Wizard Creatred a bucnh of Objects Cwnd .. (guess for the Client Are .. CFrameWnd for the Frame I guess I was looking for Where .. Some overrideable method to insert the Window Title When I tried doing it durning ::OnCreate using SetWindowText the Window title Displayed but the FindWidnow didn't get the Window Handle Durning PreCreateWindow setting the Window name by setting lpszName memeber of CreateStruct structure The Program bombed I am using FindWidow in Dos App to Do IPC with the GUI PROGRAM thankx

          1 Reply Last reply
          0
          • F ForNow

            Hi, Would anyone know in which of the overrideable methods can I set the Window Name ?? ::SetWindowText just seems to set the Text When I do I a FindWindow for that string I dont seem to find it

            A Offline
            A Offline
            A_xin
            wrote on last edited by
            #5

            FindWindowEx

            F 2 Replies Last reply
            0
            • A A_xin

              FindWindowEx

              F Offline
              F Offline
              ForNow
              wrote on last edited by
              #6

              I'll try it out

              1 Reply Last reply
              0
              • A A_xin

                FindWindowEx

                F Offline
                F Offline
                ForNow
                wrote on last edited by
                #7

                Just looked up the API on MSDN for this API I need the Class name in My Case I used AFXregisterclassname

                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