Click here to Skip to main content
15,921,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCustomize CFileDialog? Pin
bosfan8-Oct-12 5:05
bosfan8-Oct-12 5:05 
AnswerRe: Customize CFileDialog? Pin
jeron18-Oct-12 5:52
jeron18-Oct-12 5:52 
GeneralRe: Customize CFileDialog? Pin
bosfan8-Oct-12 21:37
bosfan8-Oct-12 21:37 
SuggestionRe: Customize CFileDialog? Pin
David Crow8-Oct-12 6:48
David Crow8-Oct-12 6:48 
GeneralRe: Customize CFileDialog? Pin
bosfan9-Oct-12 3:05
bosfan9-Oct-12 3:05 
AnswerRe: Customize CFileDialog? Pin
Sarath C8-Oct-12 22:35
Sarath C8-Oct-12 22:35 
GeneralRe: Customize CFileDialog? Pin
bosfan9-Oct-12 3:06
bosfan9-Oct-12 3:06 
QuestionHow to associate an index value with the cstring objects in a CStringArray in MFC.? Pin
mbatra318-Oct-12 0:12
mbatra318-Oct-12 0:12 
AnswerRe: How to associate an index value with the cstring objects in a CStringArray in MFC.? Pin
_AnsHUMAN_ 8-Oct-12 1:25
_AnsHUMAN_ 8-Oct-12 1:25 
AnswerRe: How to associate an index value with the cstring objects in a CStringArray in MFC.? Pin
Richard MacCutchan8-Oct-12 2:44
mveRichard MacCutchan8-Oct-12 2:44 
QuestionChild dialog shadow remains Pin
shivareaj7-Oct-12 23:04
shivareaj7-Oct-12 23:04 
AnswerRe: Child dialog shadow remains Pin
Sivaraman Dhamodharan7-Oct-12 23:11
Sivaraman Dhamodharan7-Oct-12 23:11 
GeneralRe: Child dialog shadow remains Pin
shivareaj7-Oct-12 23:21
shivareaj7-Oct-12 23:21 
GeneralRe: Child dialog shadow remains Pin
Sivaraman Dhamodharan8-Oct-12 0:30
Sivaraman Dhamodharan8-Oct-12 0:30 
AnswerRe: Child dialog shadow remains Pin
Richard MacCutchan8-Oct-12 2:41
mveRichard MacCutchan8-Oct-12 2:41 
GeneralRe: Child dialog shadow remains Pin
shivareaj8-Oct-12 4:21
shivareaj8-Oct-12 4:21 
GeneralRe: Child dialog shadow remains Pin
Richard MacCutchan8-Oct-12 4:46
mveRichard MacCutchan8-Oct-12 4:46 
QuestionC++ vs MFC Pin
Sivaraman Dhamodharan7-Oct-12 21:37
Sivaraman Dhamodharan7-Oct-12 21:37 
AnswerRe: C++ vs MFC Pin
Jochen Arndt7-Oct-12 21:47
professionalJochen Arndt7-Oct-12 21:47 
AnswerRe: C++ vs MFC Pin
CPallini8-Oct-12 0:08
mveCPallini8-Oct-12 0:08 
QuestionException in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Bob Pryor4-Oct-12 6:50
Bob Pryor4-Oct-12 6:50 
AnswerRe: Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Stephen Hewitt7-Oct-12 4:59
Stephen Hewitt7-Oct-12 4:59 
AnswerRe: Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Bob Pryor12-Oct-12 6:30
Bob Pryor12-Oct-12 6:30 
GeneralRe: Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl Pin
Stephen Hewitt12-Oct-12 17:17
Stephen Hewitt12-Oct-12 17:17 
AnswerCMFCPropertyGridCtrl in a CPropertyPage (or a CMFCPropertyPage) Pin
Ursus3108-Nov-15 22:32
Ursus3108-Nov-15 22:32 
I had the same problem using a CMFCPropertyGridCtrl in a CPropertyPage with VS2012 (without Touch Screen).

Using the resouce in a CDialog is no problem, but when used in a CpropertyPage,the page calls OnDestroy as soon as it should be initialized.

The Solution was, dont include the CMFCPropertyGridCtrl aus a resource control and dynamically create it after the InitDialog of the CProperyPage is called.

CMFCPropertyGridCtrl * pctrlPropertyGrid = new CMFCPropertyGridCtrl();

if (pctrlPropertyGrid)
{
CRect rect;
GetWindowRect(&rect);
ScreenToClient(&rect);
rect.DeflateRect(5, 10, 5, 10);

pctrlPropertyGrid->Create(WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER, rect, this, IDC_MFCPROPERTYGRID1);

...
}

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.