非iframe網頁正常,求助!
uj5u.com熱心網友回復:
別沉啊!!!uj5u.com熱心網友回復:
在64位Windows下:64位exe和dll在目錄c:\windows\system32目錄下;
32位exe和dll在目錄c:\windows\syswow64目錄下;
所以要注意:
在win64位系統下注冊32位ocx或dll需要將32位ocx或dll拷貝到c:\windows\syswow64\目錄下。
且注冊要用c:\windows\syswow64\regsvr32 xxxxxxx.ocx或dll
uj5u.com熱心網友回復:
我這個是自己開發的ocx,有相關依賴庫,那需要將所有的都拷貝到相應的目錄下嗎?
uj5u.com熱心網友回復:
這是我試過的兩種全屏代碼 都是網上找的 容器內測驗正常CWnd* parentWnd=this->GetParent();
if (m_ParentWnd==NULL && parentWnd!=this->GetDesktopWindow())
{
m_ParentWnd=parentWnd;
}
if (!IsFullScreen)
{
this->ShowWindow(SW_RESTORE);
::SetWindowPos(this->m_hWnd, HWND_TOPMOST,-1,-1,-1,-1,SWP_NOMOVE|SWP_NOSIZE);
CRect parentBounds;
m_ParentWnd->GetClientRect(parentBounds);
this->SetParent(m_ParentWnd);
this->MoveWindow(parentBounds);
m_BtnFullScreen.SetBitmap(LoadBitmap(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_BITMAP6)));
Invalidate();
}
else
{
this->SetParent(NULL);
//this->GetSafeHwnd();
::SetWindowPos(this->m_hWnd, HWND_TOPMOST,-1,-1,-1,-1,SWP_NOMOVE|SWP_NOSIZE);
this->ShowWindow(SW_MAXIMIZE);
m_BtnFullScreen.SetBitmap(LoadBitmap(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_BITMAP7)));
Invalidate();
}
第二種
void CHKVisionOCXCtrl::FullScreen(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
GetWindowPlacement(&_temppl);
int nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
int nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
m_hWndParent = ::GetParent(m_hWnd);
::SetParent(m_hWnd, GetDesktopWindow()->m_hWnd);
WINDOWPLACEMENT wp1;
ZeroMemory(&wp1, sizeof(WINDOWPLACEMENT));
wp1.length = sizeof(WINDOWPLACEMENT);
wp1.showCmd = SW_SHOWNORMAL;
wp1.rcNormalPosition.left = 0;
wp1.rcNormalPosition.top = 0;
wp1.rcNormalPosition.right = nScreenWidth;
wp1.rcNormalPosition.bottom = nScreenHeight;
SetWindowPlacement(&wp1);
::SetForegroundWindow(GetDesktopWindow()->m_hWnd);
::SetForegroundWindow(m_hWnd);
//SwitchFullScreen();
}
void CHKVisionOCXCtrl::NormalScreen(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
LockWindowUpdate();
::SetParent(m_hWnd, m_hWndParent);
SetWindowPlacement(&_temppl);
::SetForegroundWindow(m_hWndParent);
::SetFocus(m_hWndParent);
::SetFocus(m_hWnd);
UnlockWindowUpdate();
//SwitchFullScreen();
}
uj5u.com熱心網友回復:
樓主解決沒有,我也遇到同樣的問題了。我目前發現閃爍的原因如下1.a標簽和button點擊會導致
2.滾動或改變瀏覽器大小
3.a標簽hover時也會閃爍
uj5u.com熱心網友回復:
樓主,這個問題解決了嗎?同求轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/106575.html
下一篇:專案人力資源管理
