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. Button with Icon on it

Button with Icon on it

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

    hi well, I am trying to do the following: I put a button on the dialog and associated it with exe file that is: void CMyView::CMyButton() { CIniReader ini; ini.setINIFileName("./gm.ini"); CString ttl; ttl = ini.getKeyValue("total", "path"); WinExec(ttl,SW_SHOWNORMAL); // change the path in .ini file //WinExec("D:\\Misc\\StarCraft\\StarCraft.exe", SW_SHOWNORMAL); } I have drawn the icon on the button (found the article for Button Image here). It works. but, how to make the program so that when I change the .exe to execute in ini file, the icon on the button take the icon of exe

    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