Click here to Skip to main content
15,890,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:20
BobInNJ16-Oct-08 11:20 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 10:47
Mark Salsbery16-Oct-08 10:47 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 12:41
BobInNJ16-Oct-08 12:41 
GeneralRe: A Very Simple MFC Application Pin
User 21559716-Oct-08 18:17
User 21559716-Oct-08 18:17 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ17-Oct-08 2:32
BobInNJ17-Oct-08 2:32 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery17-Oct-08 4:48
Mark Salsbery17-Oct-08 4:48 
GeneralRe: A Very Simple MFC Application Pin
User 21559717-Oct-08 7:15
User 21559717-Oct-08 7:15 
QuestionRefresh a dockable pane Pin
Laan8216-Oct-08 6:22
Laan8216-Oct-08 6:22 
Hi all,

I'm trying to refresh the content of a CDockablePane in order to update the values that appear in the panel at runtime anytime that it is necessary. But I'm don't able to find where and How I have to do this task. My code is this:

int CPropertiesWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{

	if (CDockablePane::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	CRect rectDummy;
	rectDummy.SetRectEmpty ();

	if (!m_wndPropList.Create (WS_VISIBLE | WS_CHILD, rectDummy, this, 1))
	{
		TRACE0("Failed to create Properies Grid \n");
		return -1;      // fail to create
	}

	m_wndPropList.EnableHeaderCtrl (FALSE);
	m_wndPropList.EnableDescriptionArea ();
	m_wndPropList.SetVSDotNetLook ();	

	CMFCPropertyGridProperty* pGroup1 = new CMFCPropertyGridProperty(_T("Visibilità Livelli"),ids);
	string s = "Livello";
	CGOEView d;
	int level = d.GetNumberOfLevel();
	for(int j=0;j<5;j++)
	{
		TRACE(_T("ciao"));
		stringstream st;
		st<<s<<j;
		string stra = st.str();
		CString stri (d.level[2][j].c_str());
		CString str (stra.c_str());
		pGroup1->AddSubItem(new CMFCPropertyGridProperty(stri, (_variant_t) true, _T("Questa è una descrizione"),j));
	}
	
		m_wndPropList.AddProperty(pGroup1);

	return 0;
}


For example I will want to erase the last subitem of pgroup1 (in the part of the text pointed out by bold text) in which way I can do this at runtime?


NewsLoading a DLL from memory Pin
Hamid_RT16-Oct-08 4:33
Hamid_RT16-Oct-08 4:33 
QuestionRe: Loading a DLL from memory Pin
CPallini16-Oct-08 5:38
mveCPallini16-Oct-08 5:38 
AnswerRe: Loading a DLL from memory Pin
Hamid_RT16-Oct-08 6:21
Hamid_RT16-Oct-08 6:21 
GeneralRe: Loading a DLL from memory Pin
Perspx16-Oct-08 5:56
Perspx16-Oct-08 5:56 
GeneralRe: Loading a DLL from memory Pin
Hamid_RT16-Oct-08 6:21
Hamid_RT16-Oct-08 6:21 
GeneralRe: Loading a DLL from memory Pin
Naveen16-Oct-08 15:35
Naveen16-Oct-08 15:35 
GeneralRe: Loading a DLL from memory Pin
enhzflep16-Oct-08 16:46
enhzflep16-Oct-08 16:46 
QuestionDLL load issue Pin
George_George16-Oct-08 3:22
George_George16-Oct-08 3:22 
AnswerRe: DLL load issue Pin
Hamid_RT16-Oct-08 4:19
Hamid_RT16-Oct-08 4:19 
GeneralRe: DLL load issue Pin
George_George17-Oct-08 3:20
George_George17-Oct-08 3:20 
QuestionRe: DLL load issue Pin
led mike16-Oct-08 4:26
led mike16-Oct-08 4:26 
AnswerRe: DLL load issue Pin
Hamid_RT16-Oct-08 4:30
Hamid_RT16-Oct-08 4:30 
AnswerRe: DLL load issue Pin
cmk16-Oct-08 6:52
cmk16-Oct-08 6:52 
GeneralRe: DLL load issue Pin
led mike16-Oct-08 7:19
led mike16-Oct-08 7:19 
GeneralRe: DLL load issue Pin
cmk16-Oct-08 12:42
cmk16-Oct-08 12:42 
GeneralRe: DLL load issue Pin
led mike17-Oct-08 5:21
led mike17-Oct-08 5:21 
GeneralRe: DLL load issue Pin
George_George17-Oct-08 3:19
George_George17-Oct-08 3:19 

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.