Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Error adding a string to a DropList Pin
piul16-May-08 5:40
piul16-May-08 5:40 
AnswerRe: Error adding a string to a DropList Pin
CPallini16-May-08 5:49
mveCPallini16-May-08 5:49 
GeneralRe: Error adding a string to a DropList Pin
piul16-May-08 5:51
piul16-May-08 5:51 
AnswerRe: Error adding a string to a DropList Pin
piul16-May-08 5:28
piul16-May-08 5:28 
GeneralRe: Error adding a string to a DropList Pin
krmed16-May-08 5:40
krmed16-May-08 5:40 
GeneralRe: Error adding a string to a DropList Pin
piul16-May-08 5:42
piul16-May-08 5:42 
GeneralRe: Error adding a string to a DropList Pin
toxcct16-May-08 7:11
toxcct16-May-08 7:11 
GeneralRe: Error adding a string to a DropList Pin
CPallini16-May-08 5:44
mveCPallini16-May-08 5:44 
piul wrote:
CDlg Dialog ;
Dialog.AddOpc() ;
Dialog.DoModal() ;


The second line is wrong since the dialog isn't yet created.
Since (due to modal nature of the dialog) you need to add strings before the DoDialog call but you can't add them directly to the combo box that isn't yet alive, hence you should modify AddOpc method to store passed strings inside a string array and use the latter to initilize the combo box inside the OnInitDialog method.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: Error adding a string to a DropList Pin
piul16-May-08 5:48
piul16-May-08 5:48 
GeneralRe: Error adding a string to a DropList Pin
CPallini16-May-08 6:02
mveCPallini16-May-08 6:02 
AnswerRe: Error adding a string to a DropList Pin
piul16-May-08 5:45
piul16-May-08 5:45 
Questionsheet and 3d page(vc++ 2005) Pin
akira3216-May-08 4:40
akira3216-May-08 4:40 
AnswerRe: sheet and 3d page(vc++ 2005) Pin
David Crow16-May-08 5:06
David Crow16-May-08 5:06 
GeneralRe: sheet and 3d page(vc++ 2005) Pin
akira3216-May-08 6:54
akira3216-May-08 6:54 
QuestionInfo about a file without using windows-needing functions Pin
cuesdean florin16-May-08 4:36
cuesdean florin16-May-08 4:36 
RantRe: Info about a file without using windows-needing functions Pin
toxcct16-May-08 4:56
toxcct16-May-08 4:56 
AnswerRe: Info about a file without using windows-needing functions Pin
Matthew Faithfull16-May-08 5:03
Matthew Faithfull16-May-08 5:03 
AnswerRe: Info about a file without using windows-needing functions Pin
David Crow16-May-08 5:04
David Crow16-May-08 5:04 
AnswerRe: Info about a file without using windows-needing functions Pin
Hamid_RT16-May-08 7:33
Hamid_RT16-May-08 7:33 
Questiondelete operator Pin
iayd16-May-08 4:30
iayd16-May-08 4:30 
AnswerRe: delete operator Pin
toxcct16-May-08 4:34
toxcct16-May-08 4:34 
AnswerRe: delete operator Pin
Cedric Moonen16-May-08 4:39
Cedric Moonen16-May-08 4:39 
AnswerRe: delete operator Pin
jeron116-May-08 4:40
jeron116-May-08 4:40 
AnswerRe: delete operator [modified] Pin
CPallini16-May-08 4:42
mveCPallini16-May-08 4:42 
AnswerRe: delete operator Pin
David Crow16-May-08 5:00
David Crow16-May-08 5:00 

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.