CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: xucaen

Search: Search took 0.06 seconds.

  1. I am such an idiot. The reason I thought that...

    I am such an idiot. The reason I thought that OnInitMenuPopup() only gets called once was because I put a break point in there and since it didn't break I assumed.. well, silly me for not realizing...
  2. Well, I found out why my file list isn't being...

    Well, I found out why my file list isn't being refreshed; OnInitMenuPopup() is only called once, so CreateFileList() only gets called once. So now I need a way to either call OnInitMenuPopup()...
  3. Your example does work. Interesting... It must...

    Your example does work. Interesting... It must have something to do with the menu I'm populating. Maybe something in Windows is keeping it from refreshing, whereas a DOS prompt automatically...
  4. I am using the function you showed me to create...

    I am using the function you showed me to create my file list. It works beautifully! I am noticing, however, that any new files added to the directory while my app is running never show up in the list...
  5. You have been so helpful! Thank you! I am now...

    You have been so helpful! Thank you! I am now able to dynamically populate a popup menu with a file list.

    Now all I need to figure out is how to get the item selected. I'm searching thru MSDN for...
  6. Thank you so much for the CreateFileList()...

    Thank you so much for the CreateFileList() function. This is exactly waht I need to get my file list.
    I didn't know about the AfxGetApp()->AddToRecentFileList(), this will be useful too as the...
  7. I think the difficult part for me is I don't know...

    I think the difficult part for me is I don't know how to get a directory list. I have tried using the CListBox::Dir() and the CComboBox::Dir thinking that once I get the directory listing I can...
  8. I'll worry about that later, right now I need to...

    I'll worry about that later, right now I need to see if it can be done and how. We're still in the first phases of the project. But for the sake of argument, lets say I limit them to 20 files.
    ...
  9. MFC:dynamically create a file list in a submenu?

    Hello, I am trying to make a submenu to display at runtime a list of unknown number of files. The files are contained in a directory specified at compile time. I want this to look like the Windows...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured