Wanting2LearnMan
asked on
AfxMessageBox windows message
When I pop up a message box like so:
AfxMessageBox(_T("message" ));
What windows message is posted when the user presses OK?
AfxMessageBox(_T("message"
What windows message is posted when the user presses OK?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The above OnInit should be:
BOOL CMyClass::OnInitDialog()
{
//Tab Options
m_tabOptions.InsertItem(0, _T("Tab 1"));
m_tabOptions.InsertItem(1, _T("Tab 2"));
......
.....
dlgTab1Dlg = new CTab1(this);
dlgTab1Dlg->Create(IDD_TAB 1_DIALOG, this);
dlgTab1Dlg->SetParent(&m_t abOptions) ;
dlgTab1Dlg->ShowWindow(SW_ SHOW);
dlgTab1Dlg->SetWindowPos(N ULL, rTab.left, rTab.top, rTab.Width(), rTab.Height(), SWP_NOZORDER);
dlgTab2Dlg = new CTab2(this);
dlgTab2Dlg->Create(IDD_TAB 2_DIALOG, this);
dlgTab2Dlg->SetParent(&m_t abOptions) ;
dlgTab2Dlg->ShowWindow(SW_ SHOW);
dlgTab2Dlg->SetWindowPos(N ULL, rTab.left, rTab.top, rTab.Width(), rTab.Height(), SWP_NOZORDER);
SHINITDLGINFO shidi;
shidi.dwMask = SHIDIM_FLAGS;
shidi.dwFlags =SHIDIF_FULLSCREENNOMENUBA R;
shidi.hDlg = m_hWnd;
::SHInitDialog(&shidi);
SetForegroundWindow();
SHFullScreen( m_hWnd, SHFS_HIDESTARTICON|
SHFS_HIDETASKBAR|
SHFS_HIDESIPBUTTON );
MoveWindow(0,0,240,320,TRU E);
HWND hWnd;
hWnd = ::SHFindMenuBar(this->m_hW nd);
::ShowWindow(hWnd, SW_HIDE);
}
BOOL CMyClass::OnInitDialog()
{
//Tab Options
m_tabOptions.InsertItem(0,
m_tabOptions.InsertItem(1,
......
.....
dlgTab1Dlg = new CTab1(this);
dlgTab1Dlg->Create(IDD_TAB
dlgTab1Dlg->SetParent(&m_t
dlgTab1Dlg->ShowWindow(SW_
dlgTab1Dlg->SetWindowPos(N
dlgTab2Dlg = new CTab2(this);
dlgTab2Dlg->Create(IDD_TAB
dlgTab2Dlg->SetParent(&m_t
dlgTab2Dlg->ShowWindow(SW_
dlgTab2Dlg->SetWindowPos(N
SHINITDLGINFO shidi;
shidi.dwMask = SHIDIM_FLAGS;
shidi.dwFlags =SHIDIF_FULLSCREENNOMENUBA
shidi.hDlg = m_hWnd;
::SHInitDialog(&shidi);
SetForegroundWindow();
SHFullScreen( m_hWnd, SHFS_HIDESTARTICON|
SHFS_HIDETASKBAR|
SHFS_HIDESIPBUTTON );
MoveWindow(0,0,240,320,TRU
HWND hWnd;
hWnd = ::SHFindMenuBar(this->m_hW
::ShowWindow(hWnd, SW_HIDE);
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BOOL CMyClass::OnInitDialog()
{
SHINITDLGINFO shidi;
shidi.dwMask = SHIDIM_FLAGS;
shidi.dwFlags =SHIDIF_FULLSCREENNOMENUBA
shidi.hDlg = m_hWnd;
::SHInitDialog(&shidi);
SetForegroundWindow();
SHFullScreen( m_hWnd, SHFS_HIDESTARTICON|
SHFS_HIDETASKBAR|
SHFS_HIDESIPBUTTON );
MoveWindow(0,0,240,320,TRU
HWND hWnd;
hWnd = ::SHFindMenuBar(this->m_hW
::ShowWindow(hWnd, SW_HIDE);
}
AND
void COptions::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
CDialog::OnActivate(nState
SHFullScreen( m_hWnd, SHFS_HIDESTARTICON|SHFS_HI
SHFS_HIDESIPBUTTON );
MoveWindow(0,0,240,320,TRU
HWND hWnd;
hWnd = ::SHFindMenuBar(this->m_hW
::ShowWindow(hWnd, SW_HIDE);
}
I create the dialogs for my tab control in the OnInit of my dialog like so:
//Tab Options
dlgTab1Dlg = new CTab1(this);
dlgTab1Dlg->Create(IDD_TAB
dlgTab1Dlg->SetParent(&m_t
dlgTab1Dlg->ShowWindow(SW_
dlgTab1Dlg->SetWindowPos(N
dlgTab2Dlg = new CTab2(this);
dlgTab2Dlg->Create(IDD_TAB
dlgTab2Dlg->SetParent(&m_t
dlgTab2Dlg->ShowWindow(SW_
dlgTab2Dlg->SetWindowPos(N