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. plz help::Onclick event

plz help::Onclick event

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
6 Posts 5 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.
  • S Offline
    S Offline
    Sushant_Mathur
    wrote on last edited by
    #1

    Hi!!Actually i am newbie in this VC++ area and for my project i want to make a button and onclick some page will open.i know that there is a class called CButton but don't know how to use this.:(( Thanks in advance

    T V T 3 Replies Last reply
    0
    • S Sushant_Mathur

      Hi!!Actually i am newbie in this VC++ area and for my project i want to make a button and onclick some page will open.i know that there is a class called CButton but don't know how to use this.:(( Thanks in advance

      T Offline
      T Offline
      The NULL Developer
      wrote on last edited by
      #2

      use mfc wizard to do these things for u...for more, search web or buy some "newbie" book "Do first things first, and second things not at all." — Peter Drucker.

      1 Reply Last reply
      0
      • S Sushant_Mathur

        Hi!!Actually i am newbie in this VC++ area and for my project i want to make a button and onclick some page will open.i know that there is a class called CButton but don't know how to use this.:(( Thanks in advance

        V Offline
        V Offline
        vikas amin
        wrote on last edited by
        #3

        If u r trying by SDK then u need some books to refer fist . If u use a MFC ,then Use a class wizard to create a new project in MFC (SDI) Then create a dialog box from resource editor ,create a class for ur dialog box say CDlg_myname . Create a Object of the dialogbox class and use this code in ur CMainFrm OnShow() event . CDlg_myname dlg1; Dlg1.DoModel(); :cool: Vikas Amin Embin Technology Bombay vikas.amin@embin.com

        1 Reply Last reply
        0
        • S Sushant_Mathur

          Hi!!Actually i am newbie in this VC++ area and for my project i want to make a button and onclick some page will open.i know that there is a class called CButton but don't know how to use this.:(( Thanks in advance

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

          on the resource editor, you can drag a button from the toolbox to your dialog resource, give it an explicit ID and then double click on it to access its OnClick event handler... there, add the code that is to be executed when the button is clicked on...

          SushantM wrote:

          some page will open

          what do you mean by this ?


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          S 1 Reply Last reply
          0
          • T toxcct

            on the resource editor, you can drag a button from the toolbox to your dialog resource, give it an explicit ID and then double click on it to access its OnClick event handler... there, add the code that is to be executed when the button is clicked on...

            SushantM wrote:

            some page will open

            what do you mean by this ?


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

            S Offline
            S Offline
            Smith
            wrote on last edited by
            #5

            he means 'some page' regards, Rookie

            T 1 Reply Last reply
            0
            • S Smith

              he means 'some page' regards, Rookie

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

              yeah, thank you very much rookieee, i still can read properly ;P:doh:


              TOXCCT >>> GEII power
              [toxcct][VisualCalc]

              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