Password field and caps lock redraw problem |
Post Reply |
Author | |
pietervdm
Newbie Joined: 07 April 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 07 April 2008 at 9:28am |
I have a propertygriditem with the default password
mask. If caps lock is on and I enter text into the
propertygriditem the whole propertygrid turns grey,
except for the propertygriditem's textbox (where I am currently
entering text into). |
|
pietervdm
Newbie Joined: 07 April 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
A workaround to this problem was to simply call RedrawControl on the property grid control . This can be done when handling the XTPWM_PROPERTYGRID_NOTIFY message with the XTP_PGN_EDIT_CHANGED argument. An example is shown below:
// in the message map ON_MESSAGE(XTPWM_PROPERTYGRID_NOTIFY, OnPropertyGridNotify) // the method LRESULT CDlgUserCreateWithPropertyGrid::OnPropertyGridNotify(WPARAM wParam, LPARAM lParam) { if (wParam == XTP_PGN_EDIT_CHANGED) { m_wndPropertyGrid.RedrawControl(); } return FALSE; } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |