如题
解决方案 »
- 关于安装钩子
- 想学ATL,不知道怎么入手,请教。
- 大哥,帮我看看
- WriteProfileBinary
- 各位高手,为什么我在ListCtrl中设定的BackGround Image不起作用啊?如何才能让它显示出来?
- 如何枚举出某一窗口(如对话框)下的所有子窗口(如各种控件)
- 偶心情十分糟,决定在最近3天内,陆续散掉1000分,每贴100分,每贴只分给5名象我心情一样糟的哥们,每人20分。(第六个100分)
- access数据库位图显示问题(立刻给分)
- 谁知道?初学com
- 准备搞一个专业的VC技术基地,诚邀相关人事(事先声明,我们都没有钱)
- 求助高手: 如何改变界面库 bcgcontrolbar 的 bcgoutlookbar的Button的文字? 急!!!
- 一个关于ON_CONTROL_RANGE的问题?
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
void CTreeViewDlg::GetLogicalDrives(HTREEITEM hParent)
{
size_t szAllDriveStrings = GetLogicalDriveStrings(0,NULL);
char *pDriveStrings = new char[szAllDriveStrings + sizeof(_T(""))];
GetLogicalDriveStrings(szAllDriveStrings,pDriveStrings);
size_t szDriveString = strlen(pDriveStrings);
while(szDriveString > 0)
{
m_tree.InsertItem(pDriveStrings,hParent);
pDriveStrings += szDriveString + 1;
szDriveString = strlen(pDriveStrings);
}
}
The GetLogicalDrives function retrieves a bitmask representing the currently available disk drives. DWORD GetLogicalDrives(VOID);
Parameters
This function has no parameters. Return Values
If the function succeeds, the return value is a bitmask representing the currently available disk drives. Bit position 0 (the least-significant bit) is drive A, bit position 1 is drive B, bit position 2 is drive C, and so on. If the function fails, the return value is zero. To get extended error information, call GetLastError