Re: GetWindowTextLength Function is reporting length as zero
- From: sachinkundu@xxxxxxxxx
- Date: 20 Nov 2006 20:00:07 -0800
Hi Joseph/ Mr Asm
I think that since i have created the variable m_IMEEdit of type
CIMEEdit, i have no reason to subclass it , because its already of that
type.
I cant solve the problem still though. Any inputs still. Actually the
original intent was to make a CJK aware edit box and i was believing
the MSDN implementation might serve a useful starting point.
Thanks
Sachin
Joseph M. Newcomer wrote:
It is extremely rare that you ever need to call SubclassDlgItem. Like GetDlgItem, this
should be avoided. If you bind the control to m_IMEEdit using the ClassWizard, that is
sufficient.
joe
On Mon, 20 Nov 2006 11:33:16 GMT, MrAsm <invalid@xxxxxxxxxxx> wrote:
On 20 Nov 2006 03:02:14 -0800, sachinkundu@xxxxxxxxx wrote:Joseph M. Newcomer [MVP]
I have created an edit control in resource, attached a variable
m_IMEEdit with it of type CIMEEdit which is taken from the MSDN
examples on IME.
I don't know this control, but, in case it would be required, did you
call SubclassDlgItem in dialog-box's OnInitDialog() ?
Something like this:
// ... in OnInitDialog:
VERIFY( m_IMEEdit.SubclassDlgItem( <your control ID>, this ) );
Mr Asm
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: GetWindowTextLength Function is reporting length as zero
- From: Norbert Unterberg
- Re: GetWindowTextLength Function is reporting length as zero
- From: Joseph M . Newcomer
- Re: GetWindowTextLength Function is reporting length as zero
- References:
- GetWindowTextLength Function is reporting length as zero
- From: sachinkundu
- Re: GetWindowTextLength Function is reporting length as zero
- From: MrAsm
- Re: GetWindowTextLength Function is reporting length as zero
- From: Joseph M . Newcomer
- GetWindowTextLength Function is reporting length as zero
- Prev by Date: Re: The performance of Editplus is much better than notepad,Why?
- Next by Date: Re: How to recognize that a window handler is of Console window
- Previous by thread: Re: GetWindowTextLength Function is reporting length as zero
- Next by thread: Re: GetWindowTextLength Function is reporting length as zero
- Index(es):