Category : OS/2 Files
Archive   : MEM1.ZIP
Filename : MEMINIT.C

 
Output of file : MEMINIT.C contained in archive : MEM1.ZIP
#define INCL_PM
#include
#include "mem.h"

extern HAB hAB;
extern HMQ hmqMem;
extern HWND hwndMem;
extern HWND hwndMemFrame;
CHAR szClassName[] = "Memory";
BOOL FAR MemInitApp( VOID )
{
ULONG ctldata;
RECTL rect;

if (!WinRegisterClass( hAB,
(PCH)szClassName,
(PFNWP)MemWndProc,
CS_SYNCPAINT | CS_SIZEREDRAW,
0))
return( 0 );

ctldata = FCF_STANDARD & ~FCF_ACCELTABLE & ~FCF_SHELLPOSITION;

hwndMemFrame = WinCreateStdWindow( HWND_DESKTOP,
WS_VISIBLE,
&ctldata,
(PCH)szClassName,
NULL,
0L,
(HMODULE)NULL,
ID_RESOURCE,
(HWND FAR *)&hwndMem );
WinQueryWindowRect( HWND_DESKTOP, (PRECTL)&rect );
if(!hwndMemFrame)
return(FALSE);

WinSetWindowPos(hwndMemFrame,HWND_TOP,(SHORT)rect.xLeft,(SHORT)rect.yTop
- 70,230,70,SWP_SIZE | SWP_MOVE | SWP_ACTIVATE);
WinShowWindow( hwndMemFrame, TRUE );
return(TRUE);
}

  3 Responses to “Category : OS/2 Files
Archive   : MEM1.ZIP
Filename : MEMINIT.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/