WinNotebookButtonFromID
Appearance
This function is specific to Version 4, or higher, of the OS/2 operating system.
This function exports a convience function to find BS_NOTEBOOKBUTTON buttons.
Syntax
WinNotebookButtonFromID(hwndDlg, id))
Parameters
- hwndDlg (HWND) - input
- Handle of the dialog window of the properties page.
- id (ULONG) - input
- ID of the button on the properties page.
Returns
- rc (HWND) - returns
- Return Code:
- TRUE: Successful completion.
- FALSE: Error occurred.
Remarks
Given the HWND of the dialog of the properties page, the ID of the button, and the button of the properties page (for example, Undo, Default, or Help), WinNotebookButtonFromID, returns the HWND for that button. This is used with the buttons of the BS_NOTEBOOKBUTTON style. Ownership of buttons of this style is changed from the dialog to the notebook after the dialog is loaded.
Example Code
Definition:
#define INCL_WINWORKPLACE #include <os2.h> HWND hwndDlg; /* Handle of the dialog window of the properties page. */ ULONG id; /* ID of the button on the properties page. page. */ HWND rc; /* Return Code */ rc = WinNotebookButtonFromID(hwndDlg, id);