Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

athick

@athick
About
Posts
5
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Adding List boxes dynamically
    A athick

    I have to create a dialog box where i need to display textboxes dynamically. I also have to create a scrollable pane so that i can keep the display area of the textboxes constant.Anybody has an idea as to how this could be done.Need suggestion from your side:confused:

    C / C++ / MFC

  • Displaying drop down ComboBox
    A athick

    CString *temp1 = new CString(""); LPTSTR str1 = temp1->GetBuffer(temp1->GetLength()); int ret=this->DlgDirListComboBox(str1,IDC_DIRCOMBO,0,DDL_DRIVES); if(ret==0) { DWORD i=::GetLastError(); } int n=m_list1.GetCount(); //m_combo.SetCurSel(1); //default data is not displayed in comboBox is this is not done. ret=m_combo.GetLBTextLen(1); m_combo.GetLBText(1,m_list); m_list.Delete(0,2); m_list.Delete(1,2); ret = m_list.GetLength(); m_list+=":\\"; str1 = m_list.GetBuffer(m_list.GetLength()); ret=this->DlgDirList(str1,IDC_LIST1,0,DDL_EXCLUSIVE|DDL_DIRECTORY); if(ret==0) { DWORD i=::GetLastError(); } //LPCTSTR t = m_list; //m_list1.AddString(t); m_list1.SetCurSel(0); n=m_list1.GetCount(); Invalidate(); m_list.ReleaseBuffer(); temp1->ReleaseBuffer(); delete temp1; this is how i generate data in ComboBox For the ComboBox the properties are Style 1.type = "dropdown" 2.Owner draw = " no".......the dropdown list doesnot display can u help:confused:

    C / C++ / MFC c++

  • Displaying drop down ComboBox
    A athick

    hi I have loaded a CComboBox object m_combo with the list of drives using DirDlgListComboBox.I also used SetCurSel(0) to display the first element in the loaded list.Now i want to display all the loaded data when somebody clicks on the dropdown arrow.So i added an event CBN_DROPDOWN .In the handler i added this line of code m_combo.ShowDropDown(); This gives an unhandled exception.I have just started MFC programming .So if anybody can tell me why this happens and also suggest me to make it work correctly.

    C / C++ / MFC c++

  • CComboBox and Loading directories
    A athick

    My application needs that i use a ComboBox and ListBox.The ComboBox will display a drive or directory in the system and my listbox will display all the subdirectories.This comboBox and listbox get displayed in a Dialog application. There is a function called CWnd::DlgDirListComboBox .As per documentation this is supposed to load a directory. there are 2 classes in my application CForDialog and CForApp . I used this line of code inside InitDialog in CForDialog class .......throws unhandled exception this->DlgDirListComboBox(_T(""),IDC_COMBO1,IDC_LIST1,DDL_DIRECTORY|DDL_EXCLUSIVE); can u help :confused:

    C / C++ / MFC help

  • Loading a directory into a Combo Control
    A athick

    My application needs that i use a ComboBox and ListBox.The ComboBox will display a drive or directory in the system and my listbox will display all the subdirectories.This comboBox and listbox get displayed in a Dialog application. There is a function called CWnd::DlgDirListComboBox .As per documentation this is supposed to load a directory. there are 2 classes in my application CForDialog and CForApp . I used this line of code inside InitDialog in CForDialog class .......throws unhandled exception this->DlgDirListComboBox(_T(""),IDC_COMBO1,IDC_LIST1,DDL_DIRECTORY|DDL_EXCLUSIVE); can u help

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups