Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: illegal operation Pin
Daniel Strigl16-Dec-02 1:09
Daniel Strigl16-Dec-02 1:09 
QuestionPreTranslateMessage Problem??? Pin
Lizp15-Dec-02 22:20
Lizp15-Dec-02 22:20 
Questioninteresting problem, easy way?? Pin
Sunnygirl15-Dec-02 21:26
Sunnygirl15-Dec-02 21:26 
AnswerRe: interesting problem, easy way?? Pin
Christian Graus15-Dec-02 21:34
protectorChristian Graus15-Dec-02 21:34 
GeneralRe: interesting problem, easy way?? Pin
Sunnygirl15-Dec-02 22:29
Sunnygirl15-Dec-02 22:29 
GeneralRe: interesting problem, easy way?? Pin
Christian Graus15-Dec-02 22:29
protectorChristian Graus15-Dec-02 22:29 
GeneralRe: interesting problem, easy way?? Pin
Sunnygirl15-Dec-02 22:49
Sunnygirl15-Dec-02 22:49 
GeneralRe: interesting problem, easy way?? Pin
Christian Graus15-Dec-02 23:03
protectorChristian Graus15-Dec-02 23:03 
I'm sorry, but I think you probably need to go back to C++ without MFC, or Windows of any kind, if you do not understand this. That is a friendly suggestion, not an insult.

To put text into the edit area of a combobox, you call it's SetWindowText method. That is an MFC method, and it requires that you've created a variable of type CComboBox in your modeless dialog box. The rest of the function is basic C++, I showed the declaration ( the bit in the .h file ) to show it needs to not be private ( that is not actually true, but it's the simplest way ), and the definition, where all we do is take the string and shove it into the combo box. You then call that method on the combo box in the method the class wizard defines for you for when you push button 2.



Christian

No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002

C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002


Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable.
- Jamie Nordmeyer - 15-Nov-2002
GeneralRe: interesting problem, easy way?? Pin
Sunnygirl15-Dec-02 23:25
Sunnygirl15-Dec-02 23:25 
GeneralRe: interesting problem, easy way?? Pin
Christian Graus16-Dec-02 0:52
protectorChristian Graus16-Dec-02 0:52 
QuestionHow do i set the date to that of the computer Pin
dianazheng15-Dec-02 21:23
dianazheng15-Dec-02 21:23 
AnswerRe: How do i set the date to that of the computer Pin
Christian Graus15-Dec-02 21:35
protectorChristian Graus15-Dec-02 21:35 
GeneralEnumeration of Com Ports Pin
Wolfram Steinke15-Dec-02 20:41
Wolfram Steinke15-Dec-02 20:41 
GeneralRe: Enumeration of Com Ports Pin
Olli15-Dec-02 21:02
Olli15-Dec-02 21:02 
GeneralRe: Enumeration of Com Ports Pin
Wolfram Steinke15-Dec-02 21:34
Wolfram Steinke15-Dec-02 21:34 
GeneralRe: Enumeration of Com Ports Pin
Daniel Strigl15-Dec-02 21:03
Daniel Strigl15-Dec-02 21:03 
GeneralRe: Enumeration of Com Ports Pin
Wolfram Steinke15-Dec-02 21:51
Wolfram Steinke15-Dec-02 21:51 
Questionwhat does this menu command error warning message mean? Pin
trustno115-Dec-02 15:39
trustno115-Dec-02 15:39 
AnswerRe: what does this menu command error warning message mean? Pin
Michael Dunn15-Dec-02 16:06
sitebuilderMichael Dunn15-Dec-02 16:06 
GeneralTemperature Sensors Pin
zenboy15-Dec-02 14:52
zenboy15-Dec-02 14:52 
GeneralRe: Temperature Sensors Pin
567890123415-Dec-02 20:00
567890123415-Dec-02 20:00 
QuestionEasier Tab control? Pin
Mr.Freeze15-Dec-02 14:45
Mr.Freeze15-Dec-02 14:45 
Generalinteresting problem Pin
Sunnygirl15-Dec-02 14:04
Sunnygirl15-Dec-02 14:04 
GeneralRe: interesting problem Pin
Colin Urquhart15-Dec-02 14:48
Colin Urquhart15-Dec-02 14:48 
GeneralRe: interesting problem Pin
zarzor15-Dec-02 14:59
zarzor15-Dec-02 14:59 

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.