home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
bc45
/
dllhello.pak
/
DLLHELLO.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-23
|
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();
}