RE: RichEdit title bar text

new topic     » goto parent     » topic index » view thread      » older message » newer message

Technically, all controls are windows.  Some just have more interesting
event handlers. :)

Tone, are you saying that you've created a RichEdit with WS_CAPTION?  You
might try manually sending WM_SETTEXT.  setText() will use SetWindowText()
for a RichEdit, which goes to the edit part of the RichEdit, rather than the
window caption.  The docs for SetWindowText() say that it will correctly
change the caption on a listbox with WS_CAPTION set, but I've never tried to
put a caption on a RichEdit control directly.

Matt Lewis

> -----Original Message-----
> From: Brian Broker [mailto:bkb at cnw.com]

> I guess I have to retract my reply since the PSDK states that "A rich 
> edit control is a window in which the user can enter, edit, format, 
> print, and save text."  I didn't know that you could have a richedit 
> control with a title...
> 
> I'll have to figure out the the correct message to send to 
> the control.
> 
> -- Brian
> 
> Brian Broker wrote:
> > A control is not a window.  A window contains the control.  Use 
> > setText() on the window containing the richedit control.
> > 
> > -- Brian
> > 
> > 
> > tone.skoda wrote:
> > > i got a simple question:
> > > how do you set window title to RichEdit control?
> > > not the data but title bar, window has style WS_CAPTION
> > > 
> > > setText() changes data not title

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu