讓窗口保持在最前
睿豐德科技 專注RFID識別技術和條碼識別技術與管理軟件的集成項目。質量追溯系統、MES系統、金蝶與條碼系統對接、用友與條碼系統對接
這里主要用到了一個函數:
BOOL SetWindowPos( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags);
具體用法可以參看MSDN
void CSYSLoaderDlg::OnCheckFront() { // TODO: Add your control notification handler code here if (m_checked == TRUE) { m_checked = FALSE; SetWindowPos(&CWnd::wndNoTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); } else { m_checked = TRUE; SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); } }RFID管理系統集成商 RFID中間件 條碼系統中間層 物聯網軟件集成