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. want some help [modified]

want some help [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
8 Posts 6 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.
  • P Offline
    P Offline
    p_
    wrote on last edited by
    #1

    tel me one thing as i am new to vc++ so i face a problem of how can an edit box is disabled from other form which has menu and i want to click on menu that is popup and has one option that is delete when i click on delete it will display next dialog box and then also make some edit control disabled which are on that dialog box plz anybody help me in this regard as i try some but not find success NOTE: plz give in detail as i know only connecting forks in vc++ //////////////////////now look at this/////////////////////// yar why u domnt undestand i want to disable my edit control which is on one form(dailog) and i want to disable it from menu which is on other form is it possible hi -- modified at 10:05 Monday 5th June, 2006

    H A D T 4 Replies Last reply
    0
    • P p_

      tel me one thing as i am new to vc++ so i face a problem of how can an edit box is disabled from other form which has menu and i want to click on menu that is popup and has one option that is delete when i click on delete it will display next dialog box and then also make some edit control disabled which are on that dialog box plz anybody help me in this regard as i try some but not find success NOTE: plz give in detail as i know only connecting forks in vc++ //////////////////////now look at this/////////////////////// yar why u domnt undestand i want to disable my edit control which is on one form(dailog) and i want to disable it from menu which is on other form is it possible hi -- modified at 10:05 Monday 5th June, 2006

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

      for disable control use EnableWindow and whats application type i answer to like question one hours ago if your program is CDialog use like this if main class CMyView use this code in another form CMyView* view = (CMyView* )GetParent(); view->somefunction(); and for set text use SetWindowText_**


      **_

      whitesky


      Y 1 Reply Last reply
      0
      • P p_

        tel me one thing as i am new to vc++ so i face a problem of how can an edit box is disabled from other form which has menu and i want to click on menu that is popup and has one option that is delete when i click on delete it will display next dialog box and then also make some edit control disabled which are on that dialog box plz anybody help me in this regard as i try some but not find success NOTE: plz give in detail as i know only connecting forks in vc++ //////////////////////now look at this/////////////////////// yar why u domnt undestand i want to disable my edit control which is on one form(dailog) and i want to disable it from menu which is on other form is it possible hi -- modified at 10:05 Monday 5th June, 2006

        A Offline
        A Offline
        Alton Williams
        wrote on last edited by
        #3

        paras_s12 wrote:

        so i face a problem of how can an edit box is disabled from other form which has menu and i want to click on menu that is popup and has one option that is delete when i click on delete it will display next dialog box and then also make some edit control disabled which are on that dialog box plz anybody help me in this regard as i try some but not find success

        I'm sorry I don't understand your objectives

        1 Reply Last reply
        0
        • P p_

          tel me one thing as i am new to vc++ so i face a problem of how can an edit box is disabled from other form which has menu and i want to click on menu that is popup and has one option that is delete when i click on delete it will display next dialog box and then also make some edit control disabled which are on that dialog box plz anybody help me in this regard as i try some but not find success NOTE: plz give in detail as i know only connecting forks in vc++ //////////////////////now look at this/////////////////////// yar why u domnt undestand i want to disable my edit control which is on one form(dailog) and i want to disable it from menu which is on other form is it possible hi -- modified at 10:05 Monday 5th June, 2006

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          paras_s12 wrote:

          i want to disable my edit control...

          Use EnableWindow(FALSE).


          "The largest fire starts but with the smallest spark." - David Crow

          1 Reply Last reply
          0
          • P p_

            tel me one thing as i am new to vc++ so i face a problem of how can an edit box is disabled from other form which has menu and i want to click on menu that is popup and has one option that is delete when i click on delete it will display next dialog box and then also make some edit control disabled which are on that dialog box plz anybody help me in this regard as i try some but not find success NOTE: plz give in detail as i know only connecting forks in vc++ //////////////////////now look at this/////////////////////// yar why u domnt undestand i want to disable my edit control which is on one form(dailog) and i want to disable it from menu which is on other form is it possible hi -- modified at 10:05 Monday 5th June, 2006

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            paras_s12 wrote:

            yar why u domnt undestand i want to disable my edit control which is on one form(dailog) and i want to disable it from menu which is on other form is it possible

            OnClick Handller of Menu.. post message to other dialog where you button is Present. in handller of the posted message using EnableWindow disable the Button. api to use PostMessage and EnableWindow!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

            P 1 Reply Last reply
            0
            • T ThatsAlok

              paras_s12 wrote:

              yar why u domnt undestand i want to disable my edit control which is on one form(dailog) and i want to disable it from menu which is on other form is it possible

              OnClick Handller of Menu.. post message to other dialog where you button is Present. in handller of the posted message using EnableWindow disable the Button. api to use PostMessage and EnableWindow!

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

              P Offline
              P Offline
              p_
              wrote on last edited by
              #6

              plz tell me where is the onclick handler of menu i dont find message handler option for menu as there is option for the classes but menu does not contain onclick handler tel me and how can i disable edit controlon oter dialog box from menu on another dialog box hi

              1 Reply Last reply
              0
              • H Hamid Taebi

                for disable control use EnableWindow and whats application type i answer to like question one hours ago if your program is CDialog use like this if main class CMyView use this code in another form CMyView* view = (CMyView* )GetParent(); view->somefunction(); and for set text use SetWindowText_**


                **_

                whitesky


                Y Offline
                Y Offline
                yogendra kaushik
                wrote on last edited by
                #7

                if main class CMyView use this code in another form CMyView* view = (CMyView* )GetParent(); view->somefunction(); and for set text use SetWindowText oK I USE THIS ONE WAT TEL ME ONE THING THAT view->somefunction(); WAT somefunction(); I CALL HERE TO DO SOLVE PROBLEM gourav dogra jfjunf

                H 1 Reply Last reply
                0
                • Y yogendra kaushik

                  if main class CMyView use this code in another form CMyView* view = (CMyView* )GetParent(); view->somefunction(); and for set text use SetWindowText oK I USE THIS ONE WAT TEL ME ONE THING THAT view->somefunction(); WAT somefunction(); I CALL HERE TO DO SOLVE PROBLEM gourav dogra jfjunf

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

                  I dont understand view->somefunction(); instead somefunction you can use from your variables or functions in another dialog_**


                  **_

                  whitesky


                  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