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. How to setrange of spin control

How to setrange of spin control

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelptutorial
5 Posts 3 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.
  • V Offline
    V Offline
    vc _fragrance
    wrote on last edited by
    #1

    Hi, In my project i have to initially display the data from database and also i have to provide the facility to the user to change the value. I have done it in onitdialog message handler where the recordset operations have already handled. i compiled it successfully but while running i got the assertion saying that assertion in .exe file File:afxcmn.inl line:375 plz help me. Thanks in advance. tejaswini

    D 1 Reply Last reply
    0
    • V vc _fragrance

      Hi, In my project i have to initially display the data from database and also i have to provide the facility to the user to change the value. I have done it in onitdialog message handler where the recordset operations have already handled. i compiled it successfully but while running i got the assertion saying that assertion in .exe file File:afxcmn.inl line:375 plz help me. Thanks in advance. tejaswini

      D Offline
      D Offline
      Dreamz
      wrote on last edited by
      #2

      Can you please make it a little more clear what exactly you did in OnInitDialog() ?

      V 1 Reply Last reply
      0
      • D Dreamz

        Can you please make it a little more clear what exactly you did in OnInitDialog() ?

        V Offline
        V Offline
        vc _fragrance
        wrote on last edited by
        #3

        BOOL CCmpDataEntryDlg::OnInitDialog() //CmpDataEntryDlg is my propertysheet { m_SpinDropRate.SetRange(5,19); //to set the range for spin control m_pSet = new CCampaignSet(); //this is my recordset if(!m_pSet->IsOpen()) { CWaitCursor wait; m_pSet->Open(); } CPropertyPage::OnInitDialog(); UpdateData(FALSE); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }

        D 1 Reply Last reply
        0
        • V vc _fragrance

          BOOL CCmpDataEntryDlg::OnInitDialog() //CmpDataEntryDlg is my propertysheet { m_SpinDropRate.SetRange(5,19); //to set the range for spin control m_pSet = new CCampaignSet(); //this is my recordset if(!m_pSet->IsOpen()) { CWaitCursor wait; m_pSet->Open(); } CPropertyPage::OnInitDialog(); UpdateData(FALSE); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }

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

          tejaswini.g wrote:

          CPropertyPage::OnInitDialog();

          This statement must be called first (otherwise the controls do not get created).


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

          "Judge not by the eye but by the heart." - Native American Proverb

          V 1 Reply Last reply
          0
          • D David Crow

            tejaswini.g wrote:

            CPropertyPage::OnInitDialog();

            This statement must be called first (otherwise the controls do not get created).


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

            "Judge not by the eye but by the heart." - Native American Proverb

            V Offline
            V Offline
            vc _fragrance
            wrote on last edited by
            #5

            Thnak u very much Tejaswini

            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