Programming/Windows.MFC

Dialog 숨기기

알레아 2009. 12. 9. 09:58
반응형

MFC 관련 프로그램에서 해당 Dialog를 숨기고 싶다면 다음과 같이 Windows Style을 수정하면된다.

MSDN 참고
virtual BOOL ModifyStyleEx(
DWORD dwRemove,
DWORD dwAdd,
UINT nFlags
);

Parameters
dwRemove
The extended styles to be removed from the current windows styles.
dwAdd
The extended styles to be added from the current windows Style.
nFlags
Windows positioning flags, For a list of possible values see the SetWindowPos function in the Windows SDK.


사용방법
class TaskBarDlg::OnInitDialog()
{
...
ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW, 0);

return TRUE;
}


반응형