Click here to Skip to main content
       

Managed C++/CLI

 
AnswerRe: how can we avoid error D8016 ? PinmvpRichard MacCutchan9-Oct-12 0:18 
GeneralRe: how can we avoid error D8016 ? Pinmemberlitu kumar7-Nov-12 21:49 
GeneralRe: how can we avoid error D8016 ? PinmemberFreak3026-Nov-12 3:11 
QuestionChild dialog shadow remains Pinmembershivareaj5-Oct-12 7:30 
AnswerRe: Child dialog shadow remains PinmvpRichard MacCutchan5-Oct-12 22:35 
GeneralRe: Child dialog shadow remains Pinmembershivareaj6-Oct-12 6:02 
GeneralRe: Child dialog shadow remains PinmvpRichard MacCutchan6-Oct-12 6:07 
GeneralRe: Child dialog shadow remains [modified] Pinmembershivareaj6-Oct-12 17:55 
Thanks for reply, I have seen same design patterns(using child dialog)in the same application but there is no issue there. I compared the code, am not finding any difference in RePainting aspects.
 
here i have sample code..
 
Below used OnModifyview dialog is child dialog of a dialog.
 
void CSelectColumnViewDlg::OnModifyview()
{
int iIndex = m_ctrlColumnViewList.GetCurSel();
if (iIndex < 0)
return;
double dViewId = m_ctrlColumnViewList.GetItemDataDouble(iIndex);
if (dViewId == 0.0)
return;
CWaitCursor wait;
CComPtr pDispColumnView;
CComPtr pManager;
pManager.CoCreateInstance(CLSID_TrackingDataManager);
if (pManager)
pManager->GetColumnView(dViewId, &pDispColumnView);
CComQIPtr pColumnView(pDispColumnView);
if (pColumnView == NULL)
return;
CModifyColumnViewDlg dlg;
dlg.SetColumnView(pColumnView);
dlg.SetType(m_lSolution, m_lListType);
dlg.SetTrackGroupCd(m_dTrackGroupCd);
std::set* pExistingNames = GetExistingNames(iIndex);
dlg.SetExistingNames(pExistingNames);
if (dlg.DoModal() == IDOK)
{	//Issue exist only when i edit in child dialog & click above OK (child dialog OK)	

HWND hWndAncestor = ::GetAncestor(GetSafeHwnd(), GA_ROOT);
 
//hWndAncestor->Invalidate(); //not working
//InvalidateRect(hWndAncestor, NULL, TRUE); //not working
//::RedrawWindow(hWndAncestor,NULL,NULL,RDW_INVALIDATE); //not working
//::UpdateWindow(hWndAncestor); //not working

 
m_ctrlColumnViewList.DeleteString(iIndex);
 
CComBSTR bstrName;
pColumnView->get_Name(&bstrName);
int iIndex = m_ctrlColumnViewList.AddString(CString(bstrName));
m_ctrlColumnViewList.SetItemDataDouble(iIndex, dViewId);
m_ctrlColumnViewList.SetCurSel(iIndex);
 
//Invalidate(); //not working
//RedrawWindow();	//not working

}
if (pExistingNames)
delete pExistingNames;
Invalidate();
//OnPaint(); //not working
//RedrawWindow();// not working
}

modified 7-Oct-12 0:04am.

GeneralRe: Child dialog shadow remains PinmvpRichard MacCutchan6-Oct-12 21:30 
QuestionHow to call manged api from unmanaged code? [modified] Pinmemberlitu kumar4-Oct-12 3:25 
AnswerRe: How to call manged api from unmanaged code? PinmemberRichard Andrew x645-Oct-12 9:30 
GeneralRe: How to call manged api from unmanaged code? Pinmemberlitu kumar15-Oct-12 2:13 
GeneralRe: How to call manged api from unmanaged code? PinmemberRichard Andrew x6415-Oct-12 6:46 
QuestionHow to create CLI Interface to access .net API from C++ code? [modified] Pinmemberlitu kumar3-Oct-12 0:19 
Questionoperato precendance question PinmemberAmrit Agr1-Oct-12 22:04 
AnswerRe: operato precendance question PinmvpRichard MacCutchan2-Oct-12 2:58 
AnswerRe: operato precendance question Pinmemberjschell2-Oct-12 8:51 
AnswerRe: operato precendance question Pinmemberskrtbhtngr15-Nov-12 0:39 
QuestionLarge integer class please help PinmemberMsemler9328-Sep-12 1:29 
AnswerRe: Large integer class please help PinmvpRichard MacCutchan28-Sep-12 2:05 
AnswerRe: Large integer class please help Pinmemberjschell28-Sep-12 10:22 
GeneralRe: Large integer class please help PinmemberMsemler9329-Sep-12 9:52 
GeneralRe: Large integer class please help Pinmemberjschell30-Sep-12 8:12 
QuestionHOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) Pinmemberwilliamjr19-Sep-12 22:09 
AnswerRe: HOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) PinmemberWes Aday20-Sep-12 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 30 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid