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

C / C++ / MFC

 
QuestionHow to pass data from MFC to Win 32 Console through windows messaging [modified] Pin
Darrel Q Pham11-Nov-08 15:45
Darrel Q Pham11-Nov-08 15:45 
AnswerRe: How to pass data from MFC to Win 32 Console through windows messaging Pin
Darrel Q Pham17-Nov-08 15:34
Darrel Q Pham17-Nov-08 15:34 
QuestionNeed help converting raw PCM data into streaming audio Pin
lavagoblin11-Nov-08 12:42
lavagoblin11-Nov-08 12:42 
AnswerRe: Need help converting raw PCM data into streaming audio Pin
enhzflep11-Nov-08 14:00
enhzflep11-Nov-08 14:00 
AnswerRe: Need help converting raw PCM data into streaming audio Pin
Mark Salsbery11-Nov-08 15:35
Mark Salsbery11-Nov-08 15:35 
QuestionPull Downs Menu Items Pin
BobInNJ11-Nov-08 11:33
BobInNJ11-Nov-08 11:33 
AnswerRe: Pull Downs Menu Items Pin
lavagoblin11-Nov-08 11:59
lavagoblin11-Nov-08 11:59 
GeneralRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 12:24
BobInNJ11-Nov-08 12:24 
I am trying to use a CComboBox, however, the code is not working. Below is the code that I am using to create the CComboBox:

accountTypes[accountCount].CreateEx( WS_EX_CLIENTEDGE, TEXT("listbox"), NULL,
    WS_CHILD | WS_VISIBLE | LBS_STANDARD ,
    200, 200, 100, 25, m_hWnd, (HMENU)(IDC_ACCOUNT_TYPES + accountCount), NULL );

CClientDC dc(this);

accountTypes[accountCount].ResetContent();
for( int i = 0; i < sizeof(accountStrings)/sizeof(accountStrings[0]); i++ ) {
    int retValue = accountTypes[accountCount].AddString( accountStrings[i] );
    retValue = 0;
}


where IDC_ACCOUNT_TYPES is defined to be 500 and accountCount is an integer variable with values like
0 or 1. When I run the code, I get an area where the user can type, not a pull down. I am thinking that I created the pull down with the wrong type, but I am not sure what the correct type is.

Please tell me what I am doing wrong.

Thanks
Bob
GeneralRe: Pull Downs Menu Items Pin
lavagoblin11-Nov-08 13:01
lavagoblin11-Nov-08 13:01 
GeneralRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 14:09
BobInNJ11-Nov-08 14:09 
GeneralRe: Pull Downs Menu Items Pin
lavagoblin12-Nov-08 4:18
lavagoblin12-Nov-08 4:18 
GeneralRe: Pull Downs Menu Items Pin
Mark Salsbery11-Nov-08 15:42
Mark Salsbery11-Nov-08 15:42 
AnswerRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 13:00
BobInNJ11-Nov-08 13:00 
QuestionGet parent process command line in 64 bit Pin
Jack Rong11-Nov-08 10:23
Jack Rong11-Nov-08 10:23 
QuestionHow to select an initial entry when Virtual List is first displayed? Pin
AmVal11-Nov-08 8:11
AmVal11-Nov-08 8:11 
QuestionRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery11-Nov-08 8:41
Mark Salsbery11-Nov-08 8:41 
AnswerRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal11-Nov-08 11:25
AmVal11-Nov-08 11:25 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery11-Nov-08 12:39
Mark Salsbery11-Nov-08 12:39 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal12-Nov-08 4:30
AmVal12-Nov-08 4:30 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery12-Nov-08 7:29
Mark Salsbery12-Nov-08 7:29 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal12-Nov-08 10:17
AmVal12-Nov-08 10:17 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery12-Nov-08 10:51
Mark Salsbery12-Nov-08 10:51 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal12-Nov-08 11:24
AmVal12-Nov-08 11:24 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery12-Nov-08 12:04
Mark Salsbery12-Nov-08 12:04 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal13-Nov-08 2:51
AmVal13-Nov-08 2:51 

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.