WinRegisterGraphicButton: Difference between revisions
Appearance
Created page with "This function registers the graphic button window class. ==Syntax== WinRegisterGraphicButton() ==Returns== ;''rc'' (BOOL) - returns :The following are return codes indicating success or failure: :;TRUE ::Success. :;FALSE ::Failure or not recognized. ==Example Code== Definition: <pre> #define INCL_SW #include <os2.h> BOOL rc; rc = WinRegisterGraphicButton(); </pre> The following code illustrates registering a graphic button window class. <pre> #define INCL_SW..." |
(No difference)
|
Latest revision as of 21:30, 25 November 2025
This function registers the graphic button window class.
Syntax
WinRegisterGraphicButton()
Returns
- rc (BOOL) - returns
- The following are return codes indicating success or failure:
- TRUE
- Success.
- FALSE
- Failure or not recognized.
Example Code
Definition:
#define INCL_SW #include <os2.h> BOOL rc; rc = WinRegisterGraphicButton();
The following code illustrates registering a graphic button window class.
#define INCL_SW
#include <os2me.h>
HWND hwndFrame;
WinRegisterGraphicButton(); /* Register a graphic button control */
/* Create a Secondary Window */
hwndFrame = WinLoadSecondaryWindow(HWND_DESKTOP,
HWND_DESKTOP,
MyDlgProc,
NULL,
ID_DIALOG,
NULL);