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. MFC Grid control 2.26

MFC Grid control 2.26

Scheduled Pinned Locked Moved C / C++ / MFC
c++css
18 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.
  • H Hamid Taebi

    Does identify of IDC_CUSTOM3 is unique on the resource file?

    C Offline
    C Offline
    capint
    wrote on last edited by
    #9

    Yes :(

    H 1 Reply Last reply
    0
    • C capint

      Yes :(

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

      Did you use of breakpoints for trace your code line to line and if yes did you see which line has error?

      C 1 Reply Last reply
      0
      • H Hamid Taebi

        Did you use of breakpoints for trace your code line to line and if yes did you see which line has error?

        C Offline
        C Offline
        capint
        wrote on last edited by
        #11

        When I debug, the debugger stop at the line : ASSERT(pWnd->m_hWnd == NULL); in the file wincore.cpp I used : grid.Create(rect, this, 1); I don't know if the handle of window parent is true or false :confused:

        H 1 Reply Last reply
        0
        • C capint

          When I debug, the debugger stop at the line : ASSERT(pWnd->m_hWnd == NULL); in the file wincore.cpp I used : grid.Create(rect, this, 1); I don't know if the handle of window parent is true or false :confused:

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

          It seems that you have a null hwnd does grid.Create(rect, this, 1);(and did you see that rect and this are valid or they are empty) has return value if yes what is it and do you want to use of MFC grid on your project or when you want to compile it you got this error?

          C 1 Reply Last reply
          0
          • H Hamid Taebi

            It seems that you have a null hwnd does grid.Create(rect, this, 1);(and did you see that rect and this are valid or they are empty) has return value if yes what is it and do you want to use of MFC grid on your project or when you want to compile it you got this error?

            C Offline
            C Offline
            capint
            wrote on last edited by
            #13

            The error doesn't come from my project because I just create a blank based dialog. Of course, rect & this are valid ( I use the pointer this in OnInitDialog()) I uploaded my file so that you can see clearly : http://www.mediafire.com/?ijb5p1vxgme[^] Plz help me :-O

            H 3 Replies Last reply
            0
            • C capint

              The error doesn't come from my project because I just create a blank based dialog. Of course, rect & this are valid ( I use the pointer this in OnInitDialog()) I uploaded my file so that you can see clearly : http://www.mediafire.com/?ijb5p1vxgme[^] Plz help me :-O

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

              You must wait until I compile your project.

              1 Reply Last reply
              0
              • C capint

                The error doesn't come from my project because I just create a blank based dialog. Of course, rect & this are valid ( I use the pointer this in OnInitDialog()) I uploaded my file so that you can see clearly : http://www.mediafire.com/?ijb5p1vxgme[^] Plz help me :-O

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

                compile your code with /* CGridCtrl grid; RECT rect; rect.top = 10; rect.left = 10; rect.bottom = 50; rect. right = 50; //CWnd * pWnd; //pWnd->GetParent(); grid.Create(rect, this, 1); */ For test insert these statement grid.InsertColumn(_T("111")); grid.InsertColumn(_T("111")); grid.InsertColumn(_T("111")); grid.InsertRow(_T("112")); grid.InsertRow(_T("112")); grid.InsertRow(_T("112")); ;P

                1 Reply Last reply
                0
                • C capint

                  The error doesn't come from my project because I just create a blank based dialog. Of course, rect & this are valid ( I use the pointer this in OnInitDialog()) I uploaded my file so that you can see clearly : http://www.mediafire.com/?ijb5p1vxgme[^] Plz help me :-O

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

                  Does your problem solve?

                  C 1 Reply Last reply
                  0
                  • H Hamid Taebi

                    Does your problem solve?

                    C Offline
                    C Offline
                    capint
                    wrote on last edited by
                    #17

                    Oh thanks so much. I thought we have to use Create :d

                    H 1 Reply Last reply
                    0
                    • C capint

                      Oh thanks so much. I thought we have to use Create :d

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

                      First your think was good for upload your project because this error needed to see code and when I compiled your code I saw you dont need to make a control that is exist and delete Create and I replied to you,I asked of you yesterday again does your problem solve but you didnt answer to me so I guess maybe my answer was not attractive for you,but today I see your problem solved and I am glad. :-D

                      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