I'm trying to make a File->Open type of a window to pop up from my main dialog. I've made it manually. I connect to an FTP server and spit out the folders in the current directory into a ListBox. Now I want to add an OnSelchange() function that will go into the selected folder, open it and put the contents into the list box.
I can't do the message map properly.and the error:Code:BEGIN_MESSAGE_MAP(CTestDialog, CDialog) // Message map macros for CTestDialog will go here ON_COMMAND(IDB_CONNECT, OnConnect) ON_LB_SELCHANGE(IDLB_MAINDIR, OnSelchangeMainDir) END_MESSAGE_MAP()the function is declared in the class and the definition is in the .cpp file. I'm not sure where to declare the message.Code:error C2065: 'ON_LB_SELCHANGE' : undeclared identifier