Yonatan
Nov 2nd, 1999, 10:35 PM
Some TextBox questions:
1. How do you check the TextBox's Appearance and BorderStyle, without checking the Appearance and BorderStyle properties? (With the API) The problem is, that the WS_EX_CLIENTEDGE is turned on only when both are set to 1. Also, when I create an edit field using CreateWindowEx with the "Edit" ClassName, how do I set this?
2. How do you get/set the TextBox's BackColor without using the built in property? I've tried to subclass the form and return a handle to a colorful brush (CreateBrushIndirect) when I catch a WM_CTLCOLOREDIT message, but the result was interestingly colorful: The background color of the TextBox did become the color I wanted, except behind the text! (???)
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
1. How do you check the TextBox's Appearance and BorderStyle, without checking the Appearance and BorderStyle properties? (With the API) The problem is, that the WS_EX_CLIENTEDGE is turned on only when both are set to 1. Also, when I create an edit field using CreateWindowEx with the "Edit" ClassName, how do I set this?
2. How do you get/set the TextBox's BackColor without using the built in property? I've tried to subclass the form and return a handle to a colorful brush (CreateBrushIndirect) when I catch a WM_CTLCOLOREDIT message, but the result was interestingly colorful: The background color of the TextBox did become the color I wanted, except behind the text! (???)
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)