//---------------------------------------------------------------------------- // ObjectWindows - (C) Copyright 1991, 1993 by Borland International //---------------------------------------------------------------------------- #include #include #include #include "dllhello.h" #include 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(); }