If you are using windows.h and all the stuff...
USE the style ES_MULTILINE when creating the editcontrol and procces a message EN_CHANGE
I'm not really sure bout the last one, but go to your include directory and find the winuser.h
and then use the FIND dialog to find the first [ EN_] (space, E, N, _),
You'll see a few define EN_........
these are the notifications that a EDTI can send, so, these are messages you can proccess in the
edit-control's parent window's winproc
hope this helps
--- Per Westermark <pw...@ia...> escribió:
> Question: Ever thought about looking at MSDN?
>
> It probably takes longer to ask the questions than to get the answers.
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/en_change.asp
>
> /Per W
>
> On Mon, 20 Jun 2005, Noorez Kassam wrote:
>
> > 1. How do you set an EDIT control to detect changes in it so that you know
> > when to prompt the user to save it?
> >
> > 2. How do you set an EDIT control to automatically word wrap?
> >
> >
> > Most of the tutorials that I found showing how to use Win32 controls are not
> > in C++. I think there in Visual Basic?
> >
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
|