Original Post
I have a list box in a dialog that runs before my game runs and the list box displays all the bitmaps in the directory. It works, I''m happy, but there is one slight problem. When a file name is more than about 8 characters, it converts something like this "T_Mud_001.bmp" into "t_mud_~5.bmp". Is there something that i can change to make it display the full file name?
Here is the code:
//The sttributes of the files to find
UINT uAttrs;
//The thing that lets me specify which type of file
LPCTSTR lpszFileSpec;
//Include archived files
uAttrs = DDL_ARCHIVE;
//All files of type .bmp
lpszFileSpec = "*.bmp*";
//This automatically searches and loads all files matching the
//requirements
SendDlgItemMessage( hWnd,
ID_TILE_AVAILABLE,
LB_DIR, //Adds filenames to the list box
(WPARAM) (UINT) uAttrs,
(LPARAM) (LPCTSTR) lpszFileSpec );