home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 May
/
Pcwk5b98.iso
/
Borland
/
Cplus45
/
BC45
/
DLLHELLO.PAK
/
DLLHELLO.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-29
|
882b
|
23 lines
//----------------------------------------------------------------------------
// ObjectWindows - (C) Copyright 1991, 1993 by Borland International
//----------------------------------------------------------------------------
#include <owl\owlpch.h>
#include <owl\applicat.h>
#include <owl\window.h>
#include "dllhello.h"
#include <stdlib.h>
BOOL far _export
CreateDLLWindow(HWND parentHWnd)
{
TWindow* parentAlias = GetWindowPtr(parentHWnd); // check if an OWL window
if (!parentAlias)
parentAlias = new TWindow(parentHWnd, ::Module);
TWindow* window = new TWindow(parentAlias, "Hello from a DLL!");
window->Attr.Style |= WS_POPUPWINDOW | WS_CAPTION | WS_THICKFRAME
| WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
window->Attr.X = 100; window->Attr.Y = 100;
window->Attr.W = 300; window->Attr.H = 300;
return window->Create();
}