TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Doug Swenson
date: 1996-09-06 18:41:04
subject: Notebook

I am unable to change colors;  I have been using the TechLib hard copy
for an example of the WinSetPresParam but it doesn't work.  Also, the
QUE TechLib hasn't been a big help.  All I get is black and white;
neat, in a stark, Twilight Zone sorta way.  I open the notebook on top
of a client window, most of which is a graphics display, and part is a
listbox, if that may have an effect.

        RGB NBrgb ;

        [in Main]
        NBrgb.bBlue  = 100 ;
        NBrgb.bGreen = 10 ;
        NBrgb.bRed   = 5 ;

        // Set Notebook window background color
        WinSetPresParam ( hwndNotebook, PP_BACKGROUNDCOLOR,
                          (ULONG)sizeof(NBrgb), (PVOID)&NBrgb ) ;

        // Set the background color
        WinSendMsg ( hwndNotebook,
                     BKM_SETNOTEBOOKCOLORS,
                     MPFROMLONG ( CLR_YELLOW ),
                     MPFROMLONG (BKA_BACKGROUNDPAGECOLOR ) ) ;
                           ^^^^                         ^
============

In response to my own msg: I downloaded some files that contained some
source files.  The combination for the SETNOTEBOOKCOLORS call was:
                     MPFROMSHORT (BKA_BACKGROUNDPAGECOLORINDEX)

The one combination that I guess I missed.  The two sets of docs
mentioned above are at odds w/ one another.  I'm still working on the
WinSetPresParam call.
___
 X OLX 1.53 X haiku: mourning doves on the telephone wires

--- Maximus/2 3.01
* Origin: Pebble BBS (1:202/1207)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 202/1207 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.