void CVideoConverter::PopUpDlg(BOOL bValue) { try { if(bValue) // show { CVideoConverterApp::m_pCVideoConverterDlg->ShowWindow(SW_SHOWNORMAL); CVideoConverterApp::m_pCVideoConverterDlg->UpdateWindow(); } else {// hide CVideoConverterApp::m_pCVideoConverterDlg->ShowWindow(SW_MINIMIZE); } } catch(...) {} }
void CVideoConverter::SetWindowToBottomRightCorner() { try { CRect rcScreen; SystemParametersInfo(SPI_GETWORKAREA, 0, (void *) &rcScreen, 0); CRect rcWindow; GetWindowRect(&rcWindow); MoveWindow(rcScreen.right - rcWindow.Width(), rcScreen.bottom - rcWindow.Height(), rcWindow.Width(), rcWindow.Height(), TRUE); } catch(...) {} }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)