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. Changing the caption of start button

Changing the caption of start button

Scheduled Pinned Locked Moved C / C++ / MFC
c++
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Desktop also a window in VC++. Can we write a program to capture it, and can we change the caption of start button. If so please tell me the procedure. Thanking you

    E S 2 Replies Last reply
    0
    • L Lost User

      Desktop also a window in VC++. Can we write a program to capture it, and can we change the caption of start button. If so please tell me the procedure. Thanking you

      E Offline
      E Offline
      Erik Funkenbusch
      wrote on last edited by
      #2

      It's possible, but this requires a lot of work, since the start button is an owner drawn button. You would need to subclass the button, then do your own painting. What you would need to do is enumerate the desktop windows child windows looking for the Shell_TrayWnd, then enumerate the Shell_TrayWnd's child windows looking for a window with the button class. Once you get that HWND, can then sublcass it into a CButton using CButton::Attach

      1 Reply Last reply
      0
      • L Lost User

        Desktop also a window in VC++. Can we write a program to capture it, and can we change the caption of start button. If so please tell me the procedure. Thanking you

        S Offline
        S Offline
        SpiderMan
        wrote on last edited by
        #3

        If you would like an example go to: http://homepage1.nifty.com/kazubon/tclock/indexe.html

        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