![]() |
Add Feature LoadPlacement |
Post Reply ![]() |
Author | |
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() Posted: 17 January 2005 at 8:43am |
Please add a bVisible flag to the LoadPlacment function.
Because on a Dialog SetWindowPlacement make the dialog visible. And if a add after this functioncalling some other resize function. Button 'Show Detail' the window is flickering. After OnInitDialog the Window also get SW_SHOW void CExDialog::LoadPlacement(LPCTSTR pszSection, bool bVisible) { UINT nBytes = 0; BYTE* pBytes = 0; AfxGetApp()->GetProfileBinary(pszSection, ENTRY_WINDOWPLACEMENT, &pBytes, &nBytes); if (nBytes == sizeof(WINDOWPLACEMENT)) { WINDOWPLACEMENT *pWP = (WINDOWPLACEMENT*)pBytes; if (!bVisible) pWP->showCmd = SW_HIDE; m_pWnd->SetWindowPlacement(pWP); } if (pBytes && nBytes) delete[] pBytes; } Jimmy |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |