Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:35pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Re: Utilities
« Reply #32 on: May 28th, 2009, 08:32am »
I was trying to detect when a new line has been added to the IDE either (I thought) was to:
1. Send a EM_GETLINECOUNT message with a certain delay eg 50ms or so but this can cause problems (ie all lines are reformatted and any the characters in the first 5 spaces will get shifted along the line). I imagine that EM_GETLINECOUNT also triggers the IDE to format the IDE into a recognisable form.
2. Try to PeekMessage the IDE message queue and intercept and WM_CHAR messages with the value of &D and then read the line, but I can't PeekMessage another thread's message queue.
Is there a way of detecting when the 'Enter' key is pressed in he IDE? The idea is to have a utility automatically get a new line rather than having the user to trigger a --do this-- utility.
Re: Utilities
« Reply #33 on: May 28th, 2009, 10:37am »
Quote:
intercept and WM_CHAR messages with the value of &D
I suppose in principle you could do that by subclassing the editor window, but the potential for getting it wrong and crashing out the editor is such that it's not something I would want to recommend.