I am trying to add a controls to a sample editor (RichEdit) i'm reconstructing. I need to set the INDENT to 4 spaces when I hit the TAB key. The default is 8 spaces in the editor program and there is no funtion that allow control of this. I want to include such a funtion but i don't know how. ..
I did a search and can't find anything about how to do this. I used the key words INDENT and TAB to do my search at most known Assembler Forums and came up with nothing.
Do anyone know how to do this or can someone provide some links to this type of information?
I also been thinking of how to do it with a macro or manually which would be very interesting, but that is just a thought for now.
Thanks in advance
Sending the control a EM_SETTABSTOPS message (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/em_settabstops.asp) will work for Rich Edit 3.0 and later. The tab width is specified in dialog template units, multiply times four to convert it to character units. AFAIK this message will also work for Windows 2000 and later even when using Rich Edit 1.0, because Rich Edit 1.0 is actually a Rich Edit 3.0 or later emulating a Rich Edit 1.0.
MSDN: About Rich Edit Controls (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp).
Thanks MichaelW