WinSetPresParam is used to change the color of the notebook outline, window background, selection cursor, and status-line text. The following list shows the mapping between the various notebook parts and their associated presentation parameter attributes.
Notebook outline
If a presentation parameter attribute is set, all parts of the notebook that are mapped to this color are changed. The following sample code shows how to change the color of the notebook outline:
/* Set number of bytes to be passed in usColorIdx *//* for color index table value */ usColorLen = 4; /* Set color index table value to be assigned */ ulColorIdx = 3; /**********************************************************************/ /* Set the notebook outline color. */ /**********************************************************************/ WinSetPresParam( hwndNotebook, /* Notebook window handle */ PP_BORDERCOLOR, /* Border color attribute */ usColorLen, /* Number of bytes in color index */ /* table value */ &ulColorIdx); /* Color index table value */