EM_SETSEL -- Edit Control Messages
-
I'm creating a plugin for Enterprise Manager's Stored Procedure dialog box to enable it to have "Find Text" capability. If you've seen this text box that contains the SQL Stored Procedure text, you'll know that it highlights certain key input text. So it's handling is slightly different than your average EditBox or RichTextBox control. I have found that this "DimensionEdit" object (the name of that text box control class), does NOT respond to any EM_* windows messages (eg. EM_SETSEL). It does, however, respond to general WM_GETTEXT and WM_SETTEXT messages. The funny thing is, it sort of acts like a RichTextBox control. When i'm in the Enterprise Manager program, I can select text in it and it will be highlighted correctly. BUT i want to be able to highlight text from an external application by passing windows messages. This "DimensionEdit" object may have its own custom message handling. I've searched everywhere for what this object is and can't find any info on it. A clumsy way to do this would be to set the font of the 'found' text. But that is just a workaround. So... if you can select the text manually in the program, then why can't i send a message to the control (via external app with SendMessage) to do the same?? Any ideas are GREATLY appreciated!:sigh:
-
I'm creating a plugin for Enterprise Manager's Stored Procedure dialog box to enable it to have "Find Text" capability. If you've seen this text box that contains the SQL Stored Procedure text, you'll know that it highlights certain key input text. So it's handling is slightly different than your average EditBox or RichTextBox control. I have found that this "DimensionEdit" object (the name of that text box control class), does NOT respond to any EM_* windows messages (eg. EM_SETSEL). It does, however, respond to general WM_GETTEXT and WM_SETTEXT messages. The funny thing is, it sort of acts like a RichTextBox control. When i'm in the Enterprise Manager program, I can select text in it and it will be highlighted correctly. BUT i want to be able to highlight text from an external application by passing windows messages. This "DimensionEdit" object may have its own custom message handling. I've searched everywhere for what this object is and can't find any info on it. A clumsy way to do this would be to set the font of the 'found' text. But that is just a workaround. So... if you can select the text manually in the program, then why can't i send a message to the control (via external app with SendMessage) to do the same?? Any ideas are GREATLY appreciated!:sigh: