Set Combo Box values??
-
Hello, I'm using MFC dialog based app. In it I have two dialog boxes Dialog1 and Dialog2. There is a Combo Box in Dialog2 that I want to populate with integer values obtained from Dialog1. The following explains what I want to do. Dialog1.cpp #include "Dialog2.h" clear all contents from the Combo Box in Dialog2 while (number < 10) { ... if(some condition) { write whatever the 'number' value is to the combo box in Dialog2 } ... number++; } Does anyone know how I can do this or know of any document explaining this. Thanks in advance, Aoife
-
Hello, I'm using MFC dialog based app. In it I have two dialog boxes Dialog1 and Dialog2. There is a Combo Box in Dialog2 that I want to populate with integer values obtained from Dialog1. The following explains what I want to do. Dialog1.cpp #include "Dialog2.h" clear all contents from the Combo Box in Dialog2 while (number < 10) { ... if(some condition) { write whatever the 'number' value is to the combo box in Dialog2 } ... number++; } Does anyone know how I can do this or know of any document explaining this. Thanks in advance, Aoife
Use
ResetContent()
to clear the contents of a combobox. To add elements, useAddString()
orInsertString()
. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com