philrosenberg
Technical User
Hi,
I'm fairly new to programming for windows and am having some trouble with modeless dialogs.
I've created and shown a modeless dialog, but when the main application is given the focus it moves in front of the dialog wheras I want the dialog to stay in front, also the dialog box has its own button on the status bar, which I don't want.
I am declaring the dialog as a public variable in the view class
public:
CTestDlg m_DlgTest;
then creating the dialog in the View constructor
CProgramView::CProgramView()
{
m_DlgTest.Create(IDD_TEST, this);
m_DlgTest.ShowWindow(SW_SHOW);
}
Any ideas anyone?
Any help would be greatly appreciated
Phil
I'm fairly new to programming for windows and am having some trouble with modeless dialogs.
I've created and shown a modeless dialog, but when the main application is given the focus it moves in front of the dialog wheras I want the dialog to stay in front, also the dialog box has its own button on the status bar, which I don't want.
I am declaring the dialog as a public variable in the view class
public:
CTestDlg m_DlgTest;
then creating the dialog in the View constructor
CProgramView::CProgramView()
{
m_DlgTest.Create(IDD_TEST, this);
m_DlgTest.ShowWindow(SW_SHOW);
}
Any ideas anyone?
Any help would be greatly appreciated
Phil