Click here to Skip to main content
15,913,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionallocator for a class derived from CDBVariant Pin
prithaa25-Feb-07 19:17
prithaa25-Feb-07 19:17 
QuestionRe: allocator for a class derived from CDBVariant Pin
prasad_som25-Feb-07 20:42
prasad_som25-Feb-07 20:42 
AnswerRe: allocator for a class derived from CDBVariant Pin
prithaa25-Feb-07 21:05
prithaa25-Feb-07 21:05 
GeneralRe: allocator for a class derived from CDBVariant Pin
Cedric Moonen25-Feb-07 21:31
Cedric Moonen25-Feb-07 21:31 
Questionlinking data structure to ODBC Pin
Susanta57825-Feb-07 18:59
Susanta57825-Feb-07 18:59 
AnswerRe: linking data structure to ODBC Pin
Try25-Feb-07 20:07
Try25-Feb-07 20:07 
GeneralRe: linking data structure to ODBC Pin
Susanta57828-Feb-07 0:41
Susanta57828-Feb-07 0:41 
QuestionProblems with clearing a combobox using ResetContent..? Pin
Vinod Sankaranarayanan25-Feb-07 18:58
Vinod Sankaranarayanan25-Feb-07 18:58 
Dear all,


I have some problem while using combobox in my application. The thing is , I want to reload some values to the combo at runtime..

So I choose this way..

myctrlcmb.Clear()
myctrlCmb.ResetContent();

ReloadNewValuesToCombo(&myctrlCmb); // a user defined fun.
------------------------------------------------------------
But after reloading values , the selection in the combobox is not changed. It always shows the selection which was done before reloading the combo..

I used this combo box in a property page where two other edit boxes are also there. So I want also display some values in those edit fields based on the selection in the combo. For that I have used the "UpdateData(false)" function.

my code...(when a selection is made at the combo)--:

OnCbnSelchangeComboAuthname()
{
int iIndex= 0;
int i=0;
CString strAuthName;

ClearAllValues();


iIndex = myctrlcmb.GetCurSel();

myctrlcmb.GetLBText(iIndex,strAuthName);

dlgHandler.setAllFields(strAuthName,m_valauthdesc,m_ctrlrightlist);

m_strNewAuthName = strAuthName;


UpdateData(false); //I assume the problem creator...


}

The combo selection is completely alright when I was not using the "UpdateDate(false)" funtion..But then how can I display my values in those edit fields...


Pls help me to sove this....


Regards,

vinsankar

AnswerRe: Problems with clearing a combobox using ResetContent..? Pin
ThatsAlok25-Feb-07 19:48
ThatsAlok25-Feb-07 19:48 
QuestionWhy? Pin
Rajesh R Subramanian25-Feb-07 20:35
professionalRajesh R Subramanian25-Feb-07 20:35 
AnswerRe: Why? Pin
Mark Salsbery26-Feb-07 7:53
Mark Salsbery26-Feb-07 7:53 
NewsPlease! Pin
Rajesh R Subramanian26-Feb-07 17:32
professionalRajesh R Subramanian26-Feb-07 17:32 
GeneralRe: Please! Pin
Mark Salsbery27-Feb-07 7:46
Mark Salsbery27-Feb-07 7:46 
GeneralRe: Please! Pin
Rajesh R Subramanian27-Feb-07 8:13
professionalRajesh R Subramanian27-Feb-07 8:13 
GeneralRe: Please! Pin
Mark Salsbery27-Feb-07 8:33
Mark Salsbery27-Feb-07 8:33 
GeneralRe: Please! Pin
Rajesh R Subramanian27-Feb-07 8:36
professionalRajesh R Subramanian27-Feb-07 8:36 
GeneralRe: Please! Pin
Mark Salsbery27-Feb-07 8:44
Mark Salsbery27-Feb-07 8:44 
GeneralRe: Please! Pin
Rajesh R Subramanian27-Feb-07 8:49
professionalRajesh R Subramanian27-Feb-07 8:49 
AnswerRe: Problems with clearing a combobox using ResetContent..? Pin
ThatsAlok25-Feb-07 19:49
ThatsAlok25-Feb-07 19:49 
GeneralRe: Problems with clearing a combobox using ResetContent..? Pin
Vinod Sankaranarayanan25-Feb-07 20:47
Vinod Sankaranarayanan25-Feb-07 20:47 
QuestionFirst Parameter of Microsoft Defined Structures: Design Question Pin
Gupta Suraj25-Feb-07 18:17
Gupta Suraj25-Feb-07 18:17 
AnswerRe: First Parameter of Microsoft Defined Structures: Design Question Pin
Waldermort25-Feb-07 18:38
Waldermort25-Feb-07 18:38 
GeneralRe: First Parameter of Microsoft Defined Structures: Design Question Pin
Gupta Suraj25-Feb-07 19:43
Gupta Suraj25-Feb-07 19:43 
AnswerRe: First Parameter of Microsoft Defined Structures: Design Question Pin
Michael Dunn25-Feb-07 19:06
sitebuilderMichael Dunn25-Feb-07 19:06 
GeneralRe: First Parameter of Microsoft Defined Structures: Design Question Pin
Gupta Suraj25-Feb-07 19:43
Gupta Suraj25-Feb-07 19:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.