The following figure shows some sample code fragments for setting the notebook style to spiral binding, back pages intersecting at the bottom-left corner, major tabs placed on the bottom edge, tab shape rounded, tab text left-justified, and status-line text centered.
/**********************************************************************/
/* Query for the existing notebook window style settings. */
/**********************************************************************/
ulNotebookStyles =
WinQueryWindowULong(hwndNotebook, /* Notebook window handle */
QWL_STYLE); /* Set notebook style */
/**********************************************************************/
/* Reset notebook window style flags, leaving window flags unchanged. */
/**********************************************************************/
ulNotebookStyles &= 0xFFFF0000;
/**********************************************************************/
/* Setup the new notebook window style flags. */
/**********************************************************************/
ulNotebookStyles |=
BKS_SPIRALBIND | /* Use spiral binding */
BKS_BACKPAGESBL | /* Set back pages to intersect at the */
/* bottom-left corner */
BKS_MAJORTABBOTTOM | /* Position major tabs on bottom edge */
BKS_ROUNDEDTABS | /* Make tabs rounded */
BKS_TABTEXTLEFT | /* Left-justified tab text */
BKS_STATUSTEXTCENTER; /* Center status-line text */
/**********************************************************************/
/* Set the new notebook style. */
/**********************************************************************/
WinSetWindowULong(
hwndNotebook, /* Notebook window handle */
QWL_STYLE, /* Window style */
ulNotebookStyles); /* Set notebook style */
/**********************************************************************/
/* Invalidate to force a repaint. */
/**********************************************************************/
WinInvalidateRect(
hwndNotebook, /* Notebook window handle */
NULL, /* Invalidate entire window, */
TRUE); /* including children */