UpdateData(true);

 if(m_bTopMost)
 {
  AfxGetMainWnd()->SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
  m_bTopMost=true;
 }
 else
 {
  AfxGetMainWnd()->SetWindowPos(&CWnd::wndNoTopMost ,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
  m_bTopMost=false;
 }
  
 ::WritePrivateProfileString("Settings","bTopMost",m_bTopMost ? "1":"0",".\\Settings.ini"); 

相关文章:

  • 2021-10-15
  • 2021-09-21
  • 2021-11-26
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-06-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-03-03
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案