pDlg = new CTestDlg;
pDlg->Create( .... );
pDlg->ShowWindow();
在父窗口按钮的点击消息中:
long lStyle = GetWindowLong( pDlg->GetSafeHwnd(), GWL_EXSTYLE );
SetWindowLong( pDlg->GetSafeHwnd(), GWL_EXSTYLE, lStyle | WS_EX_TRANSPARENT | WS_EX_LAYERED );
OnInitDialog()
对话框初始化函数. 在里边改就行.
GetWindowLong
SetWindowLong
这些函数你查一查.
或者在对话框 Create 的时候 给他风格.