Re: GetWindowTextLength Function is reporting length as zero

Tech-Archive recommends: Speed Up your PC by fixing your registry



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:

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
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

.


Quantcast