Jump to content

BKM SETPAGEWINDOWHWND

From EDM2
Revision as of 04:00, 19 April 2025 by Martini (talk | contribs) (Created page with "This message associates an application page window handle with the specified notebook page. ==Syntax== <pre> param1 ULONG ulPageId; Page ID.: param2 HWND hwndPage; Window handle.: </pre> ==Parameters== ;''ulPageId'' (ULONG) - input: The page ID of the notebook page with which the application page window is to be associated. ;''hwndPage'' (HWND) - input: The handle of the application page window that is to be associated with the notebook page ide...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message associates an application page window handle with the specified notebook page.

Syntax

param1
    ULONG ulPageId; /* Page ID. */

param2
    HWND  hwndPage; /* Window handle. */

Parameters

ulPageId (ULONG) - input
The page ID of the notebook page with which the application page window is to be associated.
hwndPage (HWND) - input
The handle of the application page window that is to be associated with the notebook page identified in the ulPageId parameter.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: Application page window handle was successfully set.
FALSE: Unable to set application page window handle. This value is returned if the page ID specified for the ulPageId parameter is invalid.

Remarks

The notebook shows the application page window specified in the hwndPage parameter whenever the notebook page specified in the ulPageId parameter is brought to the top of the notebook. If the BKA_AUTOPAGESIZE attribute is specified when that page is inserted into the notebook, the notebook also handles the sizing and positioning of the application page window.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it other than to return FALSE.