Click here to Skip to main content
15,941,690 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: how can we avoid error D8016 ? Pin
Richard MacCutchan9-Oct-12 0:18
mveRichard MacCutchan9-Oct-12 0:18 
GeneralRe: how can we avoid error D8016 ? Pin
litu kumar7-Nov-12 21:49
litu kumar7-Nov-12 21:49 
GeneralRe: how can we avoid error D8016 ? Pin
Freak3026-Nov-12 3:11
Freak3026-Nov-12 3:11 
QuestionChild dialog shadow remains Pin
shivareaj5-Oct-12 7:30
shivareaj5-Oct-12 7:30 
AnswerRe: Child dialog shadow remains Pin
Richard MacCutchan5-Oct-12 22:35
mveRichard MacCutchan5-Oct-12 22:35 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 6:02
shivareaj6-Oct-12 6:02 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan6-Oct-12 6:07
mveRichard MacCutchan6-Oct-12 6:07 
GeneralRe: Child dialog shadow remains Pin
shivareaj6-Oct-12 17:55
shivareaj6-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<idispatch> pDispColumnView;
CComPtr<itrackingdatamanager> pManager;
pManager.CoCreateInstance(CLSID_TrackingDataManager);
if (pManager)
pManager->GetColumnView(dViewId, &pDispColumnView);
CComQIPtr<itrackingcolumnview> pColumnView(pDispColumnView);
if (pColumnView == NULL)
return;
CModifyColumnViewDlg dlg;
dlg.SetColumnView(pColumnView);
dlg.SetType(m_lSolution, m_lListType);
dlg.SetTrackGroupCd(m_dTrackGroupCd);
std::set<cstring>* pExistingNames = GetExistingNames(iIndex);
dlg.SetExistingNames(pExistingNames);
C++
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 Pin
Richard MacCutchan6-Oct-12 21:30
mveRichard MacCutchan6-Oct-12 21:30 
QuestionHow to call manged api from unmanaged code? Pin
litu kumar4-Oct-12 3:25
litu kumar4-Oct-12 3:25 
AnswerRe: How to call manged api from unmanaged code? Pin
Richard Andrew x645-Oct-12 9:30
professionalRichard Andrew x645-Oct-12 9:30 
GeneralRe: How to call manged api from unmanaged code? Pin
litu kumar15-Oct-12 2:13
litu kumar15-Oct-12 2:13 
GeneralRe: How to call manged api from unmanaged code? Pin
Richard Andrew x6415-Oct-12 6:46
professionalRichard Andrew x6415-Oct-12 6:46 
QuestionHow to create CLI Interface to access .net API from C++ code? Pin
litu kumar3-Oct-12 0:19
litu kumar3-Oct-12 0:19 
Questionoperato precendance question Pin
Amrit Agr1-Oct-12 22:04
Amrit Agr1-Oct-12 22:04 
AnswerRe: operato precendance question Pin
Richard MacCutchan2-Oct-12 2:58
mveRichard MacCutchan2-Oct-12 2:58 
AnswerRe: operato precendance question Pin
jschell2-Oct-12 8:51
jschell2-Oct-12 8:51 
AnswerRe: operato precendance question Pin
skrtbhtngr15-Nov-12 0:39
skrtbhtngr15-Nov-12 0:39 
QuestionLarge integer class please help Pin
Msemler9328-Sep-12 1:29
Msemler9328-Sep-12 1:29 
AnswerRe: Large integer class please help Pin
Richard MacCutchan28-Sep-12 2:05
mveRichard MacCutchan28-Sep-12 2:05 
AnswerRe: Large integer class please help Pin
jschell28-Sep-12 10:22
jschell28-Sep-12 10:22 
GeneralRe: Large integer class please help Pin
Msemler9329-Sep-12 9:52
Msemler9329-Sep-12 9:52 
GeneralRe: Large integer class please help Pin
jschell30-Sep-12 8:12
jschell30-Sep-12 8:12 
QuestionHOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) Pin
williamjr19-Sep-12 22:09
williamjr19-Sep-12 22:09 
AnswerRe: HOW CAN I CREATE A TRAPEZUM WITH A CIRCLE INSIDE IT??(CODE) Pin
Wes Aday20-Sep-12 3:57
professionalWes Aday20-Sep-12 3:57 

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

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