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. Static problem

Static problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 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.
  • N Offline
    N Offline
    NewVC
    wrote on last edited by
    #1

    Hi All How can i call of new dialog box on click of Static box?Plz help me

    I J H 3 Replies Last reply
    0
    • N NewVC

      Hi All How can i call of new dialog box on click of Static box?Plz help me

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      1/ Make it a button, possibly with flat style. Then users will know it's a clickable thing. 2/ Set the SS_NOTIFY style, and your dialog will get messages that you've clicked on the static control. 3/ In the handler for that message, create a dialog any way you like. eg:

      CMyBabyDlg dlg (this)
      dlg.DoModal ();

      You might also want to look at a mutant static control turned into a hyperlink: http://www.codeproject.com/KB/miscctrl/hyperlink.aspx[^] (by Chris Maunder, so be nice about it) Good luck, Iain.

      1 Reply Last reply
      0
      • N NewVC

        Hi All How can i call of new dialog box on click of Static box?Plz help me

        J Offline
        J Offline
        Jijo Raj
        wrote on last edited by
        #3
        1. Add a static text to your dialog via resource editor. 2) Change its ID from IDC_STATIC to something else. Such as IDC_STATIC_DLG_LAUNCHER 3) Now enable the "Notify" property of static control. 4) Now by using class wizard add click handler for the control. 5) In the newly added control handler, create and show your dialog. basically for getting click notification from static controls, you've to change its default id from IDC_STATIC to something else and enabled the "Notify" property. Regards, Jijo.

        _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

        1 Reply Last reply
        0
        • N NewVC

          Hi All How can i call of new dialog box on click of Static box?Plz help me

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

          We usually use of Button control but do you want to know about create dialog or load dialog?

          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