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