荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载]  MSVC Digest - 24 Dec 1998 to 27 Dec 1998 (#1998-352)
发信站: BBS 荔园晨风站 (Tue Dec 29 12:34:45 1998), 站内信件

【 以下文字转载自 tang 的信箱 】
【 原文由 Automatic 所发表 】
There are 4 messages totalling 237 lines in this issue.

Topics of the day:

  1. Rich edit control with hidden caret?
  2. Combo box question (2)
  3. Allowing Hard returns in an edit control.

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription/signoff info
and archives, see http://peach.ease.lsoft.com/archives/msvc.html .

----------------------------------------------------------------------

Date:    Sun, 27 Dec 1998 23:19:29 -0000
From:    Cliff Rowley <dozprompt@NOSPLASH.FORCE9.CO.UK>
Subject: Rich edit control with hidden caret?

OS:                 Windows 98
Compiler:           MSVC++ 6 [w/ Stingray OT] & SP1

Basic problem prognosis:

I am developing an IRC client to get myself a little "hands-on" socket
programming experience, and I am having a little trouble taming a rich edit
control.  It must not allow editing of any kind, and must not show a caret
of any kind (it must also not show signs of input focus - although typing
within the control should simply route to it's parent window).  But - it
must allow text selections and copy/paste.  Possibly also drag/drop.  I
cannot get my head around the documentation, especially as I also have my
head in several other books at the same time learning the pitfalls of socket
programming.  (you would think that it would be this that I am having
problems with!).

I can get the edit control to prevent editing, but I cannot hide the caret.
If I prevent the control from gaining input focus (therefore eliminating the
need for a caret) I cannot make selections.  If I let the control gain input
focus, and disable editing, when a key is pressed, the PC beeps (how
annoying) because it's disabled...  Arrrgh!

This feature is present in other IRC clients, but I cannot seem to replicate
it.  It is also present in Netscape and Internet Explorer (in the main HTML
views).

Any help would be greatly appreciated.

Yours,

Cliff Rowley.

P.S. Merry Christmas!  (and happy new year)...
P.P.S.  Just out of interest - is it possible to stream info in/out of a
HTML view or shdocvw from/to memory?

------------------------------

Date:    Sun, 27 Dec 1998 18:11:35 -0800
From:    shawn stubbs <sstubbs@NAVICOM.COM>
Subject: Re: Combo box question

This is a multi-part message in MIME format.

------=_NextPart_000_0024_01BE31C4.56B1DA80
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


    -----Original Message-----
    From: shawn stubbs <sstubbs@navicom.com>
    To: MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU =
<MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU>
    Date: Sunday, December 27, 1998 9:15 AM
    Subject: Combo box question
   =20
   =20
    Enviroment Visual C++ 6.0 Profesional version with WIN 95
    =20
    =20
    I have done quite a bit of work with visual basics in the past and =
am trying to convert to c++.  I have placed a combo box on my dialog =
form.  I have gone to the properties and then to the data tab and =
entered in some information that I would like to display in combos list. =
 when I run a test and click on the combo box all I get is a black =
shadow behind the combo box and a cursor in the text part of it .  How =
do I get the information that I entered to be display in the drop down =
list.
    =20
    =20
    Shawn

------=_NextPart_000_0024_01BE31C4.56B1DA80
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
    <DIV><FONT face=3DArial size=3D2><B>-----Original =
Message-----</B><BR><B>From:=20
    </B>shawn stubbs &lt;<A=20
    =
href=3D"mailto:sstubbs@navicom.com">sstubbs@navicom.com</A>&gt;<BR><B>To:=
=20
    </B><A=20
    =
href=3D"mailto:MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU">MSVC-BEGINNERS@MAELS=
TROM.STJOHNS.EDU</A>=20
    &lt;<A=20
    =
href=3D"mailto:MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU">MSVC-BEGINNERS@MAELS=
TROM.STJOHNS.EDU</A>&gt;<BR><B>Date:=20
    </B>Sunday, December 27, 1998 9:15 AM<BR><B>Subject: </B>Combo box=20
    question<BR><BR></DIV></FONT>
    <DIV>
    <DIV><FONT color=3D#000000 size=3D2>Enviroment Visual C++ 6.0 =
Profesional=20
    version with WIN 95</FONT></DIV>
    <DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT color=3D#000000 size=3D2>I have done quite a bit of work =
with visual=20
    basics in the past and am trying to convert to c++.&nbsp; I have =
placed a=20
    combo box on my dialog form.&nbsp; I have gone to the properties and =
then to=20
    the data tab and entered in some information that I would like to =
display in=20
    combos list.&nbsp; when I run a test and click on the combo box all =
I get is=20
    a black shadow behind the combo box and a cursor in the text part of =
it=20
    .&nbsp; How do I get the information that I entered to be display in =
the=20
    drop down list.</FONT></DIV>
    <DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT color=3D#000000=20
size=3D2>Shawn</FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0024_01BE31C4.56B1DA80--

------------------------------

Date:    Mon, 28 Dec 1998 14:44:15 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: Combo box question

is it possible that the combo box isn't showing the data because the height
of the combobox hasn't been set? try clicking on the drop down arrow in the
dialog editor to resize the drop down portion.

WM_HOPETHISHELPS,
/david

-----Original Message-----
From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of shawn stubbs
Sent: Monday, 28 December 1998 13:12
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Re: Combo box question



-----Original Message-----
From: shawn stubbs <sstubbs@navicom.com>
To: MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU
<MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU>
Date: Sunday, December 27, 1998 9:15 AM
Subject: Combo box question


Enviroment Visual C++ 6.0 Profesional version with WIN 95


I have done quite a bit of work with visual basics in the past and am trying
to convert to c++.  I have placed a combo box on my dialog form.  I have
gone to the properties and then to the data tab and entered in some
information that I would like to display in combos list.  when I run a test
and click on the combo box all I get is a black shadow behind the combo box
and a cursor in the text part of it .  How do I get the information that I
entered to be display in the drop down list.


Shawn

------------------------------

Date:    Mon, 28 Dec 1998 14:47:37 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: Allowing Hard returns in an edit control.

use the ES_WANTRETURN style, or select it as an option in the dialog editor.

rgds,
/david

> -----Original Message-----
> From: Microsoft Visual C++ programmers list
> [mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Darryl G. Wright
> Sent: Saturday, 19 December 1998 6:10
> To: MSVC@PEACH.EASE.LSOFT.COM
> Subject: Allowing Hard returns in an edit control.
>
>
> I want the user to be able to write a signature in an edit box
> with returns,
> tabs etc. I then want to store that as a single long line - is this
> possible? How do I make a multi-line edit control accept returns?
>
> -=< Darryl >=-
>
> ----------------------------------
> Darryl G. Wright
> Programmer / Analyst
> B.M. Wilson Associates Ltd.
>
> "I can please only one person per day. Today is not your day.
> Tomorrow isn't looking good either." - Dilbert
>
> --------------------------------------------------------------------------
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription/signoff info
> and archives, see http://peach.ease.lsoft.com/archives/msvc.html .
>

------------------------------

End of MSVC Digest - 24 Dec 1998 to 27 Dec 1998 (#1998-352)
***********************************************************
--
※ 转载:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店