Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Yes I have a Machintosh, please don't scream at me. -- Larry Blumette on linux-kernel


devel / comp.os.ms-windows.programmer.win32 / Re: EM_GETSCROLLPOS result != EM_SETSCROLLPOS set values - found, but not solved.

SubjectAuthor
* EM_GETSCROLLPOS result != EM_SETSCROLLPOS set valuesR.Wieser
`- Re: EM_GETSCROLLPOS result != EM_SETSCROLLPOS set values - found, but not solvedR.Wieser

1
EM_GETSCROLLPOS result != EM_SETSCROLLPOS set values

<t2p3mu$17pp$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=388&group=comp.os.ms-windows.programmer.win32#388

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: EM_GETSCROLLPOS result != EM_SETSCROLLPOS set values
Date: Fri, 8 Apr 2022 12:44:31 +0200
Organization: Aioe.org NNTP Server
Lines: 24
Message-ID: <t2p3mu$17pp$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="40761"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Fri, 8 Apr 2022 10:44 UTC

Hello all,

I'm trying to use EM_GETSCROLLPOS and EM_SETSCROLLPOS to save and later load
a position in a RichText control.

The problem is that when I set a certain position and *directly after*
retrieve the position they differ quite a bit (at least 10000 smaller
vertical).

I have no idea why that that happens, and neither MSDN doc to both tells me
about it either. :-|

So, my question : Does anyone here knows whats going on here ?

On a hunch I just tried to set several vertical positions in the range of
10000 to 60000, and dividing the results by those numbers returned a steady
0.78. IOW, its not the (constant) hight of the control's window or
something like that.

Regards,
Rudy Wieser

Re: EM_GETSCROLLPOS result != EM_SETSCROLLPOS set values - found, but not solved.

<t3460b$50t$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=389&group=comp.os.ms-windows.programmer.win32#389

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: EM_GETSCROLLPOS result != EM_SETSCROLLPOS set values - found, but not solved.
Date: Tue, 12 Apr 2022 17:31:17 +0200
Organization: Aioe.org NNTP Server
Lines: 16
Message-ID: <t3460b$50t$1@gioia.aioe.org>
References: <t2p3mu$17pp$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="5149"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-Priority: 3
 by: R.Wieser - Tue, 12 Apr 2022 15:31 UTC

> So, my question : Does anyone here knows whats going on here ?

Having written some basic stuff to use a RichEd30 control and following a
hunch I think I know what happens : simply using any font other than the one
the control is created with causes the mismatching.

And that makes the (above mentioned) messages all but worthless for RTF
files, and /almost/, but not totally, for plain text files. :-(

Funny though : MSDN doesn't mention it and neither does a quite a bit of
googeling and ddg-ing.

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor