How to redraw the control while in property page ?

Hi,

I am using MFC 6.0 for developing activex controls.

I have a caption property and an edit field in the default property page.

I am displaying the property page in the run time to the user.  When the user types text in the caption property the control should
immediately display the given text before pressing the Apply button.

can anybody help me how to do this.

thanks.
baskar.
vimicroAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
yazdchiConnect With a Mentor Commented:
Hi,

Try Invalidating the Edit Ctrl first and then do either UpdateWindow() or as Nicolay Ch suggested RedrawWindow(), personnaly I've never userd RedrawWindow so I don't know if it would word, but from the name it sounds like it should.

m_myEditCntrl.Invalidate();
UpdateWindow();


This should refresh the window; Invalidate function will force the Windows to also repaint the EditCtrl.

Hope this help.

Regards,
Mohsen
0
 
Nicolay_ChCommented:
Try to use RedrawWindow() / RepaintWindow()
0
All Courses

From novice to tech pro — start learning today.