|
|
Microsoft OS/2 SDK PM 08-08-1988
/****************************** Module Header ******************************\
* Module Name: skelinit.c
*
* Initialization portion of Presentation Manager Skeleton VIO Application
*
* Created: 25-Jul-88 (adapted from PM Template App.)
*
* Created by Microsoft Corporation
*
*
\***************************************************************************/
#define INCL_WINCOMMON
#define INCL_WINMESSAGEMGR
#define INCL_AVIO
#define INCL_BASE
#include <os2.h>
#include "browse.h"
extern HAB hAB;
extern HMQ hMsgQ;
extern HWND hwndSkel;
extern HWND hwndSkelFrame;
extern HDC hDC;
extern HVPS hVPS;
extern HPS hPS;
/***************************** Private Function ****************************\
*
* BOOL FAR SkelInitApp( )
*
* Effects: Registers Application Window Class
* Creates Standard Window
*
* Warnings: None
*
\***************************************************************************/
BOOL FAR SkelInitApp( VOID )
{
char szTitle[21];
ULONG ctldata;
/* Register Application Window Class */
if ( !WinRegisterClass( hAB, (PCH)"Skel", (PFNWP)SkelWndProc,
CS_SYNCPAINT, 0 ) )
return( FALSE );
/* Create a window instance of class "Skel" */
WinLoadString( hAB, NULL, IDSTITLE, sizeof(szTitle), (PCH)szTitle );
ctldata = FCF_STANDARD | FCF_VERTSCROLL | FCF_HORZSCROLL ;
hwndSkelFrame = WinCreateStdWindow(
HWND_DESKTOP, /* specify desktop as parent window */
/* window styles */
WS_VISIBLE | FS_ICON | FS_ACCELTABLE ,
&ctldata, /* frame creation flags */
(PCH)"Skel",/* window class name */
(PCH)szTitle, /* name appearing in window caption */
0L, /* */
(HMODULE)NULL, /* use current executable module id */
ID_SKEL , /* menu id + accelerator id + icon id */
(HWND FAR *)&hwndSkel /* window handle */
);
return( TRUE );
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.