1个回答
展开全部
可以的,但需要写回调函数.类似如下:
int CALLBACK CXXX::BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)
{
if(uMsg==BFFM_SELCHANGED||uMsg==BFFM_INITIALIZED)
{
char *szPath = "C:\\";
if(uMsg==BFFM_INITIALIZED)
{
::SendMessage(hwnd,BFFM_SETSELECTION,TRUE,(LPARAM)szPath);
}
}
return 0;
}
还有疑问,欢迎追问.
int CALLBACK CXXX::BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)
{
if(uMsg==BFFM_SELCHANGED||uMsg==BFFM_INITIALIZED)
{
char *szPath = "C:\\";
if(uMsg==BFFM_INITIALIZED)
{
::SendMessage(hwnd,BFFM_SETSELECTION,TRUE,(LPARAM)szPath);
}
}
return 0;
}
还有疑问,欢迎追问.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询