Click here to Skip to main content
15,850,548 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I initialize an CListBox& null reference ? Pin
CPallini1-Jan-11 8:54
mveCPallini1-Jan-11 8:54 
AnswerRe: How can I initialize an CListBox& null reference ? Pin
bleedingfingers2-Jan-11 21:08
bleedingfingers2-Jan-11 21:08 
QuestionHow can send message to an notepad ? [modified] Pin
mesajflaviu1-Jan-11 3:53
mesajflaviu1-Jan-11 3:53 
AnswerRe: How can send message to an notepad ? Pin
Espen Harlinn1-Jan-11 5:43
professionalEspen Harlinn1-Jan-11 5:43 
AnswerRe: How can send message to an notepad ? Pin
«_Superman_»1-Jan-11 8:54
professional«_Superman_»1-Jan-11 8:54 
GeneralRe: How can send message to an notepad ? Pin
normanS1-Jan-11 15:32
normanS1-Jan-11 15:32 
AnswerRe: How can send message to an notepad ? Pin
Luc Pattyn1-Jan-11 17:15
sitebuilderLuc Pattyn1-Jan-11 17:15 
Question891011 - nested groups in a property grid Pin
ilostmyid231-Dec-10 23:48
professionalilostmyid231-Dec-10 23:48 
hi how can i have nested groups in a CPropertyGridCtrl without increasing indent?
let me depict what i'm going to do. i've a ready program with the following output:
original[^]
i tried to create the same output with the following code:
void AcItemPropertyPane::pr_appendLinkProp(CMFCPropertyGridProperty *pGroup, const AsLink &link)
{
	CMFCPropertyGridProperty* pGroup2 = new CMFCPropertyGridProperty("Coordinate for Goto", 0, TRUE);
	CMFCPropertyGridProperty* pProp = new CMFCPropertyGridProperty("Address X", (_variant_t) link.col, " ");
	pProp->EnableSpinControl(TRUE, 0, 99);
	pGroup2->AddSubItem(pProp);
	pProp = new CMFCPropertyGridProperty("Address Y", (_variant_t) link.row, " ");
	pProp->EnableSpinControl(TRUE, 0, 9);
	pGroup2->AddSubItem(pProp);
	pGroup->AddSubItem(pGroup2);
	pProp = new CMFCPropertyGridColorProperty("Color of Goto Route", (_variant_t) link.color, NULL, "Goto line color change");
	pGroup->AddSubItem(pProp);
}

void AcItemPropertyPane::pr_initADSensorPropList(const AsItemSpec &is)
{
	d_wndPropList.RemoveAll();
	CMFCPropertyGridProperty *pGroup = new CMFCPropertyGridProperty("AD Setup");
	CMFCPropertyGridProperty *pProp = new CMFCPropertyGridProperty("A/D port", " ", "A/D port setup");
	pGroup->AddSubItem(pProp);
	pGroup->AddSubItem(pr_newFuncProp(is.func));
	pProp = new CMFCPropertyGridProperty("Compare variable/value", " ", "When jump is compare to Input value (0-255).");
	pGroup->AddSubItem(pProp);
	pr_appendLinkProp(pGroup, is.link);
	d_wndPropList.AddProperty(pGroup);
}

(pr_initADSensorPropList is called).
but it resulted in the following output:
mine[^]
there's also a difference in the original color property and mine. also separator in coordinate differ (; with ,)
how can i make mine appear the same as the original one?
thank u
QuestionWhy is index in document gone? [modified] Pin
followait31-Dec-10 17:59
followait31-Dec-10 17:59 
AnswerRe: Why is index in document gone? Pin
Richard MacCutchan1-Jan-11 1:41
mveRichard MacCutchan1-Jan-11 1:41 
GeneralRe: Why is index in document gone? [modified] Pin
followait1-Jan-11 6:47
followait1-Jan-11 6:47 
QuestionWhy the first parameter of CreateEvent () method is NULL Pin
pandit8431-Dec-10 1:02
pandit8431-Dec-10 1:02 
AnswerRe: Why the first parameter of CreateEvent () method is NULL Pin
jk chan31-Dec-10 2:09
jk chan31-Dec-10 2:09 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
pandit8431-Dec-10 3:14
pandit8431-Dec-10 3:14 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
«_Superman_»31-Dec-10 5:54
professional«_Superman_»31-Dec-10 5:54 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
fat_boy31-Dec-10 5:54
fat_boy31-Dec-10 5:54 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
bleedingfingers2-Jan-11 21:12
bleedingfingers2-Jan-11 21:12 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
pandit842-Jan-11 23:30
pandit842-Jan-11 23:30 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
bleedingfingers2-Jan-11 23:37
bleedingfingers2-Jan-11 23:37 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
pandit843-Jan-11 0:30
pandit843-Jan-11 0:30 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
bleedingfingers3-Jan-11 1:32
bleedingfingers3-Jan-11 1:32 
GeneralRe: Why the first parameter of CreateEvent () method is NULL Pin
pandit843-Jan-11 2:29
pandit843-Jan-11 2:29 
Questionfile format Pin
yogish29331-Dec-10 0:41
yogish29331-Dec-10 0:41 
AnswerRe: file format Pin
CPallini31-Dec-10 4:53
mveCPallini31-Dec-10 4:53 
Questionconvertion PRtime format to normal readable form..? Pin
yogish29330-Dec-10 21:19
yogish29330-Dec-10 21: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.