Click here to Skip to main content
15,569,408 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Customize CFileDialog? Pin
Sarath C8-Oct-12 23:35
Sarath C8-Oct-12 23:35 
GeneralRe: Customize CFileDialog? Pin
bosfan9-Oct-12 4:06
bosfan9-Oct-12 4:06 
QuestionHow to associate an index value with the cstring objects in a CStringArray in MFC.? Pin
mbatra318-Oct-12 1:12
mbatra318-Oct-12 1:12 
AnswerRe: How to associate an index value with the cstring objects in a CStringArray in MFC.? Pin
_AnsHUMAN_ 8-Oct-12 2:25
_AnsHUMAN_ 8-Oct-12 2:25 
AnswerRe: How to associate an index value with the cstring objects in a CStringArray in MFC.? Pin
Richard MacCutchan8-Oct-12 3:44
mveRichard MacCutchan8-Oct-12 3:44 
QuestionChild dialog shadow remains Pin
shivareaj8-Oct-12 0:04
shivareaj8-Oct-12 0:04 
AnswerRe: Child dialog shadow remains Pin
Sivaraman Dhamodharan8-Oct-12 0:11
Sivaraman Dhamodharan8-Oct-12 0:11 
GeneralRe: Child dialog shadow remains Pin
shivareaj8-Oct-12 0:21
shivareaj8-Oct-12 0:21 
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);
C++
if (dlg.DoModal() == IDOK)
{	//Issue exist only when i edit in child dialog & click OK (above 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
}
GeneralRe: Child dialog shadow remains Pin
Sivaraman Dhamodharan8-Oct-12 1:30
Sivaraman Dhamodharan8-Oct-12 1:30 
AnswerRe: Child dialog shadow remains Pin
Richard MacCutchan8-Oct-12 3:41
mveRichard MacCutchan8-Oct-12 3:41 
GeneralRe: Child dialog shadow remains Pin
shivareaj8-Oct-12 5:21
shivareaj8-Oct-12 5:21 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan8-Oct-12 5:46
mveRichard MacCutchan8-Oct-12 5:46 
QuestionC++ vs MFC Pin
Sivaraman Dhamodharan7-Oct-12 22:37
Sivaraman Dhamodharan7-Oct-12 22:37 
AnswerRe: C++ vs MFC Pin
Jochen Arndt7-Oct-12 22:47
professionalJochen Arndt7-Oct-12 22:47 
AnswerRe: C++ vs MFC Pin
CPallini8-Oct-12 1:08
mveCPallini8-Oct-12 1:08 
QuestionException in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Bob Pryor4-Oct-12 7:50
Bob Pryor4-Oct-12 7:50 
AnswerRe: Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Stephen Hewitt7-Oct-12 5:59
Stephen Hewitt7-Oct-12 5:59 
AnswerRe: Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Bob Pryor12-Oct-12 7:30
Bob Pryor12-Oct-12 7:30 
GeneralRe: Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Stephen Hewitt12-Oct-12 18:17
Stephen Hewitt12-Oct-12 18:17 
AnswerCMFCPropertyGridCtrl in a CPropertyPage (or a CMFCPropertyPage) Pin
Ursus3108-Nov-15 23:32
Ursus3108-Nov-15 23:32 
Questionneed code to check if the value is numeric in C Pin
Mikerush74-Oct-12 7:49
Mikerush74-Oct-12 7:49 
AnswerRe: need code to check if the value is numeric in C Pin
Richard MacCutchan4-Oct-12 8:22
mveRichard MacCutchan4-Oct-12 8:22 
GeneralRe: need code to check if the value is numeric in C Pin
Mikerush74-Oct-12 8:50
Mikerush74-Oct-12 8:50 
GeneralRe: need code to check if the value is numeric in C Pin
Richard MacCutchan4-Oct-12 8:53
mveRichard MacCutchan4-Oct-12 8:53 
AnswerRe: need code to check if the value is numeric in C Pin
CPallini4-Oct-12 10:48
mveCPallini4-Oct-12 10:48 

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.