To get rid of long paths truncation, you have to rearrange a little the static controls which display the title and path, respectively. Once you are using BIF_STATUSTEXT style I can presume that you already use an application-defined callback function (e.g. BrowseCallbackProc). Here is an example, that rearrange those static texts by handling BFFM_INITIALIZED message:
#define IDC_STATIC_TITLE 0x3742
#define IDC_STATIC_DIR 0x3743
int CALLBACK BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)
CWnd* pDlg = CWnd::FromHandle(hwnd);
CWnd* pTitle = pDlg->GetDlgItem(IDC_STATIC_TITLE);
CWnd* pDir = pDlg->GetDlgItem(IDC_STATIC_DIR);
// get the initial positions
CRect rcTitle, rcDir;
// now re-arrange
const int nHeight = rcDir.Height();
rcTitle.bottom = rcTitle.top + nHeight;
rcDir.top = rcTitle.bottom;
rcDir.bottom = rcDir.top + 2 * nHeight;
// NOTE: above it's just an example.
// to be shorter and clearer, no error checking is made.
Your answer does not solve the OP problem:
Originally Posted by arunperi
I am using SHBrowseForFolderA for showing a file dialog. The length of the selected path is geeting trimmed.
Is there any way by which i can increase the size of the label in the dilaog box for the currently selected path.
Please, read a little bit more carefully a question before giving an answer!