How to setrange of spin control
-
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
-
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
-
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 }
-
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 }
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
-
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
Thnak u very much Tejaswini