WinRegisterGraphicButton
Appearance
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);