How to find out the window is read-only?
-
Hi, If you see a caret on window, you can type character in or not depending on the purpose of the window. For Edit class window, we can find out the window is read-only or not by checking window style bit (ES_READONLY). Though, for user defined window class(es), I don't know how to do this. For example, debug output window of VC IDE has caret but that window is read-only. I want to know a way to find out given window which has a caret is a read-only or not. Why? The reason is I'm writing a tool that shows caps-lock status using tiny icon that chases caret, but for read-only window, I want to disable this chasing. If you don't understand what I want to do in my app, please just igonre this. Important thing to me is, a way to know window is read-only or not. (FYI: Have you ever heared about IME (input method editor)? IME seems to know a way I want to do.) I love Code Project, do you? Kurotora
-
Hi, If you see a caret on window, you can type character in or not depending on the purpose of the window. For Edit class window, we can find out the window is read-only or not by checking window style bit (ES_READONLY). Though, for user defined window class(es), I don't know how to do this. For example, debug output window of VC IDE has caret but that window is read-only. I want to know a way to find out given window which has a caret is a read-only or not. Why? The reason is I'm writing a tool that shows caps-lock status using tiny icon that chases caret, but for read-only window, I want to disable this chasing. If you don't understand what I want to do in my app, please just igonre this. Important thing to me is, a way to know window is read-only or not. (FYI: Have you ever heared about IME (input method editor)? IME seems to know a way I want to do.) I love Code Project, do you? Kurotora
For example, debug output window of VC IDE has caret but that window is read-only. Probably because it's based on a RichEdit control. Read-only RichEdit windows will allow a user to click and place the cursor. In fact, if you write to a read-only RE window, the text could get placed wherever the user has placed the cursor. :eek: For what you're doing, why does checking the status of the window not work?
-
For example, debug output window of VC IDE has caret but that window is read-only. Probably because it's based on a RichEdit control. Read-only RichEdit windows will allow a user to click and place the cursor. In fact, if you write to a read-only RE window, the text could get placed wherever the user has placed the cursor. :eek: For what you're doing, why does checking the status of the window not work?