Edit Control Problems
ok heres the deal I''ve got a window full of edit controls... I need to be notified by the edit controls any time the user makes a change to the text of each edit control (so I can update other controls) well the problem is only way I have found to do this (base on the info in MS-VC''s help files) is to do a SendMessage (EM_GETMODIFIED) to each edit using a timer... this seams to create bugs... like the cursor keeps on jumping to the begining of the text or the text just magicaly disapears... I tried to fix it by making shure that the edit control that has been changed doesn''t get the update message.... well this only half worked.... it seems to have lessened the problem but it still doesn''t fix it... anyone got an idea?
c++?
you should be able to handle it in your winproc (windows will send the messages there by itself).
--- krez (krezisback@aol.com)
you should be able to handle it in your winproc (windows will send the messages there by itself).
--- krez (krezisback@aol.com)
Take a look at EN_UPDATE and EN_CHANGE.
These messages are sent when the contents of an edit control changes.
These messages are sent when the contents of an edit control changes.
< snip from Platform SDK >
EN_CHANGE
The EN_CHANGE notification message is sent when the user has taken an action that may have altered text in an edit control. Unlike the EN_UPDATE notification message, this notification message is sent after the system updates the screen. The parent window of the edit control receives this notification message through a WM_COMMAND message.
< /snip >
Look for that message in the Platform SDK and it will give you everything you need to know .
Here is a link to get you pointed in the right direction.
Slepyii
Edited by - slepyii on December 13, 2001 10:29:26 AM
EN_CHANGE
The EN_CHANGE notification message is sent when the user has taken an action that may have altered text in an edit control. Unlike the EN_UPDATE notification message, this notification message is sent after the system updates the screen. The parent window of the edit control receives this notification message through a WM_COMMAND message.
< /snip >
Look for that message in the Platform SDK and it will give you everything you need to know .
Here is a link to get you pointed in the right direction.
Slepyii
Edited by - slepyii on December 13, 2001 10:29:26 AM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement