المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : OnPaint Notification question



C++ Programming
10-12-2009, 03:00 PM
Hi,

I have a CFramewnd from which I create CDialog modeless flavor..

In the CDialog one of the controls is a CRicheditctrl which I populate with data


My problem the data from the Cricheditctrl is never displayed

The Dialog remains Solid Gray which is the same Background Color as the CFrameWnd Background

It just occurred to me the when I get OnPaint Notfication for the CFrameWnd I probably paint the Cdialog

Which lies at the Upper Left hand corner of the CFameWnd

However When I hit a breakpoint on the CDialog::Create I also set a BreakPoint on the OnPaint notfication handler

it never gets executed

When I change the Background color of the CFrameWnd to Red the CDialog displayes as Red Too...

Any Ideas ???

thankx