Original Post
Can anyone see anything wrong with my could for the LB_DIR message? the version works fine, but the doesnt do anything.
//DlgDirList(hwnd, buf, IDC_LIST_WEAPONS, 0, DIRATTR);
//SendDlgItemMessage(hwnd, IDC_LIST_WEAPONS, LB_DIR, (WPARAM)DIRATTR, (LPARAM)buf);
#define DIRATTR (DDL_READWRITE | DDL_READONLY | DDL_SYSTEM | DDL_DIRECTORY | DDL_ARCHIVE )
TCHAR buf[MAX_PATH] = TEXT ("c:\\");
//DlgDirList(hwnd, buf, IDC_LIST_WEAPONS, 0, DIRATTR);
SendDlgItemMessage(hwnd, IDC_LIST_WEAPONS, LB_DIR, (WPARAM)DIRATTR, (LPARAM)buf);
return 0;