Skip to content

Instantly share code, notes, and snippets.

@wose
Created February 7, 2010 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wose/297144 to your computer and use it in GitHub Desktop.
Save wose/297144 to your computer and use it in GitHub Desktop.
BOOL CComboDemoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
m_ctrlComboList.AddString(_T("Bazinga!"));
m_ctrlComboList.AddString(_T("Foobar..."));
m_ctrlComboList.AddString(_T("mookooh :)"));
return TRUE; // return TRUE unless you set the focus to a control
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment