设为首页 加入收藏

TOP

??VC?????ж???CFileDialog
2013-09-26 19:34:40 来源: 作者: 【 】 浏览:127
Tags:CFileDialog

MFC OFileDialog и

и п

150

classwizard CFileDialog CCoolFileDialog CoolFileDialog.cpp

д WM_INITDIALOG OnInitDialog

indnde.CPP CoolFileDialog dlgs.h

BOOL CoolFileDialog::OnInitDialog()

//iExtraSize

const UINT iExtraSize=150;

// е

const UINT nControls=8;

//

CWnd wndDlg=GetParent();

//

RECT Rect;

wndDlg GetWindowRect( Rect);

//

wndDlg GetWindowRect( Rect);

//

wndDlg SetWindowPos(NULL,0,0,

Rect.right Rect.left,

Rect.bottom Rect.top iExtraSize,

SWP_NOMOVE);

// ID dlgs.h ж

UINT Controls[nControls]={stc3,stc2,// label

edt1,cmb1,//edit

//drop down box

IDOK IDCANCEL

chx1,//check

lst1//list

}

// и λ

for (int i=0;i nControls ; i )

{

CWnd wndCtrl =wndDlg GetDlgItem(Controls[i]);

wndCtrl GetWindowRect( Rect);

wndDlg ScreenToClient( Rect);

//

if (Controls[i]!=lst1)

wndCtrl SetWindowPos(NULL,

Rect.left,Rect.top iExtraSize,

0,0,SWP_NOSIZE);

else// б 磬 λ

wndCtrl SetWindowPos(NULL,0,0,

Rect.right Rect.left,

Rect.bottom Rect.top iExtraSize,

SWP_NOMOVE);

//

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇VC++???????????????? 下一篇C语言代码行数统计bash实现

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: